@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a6872=_0x40b6;(function(_0x2a0764,_0x584289){const _0x1506f5=_0x40b6,_0x196688=_0x2a0764();while(!![]){try{const _0x28f6a5=-parseInt(_0x1506f5(0xbc))/0x1*(-parseInt(_0x1506f5(0xa6))/0x2)+-parseInt(_0x1506f5(0xd8))/0x3*(-parseInt(_0x1506f5(0xda))/0x4)+-parseInt(_0x1506f5(0xc5))/0x5*(-parseInt(_0x1506f5(0xd6))/0x6)+parseInt(_0x1506f5(0xb7))/0x7*(-parseInt(_0x1506f5(0xd4))/0x8)+-parseInt(_0x1506f5(0x9e))/0x9*(parseInt(_0x1506f5(0xbe))/0xa)+parseInt(_0x1506f5(0xc1))/0xb+-parseInt(_0x1506f5(0xcc))/0xc*(parseInt(_0x1506f5(0xc0))/0xd);if(_0x28f6a5===_0x584289)break;else _0x196688['push'](_0x196688['shift']());}catch(_0x3d0f99){_0x196688['push'](_0x196688['shift']());}}}(_0x115c,0xe6330));import{BalloonPanelView as _0x9ac417,ButtonView as _0xc09a1e,clickOutsideHandler as _0x11f890,FormHeaderView as _0x316927}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4147d8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5120c0}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0xfa7a2a}from'./aichatcontextresourcesview.js';const Xr=_0x1a6872(0xd3),Ur=_0x1a6872(0xb5),Qr=_0x1a6872(0xa2);function _0x115c(){const _0x3f1cda=['34860qfvfur','_config','117tSgaKA','13133087pLNshP','label','children','values','5HKwGZt','resource','onBackToContext','add','searchInputVisibleFrom','set','get','4782432gRAZqS','isVisible','updateResourceState','_createBalloonResourcesView','change:isLoading','destroy','setResources','ck-ai-chat-context-controls__source-balloon-panel','16tSPjZD','hide','7509888cwegKg','closeSourceResourceBalloon','15RuHUfZ','once','954324cqFlSn','_bodyCollection','_sourceResourceBalloons','isAnyResourceBalloonVisible','1467aDRQJa','_createBackButton','content','_createBalloonHeader','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','delete','extendTemplate','_locale','1823814iLvXCg','getTargetElement','execute','loadSourceResources','element','addResourceToContext','showSourceResourcesBalloon','onLoadSourceResources','populateSourceResourceBalloon','show','getLimiterElement','clear','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','onResourceSelected','_setupSingleResourceBalloonClickOutsideHandler','ck-button-icon\x20ck-button-back','_getResourcesViewFromBalloon','1275211gGLIJc','pin','_addSourceResourceContent','_createSourceResourceBalloonPanel','onBalloonClosed','2sTsyti','source'];_0x115c=function(){return _0x3f1cda;};return _0x115c();}function _0x40b6(_0xf0b18,_0x10d81b){const _0x115c93=_0x115c();return _0x40b6=function(_0x40b61f,_0x44b3b0){_0x40b61f=_0x40b61f-0x9c;let _0x27a753=_0x115c93[_0x40b61f];return _0x27a753;},_0x40b6(_0xf0b18,_0x10d81b);}export class AIChatResourcesBalloonView{[_0x1a6872(0x9c)]=new Map();[_0x1a6872(0xdb)];[_0x1a6872(0xa5)];[_0x1a6872(0xbf)];constructor(_0x19ffac,_0x29f90f,_0x4dbc4f){const _0x3d20f7=_0x1a6872;this[_0x3d20f7(0xa5)]=_0x19ffac,this[_0x3d20f7(0xdb)]=_0x29f90f,this[_0x3d20f7(0xbf)]=_0x4dbc4f;}[_0x1a6872(0xac)](_0x3d5b1a){const _0x533ca5=_0x1a6872;let _0x2a2d2c=this[_0x533ca5(0x9c)][_0x533ca5(0xcb)](_0x3d5b1a['id']);_0x2a2d2c||(_0x2a2d2c=this[_0x533ca5(0xba)](),this[_0x533ca5(0x9c)][_0x533ca5(0xca)](_0x3d5b1a['id'],_0x2a2d2c),this[_0x533ca5(0xb4)](_0x2a2d2c)),this[_0x533ca5(0xb9)](_0x2a2d2c,_0x3d5b1a),_0x2a2d2c[_0x533ca5(0xaf)]();const _0xe42b68=this[_0x533ca5(0xbf)][_0x533ca5(0xa7)]();_0xe42b68&&_0x2a2d2c[_0x533ca5(0xb8)]({'target':_0xe42b68,'limiter':this[_0x533ca5(0xbf)][_0x533ca5(0xb0)]()});}[_0x1a6872(0xae)](_0x5da24f,_0xb0b2a7,_0x285843){const _0x446d75=_0x1a6872,_0x2a3d7a=this[_0x446d75(0x9c)][_0x446d75(0xcb)](_0x5da24f);if(!_0x2a3d7a)return;const _0x4f0ece=this[_0x446d75(0xb6)](_0x2a3d7a);_0x4f0ece&&(_0x4f0ece[_0x446d75(0xd2)](_0xb0b2a7,_0x285843),_0x4f0ece[_0x446d75(0xd9)](_0x446d75(0xd0),()=>{const _0x3abff5=_0x446d75;_0x2a3d7a[_0x3abff5(0xb8)]({'target':this[_0x3abff5(0xbf)][_0x3abff5(0xa7)](),'limiter':this[_0x3abff5(0xbf)][_0x3abff5(0xb0)]()});}));}[_0x1a6872(0xd7)](_0xce6a42){const _0x542a23=_0x1a6872,_0x5af219=this[_0x542a23(0x9c)][_0x542a23(0xcb)](_0xce6a42);_0x5af219&&requestAnimationFrame(()=>{const _0x39bdf9=_0x542a23;_0x5af219[_0x39bdf9(0xd5)](),this[_0x39bdf9(0x9c)][_0x39bdf9(0xa3)](_0xce6a42),this[_0x39bdf9(0xbf)][_0x39bdf9(0xbb)]();});}[_0x1a6872(0x9d)](){const _0x172251=_0x1a6872;for(const _0x5d0e3f of this[_0x172251(0x9c)][_0x172251(0xc4)]())if(_0x5d0e3f[_0x172251(0xcd)])return!0x0;return!0x1;}[_0x1a6872(0xce)](_0x4eb778,_0x5599c4,_0x4962c7){const _0x1a7c2e=_0x1a6872,_0x1e40bf=this[_0x1a7c2e(0x9c)][_0x1a7c2e(0xcb)](_0x4eb778);if(!_0x1e40bf||!_0x1e40bf[_0x1a7c2e(0xcd)])return;const _0x592249=this[_0x1a7c2e(0xbf)][_0x1a7c2e(0xa7)]();if(!_0x592249)return;_0x1e40bf[_0x1a7c2e(0xb8)]({'target':_0x592249,'limiter':this[_0x1a7c2e(0xbf)][_0x1a7c2e(0xb0)]()});const _0x2214fd=this[_0x1a7c2e(0xb6)](_0x1e40bf);_0x2214fd&&_0x2214fd[_0x1a7c2e(0xce)](_0x5599c4,_0x4962c7);}[_0x1a6872(0xd1)](){const _0x4fa9ee=_0x1a6872;for(const _0x2a9576 of this[_0x4fa9ee(0x9c)][_0x4fa9ee(0xc4)]())_0x2a9576[_0x4fa9ee(0xd1)]();this[_0x4fa9ee(0x9c)][_0x4fa9ee(0xb1)]();}[_0x1a6872(0xba)](){const _0xfef90b=_0x1a6872,_0x16bd20=new _0x9ac417(this[_0xfef90b(0xa5)]);return _0x16bd20[_0xfef90b(0xa4)]({'attributes':{'class':Xr}}),this[_0xfef90b(0xdb)][_0xfef90b(0xc8)](_0x16bd20),_0x16bd20;}[_0x1a6872(0xb9)](_0x9a4635,_0x2715a4){const _0x2038c0=_0x1a6872;_0x9a4635[_0x2038c0(0xa0)][_0x2038c0(0xb1)]();const _0x2747f5=this[_0x2038c0(0xa1)](_0x9a4635,_0x2715a4);_0x9a4635[_0x2038c0(0xa0)][_0x2038c0(0xc8)](_0x2747f5);const _0x1b982b=this[_0x2038c0(0xcf)](_0x2715a4);_0x9a4635[_0x2038c0(0xa0)][_0x2038c0(0xc8)](_0x1b982b);}[_0x1a6872(0xa1)](_0x11e5be,_0x327319){const _0x328aad=_0x1a6872,_0x19d653=this[_0x328aad(0x9f)](_0x11e5be),_0x1066f8=new _0x316927(this[_0x328aad(0xa5)],{'label':_0x327319[_0x328aad(0xc2)],'class':Qr});return _0x1066f8[_0x328aad(0xc3)][_0x328aad(0xc8)](_0x19d653,0x0),_0x1066f8;}[_0x1a6872(0x9f)](_0x37f88d){const _0x3e5b03=_0x1a6872,_0x35d0ae=new _0xc09a1e(this[_0x3e5b03(0xa5)]);return _0x35d0ae[_0x3e5b03(0xca)]({'icon':_0x4147d8,'tooltip':_0x5120c0(this[_0x3e5b03(0xa5)],_0x3e5b03(0xb2)),'tooltipPosition':'n','class':Ur}),_0x35d0ae['on'](_0x3e5b03(0xa8),()=>{const _0xf8a2c2=_0x3e5b03;_0x37f88d[_0xf8a2c2(0xd5)](),this[_0xf8a2c2(0xbf)][_0xf8a2c2(0xc7)]();}),_0x35d0ae;}[_0x1a6872(0xcf)](_0x558e15){const _0x51e37a=_0x1a6872,_0x2624cc=new _0xfa7a2a(this[_0x51e37a(0xa5)],{'source':_0x558e15,'searchInputVisibleFrom':this[_0x51e37a(0xbf)][_0x51e37a(0xc9)]});return _0x2624cc['on'](_0x51e37a(0xa9),(_0x1f17f6,_0x8e0eaa)=>{const _0x2d4b28=_0x51e37a;this[_0x2d4b28(0xbf)][_0x2d4b28(0xad)](_0x8e0eaa);}),_0x2624cc['on'](_0x51e37a(0xab),(_0x1ebdcd,_0x2ef6d5)=>{const _0x8429d9=_0x51e37a;this[_0x8429d9(0xbf)][_0x8429d9(0xb3)](_0x2ef6d5[_0x8429d9(0xbd)],_0x2ef6d5[_0x8429d9(0xc6)]),this[_0x8429d9(0xd7)](_0x558e15['id']);}),_0x2624cc;}[_0x1a6872(0xb6)](_0x4455c8){const _0x15190b=_0x1a6872,_0x4b9a36=_0x4455c8[_0x15190b(0xa0)][_0x15190b(0xcb)](0x1);return _0x4b9a36 instanceof _0xfa7a2a?_0x4b9a36:null;}[_0x1a6872(0xb4)](_0x2b4352){const _0x39b1fd=_0x1a6872;_0x11f890({'emitter':_0x2b4352,'contextElements':[_0x2b4352[_0x39b1fd(0xaa)]],'callback':()=>{const _0x4ca065=_0x39b1fd;_0x2b4352[_0x4ca065(0xd5)](),this[_0x4ca065(0xbf)][_0x4ca065(0xbb)]();},'activator':()=>_0x2b4352[_0x39b1fd(0xcd)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2828e0,IconView as _0x1cc4c5,LabeledFieldView as _0x539aed,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x12761e,IconCancel as _0x11efad}from'ckeditor5/src/icons.js';import{getTranslation as _0x1aea90}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x539aed{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x2130b1){const t=_0x2130b1['t'],_0x1a34b2={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x1aea90(_0x2130b1,'AI_CHAT_SEARCH_RESOURCES')};super(_0x2130b1,_0x1a34b2['creator']),this['label']=_0x1a34b2['label'],this['_viewConfig']=_0x1a34b2,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x2130b1,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x54327d){this['fire']('search',_0x54327d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x1cc4c5(),this['iconView']['content']=_0x12761e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4a7f26,t){this['resetButtonView']=new _0x2828e0(_0x4a7f26),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x11efad,'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',_0x982f2=>!_0x982f2),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
|
+
function _0x22a6(_0x38b5a,_0x485de5){const _0x1bb7cd=_0x1bb7();return _0x22a6=function(_0x22a6f6,_0x5d6b3){_0x22a6f6=_0x22a6f6-0x14f;let _0x28dd46=_0x1bb7cd[_0x22a6f6];return _0x28dd46;},_0x22a6(_0x38b5a,_0x485de5);}const _0x11a9a5=_0x22a6;(function(_0x2e7009,_0x17170e){const _0x38e496=_0x22a6,_0x5c0929=_0x2e7009();while(!![]){try{const _0x31593b=parseInt(_0x38e496(0x161))/0x1*(parseInt(_0x38e496(0x15f))/0x2)+parseInt(_0x38e496(0x164))/0x3*(-parseInt(_0x38e496(0x156))/0x4)+parseInt(_0x38e496(0x152))/0x5+parseInt(_0x38e496(0x158))/0x6*(parseInt(_0x38e496(0x167))/0x7)+parseInt(_0x38e496(0x15e))/0x8*(-parseInt(_0x38e496(0x16c))/0x9)+parseInt(_0x38e496(0x157))/0xa+-parseInt(_0x38e496(0x153))/0xb;if(_0x31593b===_0x17170e)break;else _0x5c0929['push'](_0x5c0929['shift']());}catch(_0x2117bb){_0x5c0929['push'](_0x5c0929['shift']());}}}(_0x1bb7,0x4ef45));import{View as _0x1dd381}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x59278b}from'../controls/aichatcontextitembuttonview.js';function _0x1bb7(){const _0x52d1e4=['div','ck-reset_all','1232180RkyhbL','8215284xQfDoE','element','setContainerElement','205468afBYNf','5906590MZLXvN','3349194profIs','_createContextChips','setTemplate','ck-ai-chat__feed__context-chips','render','_overflowManager','16dVqMqK','4eDROSB','querySelector','265241LGeZNI','add','ck-ai-chat-context-chips-wrapper','33pAILtx','destroy','ck-ai-chat-controls-button','7BkzcjP','ck-ai-chat-context-chips-wrapper-balloon','_bodyCollection','createCollection','locale','1307241eqcsvS','reorganizeChips','_contextChips','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__show-more-balloon-panel'];_0x1bb7=function(){return _0x52d1e4;};return _0x1bb7();}import{AIChatChipsOverflowManager as _0x23b3e5}from'../controls/aichatchipsoverflowmanager.js';const Fo=_0x11a9a5(0x15b),$o=_0x11a9a5(0x163),qo=_0x11a9a5(0x168),Vo=_0x11a9a5(0x166),Io=_0x11a9a5(0x16f),Po=_0x11a9a5(0x14f);export class AIChatFeedContextChipsView extends _0x1dd381{[_0x11a9a5(0x16e)]=this[_0x11a9a5(0x16a)]();[_0x11a9a5(0x15d)];[_0x11a9a5(0x169)];constructor(_0x27008b,_0x21e82c,_0x173121){const _0x17d16a=_0x11a9a5;super(_0x27008b),this[_0x17d16a(0x169)]=_0x173121,this[_0x17d16a(0x159)](_0x21e82c);const _0x1b724b={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':qo,'controlsButton':Vo}};this[_0x17d16a(0x15d)]=new _0x23b3e5(_0x27008b,this[_0x17d16a(0x16e)],_0x1b724b,this[_0x17d16a(0x169)],this),this[_0x17d16a(0x15a)]({'tag':_0x17d16a(0x150),'attributes':{'class':[Fo,'ck',_0x17d16a(0x151)]},'children':[{'tag':_0x17d16a(0x150),'attributes':{'class':$o},'children':this[_0x17d16a(0x16e)]}]});}[_0x11a9a5(0x15c)](){const _0x2c76ce=_0x11a9a5;super[_0x2c76ce(0x15c)]();const _0x43b694=this[_0x2c76ce(0x154)][_0x2c76ce(0x160)]('.'+$o);_0x43b694&&(this[_0x2c76ce(0x15d)][_0x2c76ce(0x155)](_0x43b694),this[_0x2c76ce(0x15d)][_0x2c76ce(0x16d)]());}[_0x11a9a5(0x165)](){const _0x28e658=_0x11a9a5;super[_0x28e658(0x165)](),this[_0x28e658(0x15d)][_0x28e658(0x165)]();}[_0x11a9a5(0x159)](_0x1bfcc2){const _0x34b8d9=_0x11a9a5;for(const _0x16fd81 of _0x1bfcc2){const _0x1b2f5f=new _0x59278b(this[_0x34b8d9(0x16b)],_0x16fd81,!0x0,!0x1);this[_0x34b8d9(0x16e)][_0x34b8d9(0x162)](_0x1b2f5f);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x40c6(_0x5128a2,_0x4b03a4){var _0x1aece8=_0x1aec();return _0x40c6=function(_0x40c636,_0x18d54d){_0x40c636=_0x40c636-0x160;var _0x5a99c0=_0x1aece8[_0x40c636];return _0x5a99c0;},_0x40c6(_0x5128a2,_0x4b03a4);}function _0x1aec(){var _0x1799c4=['setContent','3WWkFwv','1975328tqTEBd','level','element','1950748mHkDBI','initialContent','innerHTML','render','warning','ck-ai-chat-error_warning','1428291FHpSjW','6797555kRfacg','6631008rTWDND','ck-ai-chat-error','164427PetqVH','markAsDone','90Vgijqk','4879FDWBIP','extendTemplate','2514wKNoNS','options'];_0x1aec=function(){return _0x1799c4;};return _0x1aec();}var _0x32bb82=_0x40c6;(function(_0x26dcf7,_0x3d426d){var _0x92be52=_0x40c6,_0x4e7e38=_0x26dcf7();while(!![]){try{var _0x1438ab=parseInt(_0x92be52(0x161))/0x1+-parseInt(_0x92be52(0x16d))/0x2*(parseInt(_0x92be52(0x169))/0x3)+parseInt(_0x92be52(0x175))/0x4+-parseInt(_0x92be52(0x174))/0x5+parseInt(_0x92be52(0x166))/0x6*(-parseInt(_0x92be52(0x164))/0x7)+parseInt(_0x92be52(0x16a))/0x8+parseInt(_0x92be52(0x173))/0x9*(parseInt(_0x92be52(0x163))/0xa);if(_0x1438ab===_0x3d426d)break;else _0x4e7e38['push'](_0x4e7e38['shift']());}catch(_0x223ae6){_0x4e7e38['push'](_0x4e7e38['shift']());}}}(_0x1aec,0xd483a));import{AIChatFeedItemView as _0x232f73}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x232f73{constructor(_0x69d9aa){var _0x2a4e79=_0x40c6;super(_0x69d9aa),this[_0x2a4e79(0x165)]({'attributes':{'class':[_0x2a4e79(0x160),_0x2a4e79(0x171)===_0x69d9aa[_0x2a4e79(0x16b)]?_0x2a4e79(0x172):'']}});}[_0x32bb82(0x170)](){var _0x4da4ac=_0x32bb82;super[_0x4da4ac(0x170)](),this[_0x4da4ac(0x168)](this[_0x4da4ac(0x167)][_0x4da4ac(0x16e)]),this[_0x4da4ac(0x162)]();}[_0x32bb82(0x168)](_0x504064){var _0x39e32a=_0x32bb82;this[_0x39e32a(0x16c)][_0x39e32a(0x16f)]=_0x504064;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b533b=_0x3058;(function(_0x21f58f,_0x38489a){const _0x4ca5f2=_0x3058,_0x2a5bed=_0x21f58f();while(!![]){try{const _0x5e0f61=-parseInt(_0x4ca5f2(0x17b))/0x1*(parseInt(_0x4ca5f2(0x172))/0x2)+-parseInt(_0x4ca5f2(0x176))/0x3+parseInt(_0x4ca5f2(0x170))/0x4+parseInt(_0x4ca5f2(0x182))/0x5+parseInt(_0x4ca5f2(0x186))/0x6*(-parseInt(_0x4ca5f2(0x17c))/0x7)+parseInt(_0x4ca5f2(0x16c))/0x8*(-parseInt(_0x4ca5f2(0x178))/0x9)+parseInt(_0x4ca5f2(0x17a))/0xa*(parseInt(_0x4ca5f2(0x17f))/0xb);if(_0x5e0f61===_0x38489a)break;else _0x2a5bed['push'](_0x2a5bed['shift']());}catch(_0x461356){_0x2a5bed['push'](_0x2a5bed['shift']());}}}(_0x4542,0xa64ee));function _0x4542(){const _0x21e577=['ck-hidden','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','2695350YWXXsv','capabilities','9PwssUu','ck-ai-chat__feed__interaction-header__capabilities__text','120WwPXZe','11831vMWWgn','619493AggNKi','div','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','1544532QXSmmL','setTemplate','add','4706465BcxGwY','ck-ai-chat__feed__interaction-header__capabilities','content','ck-ai-chat__feed__interaction-header','18OcjCGq','2805104qbgomC','span','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','extendTemplate','3578472qGdlIq','children','224bXFlPm'];_0x4542=function(){return _0x21e577;};return _0x4542();}import{IconBulb as _0x190c29,IconWeb as _0x21a749}from'@ckeditor/ckeditor5-icons';import{IconView as _0x3785c2,View as _0xec66d6}from'ckeditor5/src/ui.js';function _0x3058(_0x213ade,_0x3d0fc0){const _0x454283=_0x4542();return _0x3058=function(_0x3058fa,_0x51d029){_0x3058fa=_0x3058fa-0x16c;let _0x5d39fb=_0x454283[_0x3058fa];return _0x5d39fb;},_0x3058(_0x213ade,_0x3d0fc0);}import{AIChatFeedItemView as _0x386946}from'./aichatfeeditemview.js';import{getTranslation as _0x445224}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x386946{[_0x3b533b(0x177)];constructor(_0x384fd2,_0x6f4492){const _0x3ff9d9=_0x3b533b;super(_0x6f4492);const {isWebSearchEnabled:_0x2d42b0,isReasoningEnabled:_0x4b78e1}=_0x6f4492[_0x3ff9d9(0x177)],_0x24ae67=[];let _0x277fad='';_0x2d42b0&&_0x4b78e1?(_0x277fad=_0x445224(_0x384fd2,_0x3ff9d9(0x16e)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x21a749)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x190c29))):_0x2d42b0?(_0x277fad=_0x445224(_0x384fd2,_0x3ff9d9(0x17e)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x21a749))):_0x4b78e1&&(_0x277fad=_0x445224(_0x384fd2,_0x3ff9d9(0x175)),_0x24ae67[_0x3ff9d9(0x174)](aa(_0x190c29))),this[_0x3ff9d9(0x16f)]({'attributes':{'class':[_0x3ff9d9(0x185),_0x277fad?'':_0x3ff9d9(0x173)]}});const _0x200893=new _0xec66d6();_0x200893[_0x3ff9d9(0x180)]({'tag':_0x3ff9d9(0x17d),'attributes':{'class':['ck',_0x3ff9d9(0x183)]},'children':[..._0x24ae67,{'tag':_0x3ff9d9(0x16d),'attributes':{'class':[_0x3ff9d9(0x179)]},'children':[_0x277fad]}]}),this[_0x3ff9d9(0x171)][_0x3ff9d9(0x181)](_0x200893),this[_0x3ff9d9(0x177)]=_0x6f4492[_0x3ff9d9(0x177)];}}function aa(_0x4db695){const _0x4dd9c1=_0x3b533b,_0x46b3b6=new _0x3785c2();return _0x46b3b6[_0x4dd9c1(0x184)]=_0x4db695,_0x46b3b6;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x30ca43=_0x22e1;(function(_0x163701,_0x174c83){const _0x5dbf49=_0x22e1,_0x4761d1=_0x163701();while(!![]){try{const _0x30af68=-parseInt(_0x5dbf49(0x16c))/0x1*(-parseInt(_0x5dbf49(0x182))/0x2)+parseInt(_0x5dbf49(0x185))/0x3*(-parseInt(_0x5dbf49(0x17e))/0x4)+-parseInt(_0x5dbf49(0x181))/0x5*(parseInt(_0x5dbf49(0x16e))/0x6)+-parseInt(_0x5dbf49(0x166))/0x7+-parseInt(_0x5dbf49(0x180))/0x8*(parseInt(_0x5dbf49(0x169))/0x9)+-parseInt(_0x5dbf49(0x179))/0xa*(-parseInt(_0x5dbf49(0x177))/0xb)+parseInt(_0x5dbf49(0x16f))/0xc;if(_0x30af68===_0x174c83)break;else _0x4761d1['push'](_0x4761d1['shift']());}catch(_0x4143d5){_0x4761d1['push'](_0x4761d1['shift']());}}}(_0x3774,0x7de95));function _0x22e1(_0x220c9b,_0x580874){const _0x377447=_0x3774();return _0x22e1=function(_0x22e1ba,_0x2043d1){_0x22e1ba=_0x22e1ba-0x162;let _0x148b88=_0x377447[_0x22e1ba];return _0x148b88;},_0x22e1(_0x220c9b,_0x580874);}import{View as _0x3a5691}from'ckeditor5/src/ui.js';function _0x3774(){const _0x485708=['setTemplate','601182vOdhUg','bindTemplate','set','8329uuoAUn','element','3882sCZzkU','17091840fgELGP','cleanUpAnimations','data-id','removeAttribute','children','content','animation:\x20ck-html-streamer-fade-in\x20.5s','isDone','22rJnRKv','isVisible','981370QqsuBW','ck-ai-chat__feed__text-item','streamIntoElement','ck-hidden','ck-ai-chat__feed__item','350156ftXqsh','stream','8uBoNFW','1640FBVzwH','6NlPxZz','ck-ai-chat__feed__item_done','[data-id]','21fDsbCx','htmlStreamer','markAsDone','forEach','querySelectorAll','div','createCollection','1666427doJWmP','options'];_0x3774=function(){return _0x485708;};return _0x3774();}import{HTMLStreamer as _0x4c6829}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x3a5691{[_0x30ca43(0x167)];[_0x30ca43(0x174)]='';[_0x30ca43(0x186)];[_0x30ca43(0x173)];constructor(_0x2683bc){const _0x4f99a2=_0x30ca43;super();const _0x3f5b4e=this[_0x4f99a2(0x16a)];this[_0x4f99a2(0x16b)](_0x4f99a2(0x176),!0x1),this[_0x4f99a2(0x16b)](_0x4f99a2(0x178),!0x0),this[_0x4f99a2(0x186)]=new _0x4c6829({'textNodeStyle':_0x4f99a2(0x175),'delay':0x14}),this[_0x4f99a2(0x167)]=_0x2683bc,this[_0x4f99a2(0x173)]=this[_0x4f99a2(0x165)](),this[_0x4f99a2(0x168)]({'tag':_0x4f99a2(0x164),'attributes':{'class':['ck',_0x4f99a2(0x17d),_0x3f5b4e['if'](_0x4f99a2(0x176),_0x4f99a2(0x183)),_0x3f5b4e['if'](_0x4f99a2(0x178),_0x4f99a2(0x17c),_0x5b7ecf=>!_0x5b7ecf),_0x4f99a2(0x17a)],'data-cke-ai-id':this[_0x4f99a2(0x167)]['id']},'children':this[_0x4f99a2(0x173)]});}[_0x30ca43(0x187)](){const _0x22ceaa=_0x30ca43;this[_0x22ceaa(0x186)][_0x22ceaa(0x170)]({'targetElement':this[_0x22ceaa(0x16d)]}),this[_0x22ceaa(0x16d)][_0x22ceaa(0x163)](_0x22ceaa(0x184))[_0x22ceaa(0x162)](_0x40e99b=>{const _0x3925f2=_0x22ceaa;_0x40e99b[_0x3925f2(0x172)](_0x3925f2(0x171));}),this[_0x22ceaa(0x176)]=!0x0;}async[_0x30ca43(0x17b)](_0x54e9a5,_0x4164a5,_0x50fbb8){const _0x2beceb=_0x30ca43;await this[_0x2beceb(0x186)][_0x2beceb(0x17f)]({'document':_0x54e9a5,'targetElement':_0x4164a5,'abortSignal':_0x50fbb8});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33cbf2=_0x2300;(function(_0x59ace9,_0x5ea0ea){const _0x583369=_0x2300,_0x42333b=_0x59ace9();while(!![]){try{const _0x24d8e3=-parseInt(_0x583369(0xf2))/0x1+-parseInt(_0x583369(0xe4))/0x2+-parseInt(_0x583369(0xe8))/0x3*(parseInt(_0x583369(0xeb))/0x4)+parseInt(_0x583369(0x101))/0x5*(parseInt(_0x583369(0xe2))/0x6)+-parseInt(_0x583369(0xf6))/0x7+-parseInt(_0x583369(0xff))/0x8+parseInt(_0x583369(0xf0))/0x9;if(_0x24d8e3===_0x5ea0ea)break;else _0x42333b['push'](_0x42333b['shift']());}catch(_0x43baab){_0x42333b['push'](_0x42333b['shift']());}}}(_0x3f00,0x4a575));import{AIChatFeedItemView as _0xb1badc}from'./aichatfeeditemview.js';import{parse as _0x1f31ce,render as _0x711d25}from'../../../aicore/utils/htmlparser.js';function _0x3f00(){const _0x335138=['5efiWbQ','render','3109272MkNfNi','streamIntoElement','106036TnOgpj','element','updateSources','ck-ai-chat__feed__ai-reply-container','2469fbtIQQ','innerHTML','ck-ai-chat__feed__ai-reply','316MjqHnu','addMany','div','markAsDone','initialContent','10418310kBlsGn','map','352401CYjlfK','add','updateContent','options','3168431iqRMWp','setTemplate','isVisible','ck-reset_all-excluded','locale','static','streaming','extendTemplate','children','3585856fbcgfo','replyContainer'];_0x3f00=function(){return _0x335138;};return _0x3f00();}function _0x2300(_0x18da58,_0x57becb){const _0x3f008f=_0x3f00();return _0x2300=function(_0x23007b,_0x47abf2){_0x23007b=_0x23007b-0xe2;let _0x1026e6=_0x3f008f[_0x23007b];return _0x1026e6;},_0x2300(_0x18da58,_0x57becb);}import{View as _0x5a7f1d}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x4a6485,AIWebSourceView as _0x59af32}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0xb1badc{[_0x33cbf2(0x100)];constructor(_0x4a3bcf,_0x47e123){const _0x567e7b=_0x33cbf2;super(_0x47e123),this[_0x567e7b(0xfa)]=_0x4a3bcf,this[_0x567e7b(0xfd)]({'attributes':{'class':[_0x567e7b(0xea)]}}),this[_0x567e7b(0x100)]=new _0x5a7f1d(),this[_0x567e7b(0x100)][_0x567e7b(0xf7)]({'tag':_0x567e7b(0xed),'attributes':{'class':['ck',_0x567e7b(0xf9),_0x567e7b(0xe7)]}}),this[_0x567e7b(0xfe)][_0x567e7b(0xf3)](this[_0x567e7b(0x100)]);}async[_0x33cbf2(0x102)](){const _0xa5568f=_0x33cbf2;super[_0xa5568f(0x102)](),this[_0xa5568f(0xf5)][_0xa5568f(0xef)]&&(await this[_0xa5568f(0xf4)]({'parsedContent':_0x1f31ce(this[_0xa5568f(0xf5)][_0xa5568f(0xef)]),'renderingStrategy':_0xa5568f(0xfb)}),this[_0xa5568f(0xee)]());}async[_0x33cbf2(0xf4)]({parsedContent:_0x55a5b1,renderingStrategy:_0x535ecd,abortSignal:_0x329d35}){const _0x5988e4=_0x33cbf2;_0x5988e4(0xfc)===_0x535ecd?await this[_0x5988e4(0xe3)](_0x55a5b1,this[_0x5988e4(0x100)][_0x5988e4(0xe5)],_0x329d35):this[_0x5988e4(0x100)][_0x5988e4(0xe5)][_0x5988e4(0xe9)]=_0x711d25(_0x55a5b1);}[_0x33cbf2(0xe6)](_0x35ed3e){const _0x177938=_0x33cbf2,_0x4a75fa=new _0x4a6485(this[_0x177938(0xfa)]);_0x4a75fa[_0x177938(0xfe)][_0x177938(0xec)](_0x35ed3e[_0x177938(0xf1)](_0x359506=>new _0x59af32(this[_0x177938(0xfa)],_0x359506))),_0x4a75fa[_0x177938(0xf8)]=!0x0,this[_0x177938(0xfe)][_0x177938(0xf3)](_0x4a75fa);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x16f9e1=_0x4d01;(function(_0x3ae760,_0x504db7){const _0x307c8a=_0x4d01,_0x3edd08=_0x3ae760();while(!![]){try{const _0x46142b=parseInt(_0x307c8a(0xca))/0x1*(parseInt(_0x307c8a(0xa5))/0x2)+parseInt(_0x307c8a(0x7f))/0x3+-parseInt(_0x307c8a(0x94))/0x4*(parseInt(_0x307c8a(0xcb))/0x5)+parseInt(_0x307c8a(0x7b))/0x6+parseInt(_0x307c8a(0xa9))/0x7*(-parseInt(_0x307c8a(0xaa))/0x8)+parseInt(_0x307c8a(0x7a))/0x9+parseInt(_0x307c8a(0xd2))/0xa*(-parseInt(_0x307c8a(0xb4))/0xb);if(_0x46142b===_0x504db7)break;else _0x3edd08['push'](_0x3edd08['shift']());}catch(_0x4bd1dd){_0x3edd08['push'](_0x3edd08['shift']());}}}(_0x3c51,0x84a35));import{KeystrokeHandler as _0x3c7de8}from'ckeditor5/src/utils.js';function _0x4d01(_0x1612a4,_0x2f8cd8){const _0x3c5121=_0x3c51();return _0x4d01=function(_0x4d013f,_0xd7ec3f){_0x4d013f=_0x4d013f-0x72;let _0x3611c7=_0x3c5121[_0x4d013f];return _0x3611c7;},_0x4d01(_0x1612a4,_0x2f8cd8);}import{BalloonPanelView as _0x1efe50,BodyCollection as _0x5420d5,ButtonView as _0x31958d,clickOutsideHandler as _0xf25303,ListItemButtonView as _0x49dba3,ListItemView as _0x5ba640,ListView as _0x5927df,SplitButtonView as _0x5e5ecc,UIModel as _0x48991c,View as _0xa24b91}from'ckeditor5/src/ui.js';import{IconCheck as _0xfc9a63,IconAddComment as _0x3811a9,IconDocumentWithLoupe as _0x1f8968}from'ckeditor5/src/icons.js';import{getTranslation as _0x53e010}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x16f9e1(0xbc),_0x16f9e1(0xc8),_0x16f9e1(0x8a)];export class AIChatFeedSuggestionItemActionsView extends _0xa24b91{[_0x16f9e1(0xc5)];[_0x16f9e1(0x80)];[_0x16f9e1(0xa8)];[_0x16f9e1(0xb0)];[_0x16f9e1(0x79)];[_0x16f9e1(0x76)]=0x1;[_0x16f9e1(0x88)];[_0x16f9e1(0x9e)];[_0x16f9e1(0xd1)]=!0x0;constructor(_0x554497,_0x30811d){const _0x3fe7c2=_0x16f9e1;super(_0x554497),this[_0x3fe7c2(0x88)]=_0x30811d||[...AI_REPLY_ACTIONS],this[_0x3fe7c2(0x9e)]=[...this[_0x3fe7c2(0x88)]];const _0x5d1705=this[_0x3fe7c2(0x98)];this[_0x3fe7c2(0x86)](_0x3fe7c2(0x83),!0x0),this[_0x3fe7c2(0x86)](_0x3fe7c2(0x8b),!0x0),this[_0x3fe7c2(0x86)](_0x3fe7c2(0x92),!0x1),this[_0x3fe7c2(0xa8)]=new _0x48991c({'label':Hn(_0x3fe7c2(0xbc),_0x554497,this[_0x3fe7c2(0x76)]),'icon':_0xfc9a63,'withText':!0x0,'type':_0x3fe7c2(0x78),'actionName':_0x3fe7c2(0xbc)}),this[_0x3fe7c2(0xb0)]=new _0x48991c({'label':Hn(_0x3fe7c2(0x8a),_0x554497,this[_0x3fe7c2(0x76)]),'icon':_0x1f8968,'withText':!0x0,'type':_0x3fe7c2(0x78),'actionName':_0x3fe7c2(0x8a)}),this[_0x3fe7c2(0x79)]=new _0x48991c({'label':Hn(_0x3fe7c2(0xc8),_0x554497,this[_0x3fe7c2(0x76)]),'icon':_0x3811a9,'withText':!0x0,'type':_0x3fe7c2(0x78),'actionName':_0x3fe7c2(0xc8)}),this[_0x3fe7c2(0xc5)]=this[_0x3fe7c2(0x9a)](_0x554497),this[_0x3fe7c2(0x80)]=this[_0x3fe7c2(0x7c)](),this[_0x3fe7c2(0xc5)]&&this[_0x3fe7c2(0x80)][_0x3fe7c2(0xa3)](this[_0x3fe7c2(0xc5)]),this[_0x3fe7c2(0x9b)]({'tag':_0x3fe7c2(0xb1),'attributes':{'class':['ck',_0x3fe7c2(0x93),_0x5d1705['if'](_0x3fe7c2(0x8b),_0x3fe7c2(0x75),_0xed1f1c=>!_0xed1f1c)]},'children':this[_0x3fe7c2(0x80)]}),this['on'](_0x3fe7c2(0xba),()=>{const _0x19ff70=_0x3fe7c2;this[_0x19ff70(0x9e)]=this[_0x19ff70(0x92)]?this[_0x19ff70(0x88)][_0x19ff70(0x85)](_0x364f2b=>_0x19ff70(0xbc)!==_0x364f2b):[...this[_0x19ff70(0x88)]],this[_0x19ff70(0x7e)](_0x554497);});}[_0x16f9e1(0x7e)](_0x4932a7){const _0x380cb4=_0x16f9e1;this[_0x380cb4(0xc5)]&&this[_0x380cb4(0x80)][_0x380cb4(0x81)](this[_0x380cb4(0xc5)])&&(this[_0x380cb4(0x80)][_0x380cb4(0xc7)](this[_0x380cb4(0xc5)]),this[_0x380cb4(0xc5)][_0x380cb4(0x8d)]()),this[_0x380cb4(0xc5)]=this[_0x380cb4(0x9a)](_0x4932a7),this[_0x380cb4(0xc5)]&&this[_0x380cb4(0x80)][_0x380cb4(0xa3)](this[_0x380cb4(0xc5)]);}[_0x16f9e1(0x9a)](_0x1d4837){const _0x480cd6=_0x16f9e1;if(0x0==this[_0x480cd6(0x9e)][_0x480cd6(0x74)])return null;const _0x21cd9f=0x1===this[_0x480cd6(0x9e)][_0x480cd6(0x74)]?this[_0x480cd6(0x77)](_0x1d4837):this[_0x480cd6(0x97)](_0x1d4837),_0x3f14f7=this[_0x480cd6(0xd1)]?'':_0x480cd6(0xb6);_0x21cd9f[_0x480cd6(0x86)]({'label':Hn(this[_0x480cd6(0x9e)][0x0],_0x1d4837,this[_0x480cd6(0x76)]),'tooltip':Ln(this[_0x480cd6(0x9e)][0x0],_0x1d4837,this[_0x480cd6(0x76)]),'withText':!0x0,'class':_0x480cd6(0xd0)+_0x3f14f7});for(const _0x958ca3 of this[_0x480cd6(0x9e)])_0x21cd9f['on'](_0x958ca3,()=>{const _0x38c00f=_0x480cd6;this[_0x38c00f(0xc6)](_0x958ca3);});return this[_0x480cd6(0xd1)]=!0x1,_0x21cd9f;}[_0x16f9e1(0x77)](_0x423233){const _0x5f109d=_0x16f9e1,_0x22c549=new _0x31958d(_0x423233);return _0x22c549[_0x5f109d(0x86)]({'class':_0x5f109d(0xcf),'withText':!0x0}),_0x22c549['on'](_0x5f109d(0xac),()=>{const _0x492267=_0x5f109d;_0x22c549[_0x492267(0xc6)](this[_0x492267(0x9e)][0x0]);}),_0x22c549;}[_0x16f9e1(0x97)](_0x169a5b){const _0x568fae=_0x16f9e1,_0x406d25=new Gn(_0x169a5b,{'listItemModels':this[_0x568fae(0x9e)][_0x568fae(0xa1)](_0x530f3f=>{const _0x414050=_0x568fae;switch(_0x530f3f){case _0x414050(0xbc):return this[_0x414050(0xa8)];case _0x414050(0x8a):return this[_0x414050(0xb0)];case _0x414050(0xc8):return this[_0x414050(0x79)];}})});return _0x406d25[_0x568fae(0x86)]({'label':Hn(this[_0x568fae(0x9e)][0x0],_0x169a5b,this[_0x568fae(0x76)]),'tooltip':Ln(this[_0x568fae(0x9e)][0x0],_0x169a5b,this[_0x568fae(0x76)]),'withText':!0x0,'class':_0x568fae(0x93),'balloonPanelClass':_0x568fae(0x73)}),_0x406d25[_0x568fae(0xad)](_0x568fae(0x83))['to'](this),_0x406d25;}[_0x16f9e1(0xc0)](_0x576f17){const _0x3ed728=_0x16f9e1,_0x5baca3=this[_0x3ed728(0x9c)];this[_0x3ed728(0x76)]=_0x576f17||this[_0x3ed728(0x76)],this[_0x3ed728(0xc5)][_0x3ed728(0x86)]({'label':Hn(this[_0x3ed728(0x9e)][0x0],_0x5baca3,this[_0x3ed728(0x76)]),'tooltip':Ln(this[_0x3ed728(0x9e)][0x0],_0x5baca3,this[_0x3ed728(0x76)])}),this[_0x3ed728(0xa8)][_0x3ed728(0x9f)]=Hn(_0x3ed728(0xbc),_0x5baca3,this[_0x3ed728(0x76)]),this[_0x3ed728(0xb0)][_0x3ed728(0x9f)]=Hn(_0x3ed728(0x8a),_0x5baca3,this[_0x3ed728(0x76)]),this[_0x3ed728(0x79)][_0x3ed728(0x9f)]=Hn(_0x3ed728(0xc8),_0x5baca3,this[_0x3ed728(0x76)]);}}class Gn extends _0x5e5ecc{[_0x16f9e1(0xa7)];[_0x16f9e1(0x84)];[_0x16f9e1(0x96)];[_0x16f9e1(0xb8)];constructor(_0x24b93d,_0x57ce8f){const _0x290dea=_0x16f9e1;super(_0x24b93d),this[_0x290dea(0x84)]=new _0x1efe50(this[_0x290dea(0x9c)]),this[_0x290dea(0xa7)]=new _0x5420d5(this[_0x290dea(0x9c)]),this[_0x290dea(0xa7)][_0x290dea(0x8c)](),this[_0x290dea(0x86)](_0x290dea(0xa0),''),this[_0x290dea(0x84)][_0x290dea(0xad)](_0x290dea(0xb9))['to'](this,_0x290dea(0xa0)),this[_0x290dea(0x96)]=this[_0x290dea(0xce)](_0x57ce8f[_0x290dea(0xa4)][_0x290dea(0xa2)](0x1)),this[_0x290dea(0xa7)][_0x290dea(0xa3)](this[_0x290dea(0x84)]),this[_0x290dea(0x84)][_0x290dea(0x7d)][_0x290dea(0xa3)](this[_0x290dea(0x96)]),this[_0x290dea(0x72)][_0x290dea(0x82)](_0x290dea(0xaf)),this[_0x290dea(0x72)][_0x290dea(0x86)](_0x290dea(0xaf),_0x53e010(this[_0x290dea(0x9c)],_0x290dea(0x8f))),this[_0x290dea(0xc4)](),this['on'](_0x290dea(0xac),()=>{const _0x590059=_0x290dea,_0x596c05=_0x57ce8f[_0x590059(0xa4)][0x0][_0x590059(0x8e)];this[_0x590059(0xc6)](_0x596c05),this[_0x590059(0x84)][_0x590059(0x91)](),this[_0x590059(0x72)][_0x590059(0xb2)]();}),this['on'](_0x290dea(0x90),()=>{const _0x1cadc3=_0x290dea;this[_0x1cadc3(0x84)][_0x1cadc3(0x8b)]?(this[_0x1cadc3(0x84)][_0x1cadc3(0x91)](),this[_0x1cadc3(0x72)][_0x1cadc3(0xb2)]()):(this[_0x1cadc3(0x84)][_0x1cadc3(0xcd)]({'target':this[_0x1cadc3(0xbf)],'positions':[_0x1cadc3(0xc3)===this[_0x1cadc3(0x9c)][_0x1cadc3(0xbe)]?yn:Pn]}),this[_0x1cadc3(0x96)][_0x1cadc3(0xb2)]());}),_0xf25303({'emitter':this[_0x290dea(0x84)],'callback':()=>{const _0x1ef9ff=_0x290dea;this[_0x1ef9ff(0x84)][_0x1ef9ff(0x91)]();},'activator':()=>this[_0x290dea(0x84)][_0x290dea(0x8b)],'contextElements':()=>[this[_0x290dea(0xbf)],this[_0x290dea(0x84)][_0x290dea(0xbf)]]});}[_0x16f9e1(0xce)](_0x3a9645){const _0x5a9797=_0x16f9e1,_0x507562=this[_0x5a9797(0x9c)],_0x28243a=new _0x5927df(_0x507562);for(const _0x1a2688 of _0x3a9645){const _0x5b662f=new _0x5ba640(_0x507562),_0x1a6f95=new _0x49dba3(_0x507562);_0x1a6f95[_0x5a9797(0xad)](...Object[_0x5a9797(0xa6)](_0x1a2688))['to'](_0x1a2688),_0x1a6f95[_0x5a9797(0x99)](_0x5a9797(0xac))['to'](_0x28243a),_0x5b662f[_0x5a9797(0x80)][_0x5a9797(0xa3)](_0x1a6f95),_0x28243a[_0x5a9797(0xc9)][_0x5a9797(0xa3)](_0x5b662f);}return _0x28243a[_0x5a9797(0xc9)][_0x5a9797(0x99)](_0x5a9797(0xac))['to'](this),_0x28243a['on'](_0x5a9797(0xac),_0x26513e=>{const _0x17b57b=_0x5a9797,_0x2a505b=_0x26513e[_0x17b57b(0xae)];this[_0x17b57b(0xc6)](_0x2a505b[_0x17b57b(0x8e)]),this[_0x17b57b(0x84)][_0x17b57b(0x91)](),this[_0x17b57b(0x72)][_0x17b57b(0xb2)]();}),_0x28243a;}[_0x16f9e1(0xc4)](){const _0x413009=_0x16f9e1;this[_0x413009(0xb8)]=new _0x3c7de8(),this[_0x413009(0xb8)][_0x413009(0xc2)](this[_0x413009(0x84)][_0x413009(0xbf)]),this[_0x413009(0xb8)][_0x413009(0x86)](_0x413009(0x87),(_0x493413,_0x4c16f9)=>{const _0x29d0b9=_0x413009;this[_0x29d0b9(0x84)][_0x29d0b9(0x91)](),this[_0x29d0b9(0x72)][_0x29d0b9(0xb2)](),_0x4c16f9();});}[_0x16f9e1(0x8d)](){const _0x395b47=_0x16f9e1;super[_0x395b47(0x8d)](),this[_0x395b47(0xb8)][_0x395b47(0x8d)](),this[_0x395b47(0x84)][_0x395b47(0x8d)](),this[_0x395b47(0xa7)][_0x395b47(0xbd)]();}}function _0x3c51(){const _0x5a8b0b=['button','insertSuggestionModel','9741708VsAntK','3782154etLAAm','createCollection','content','_updateDropdownActions','2026662pvCqEv','children','has','unbind','isEnabled','balloonPanelView','filter','set','esc','_dropdownOriginalConfig','bottom','showChangeInText','isVisible','attachToDom','destroy','actionName','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','open','hide','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion__actions','20hDHpvI','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','listView','_createActionsDropdown','bindTemplate','delegate','_createActionsDropdownOrButton','setTemplate','locale','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_dropdownCurrentConfig','label','balloonPanelClass','map','slice','add','listItemModels','494iqiSXi','keys','bodyCollection','applySuggestionModel','1442EpLyCH','11384HehHQq','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','execute','bind','source','tooltip','showChangeInTextModel','div','focus','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','55vNRrDy','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','ck-ai-chat__feed__ai-suggestion__actions--no-animation','width','keystrokeHandler','class','change:isTrackChangesOn','arrowless','applySuggestion','detachFromDom','uiLanguageDirection','element','updateLabels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','listenTo','ltr','_setUpKeystrokes','actionsButton','fire','remove','insertSuggestion','items','4009izseji','382595XqwqNA','left','pin','_setUpList','ck-ai-button-primary','ck-ai-chat__feed__ai-suggestion__actions\x20','_firstRender','4319060NNufxC','arrowView','ck-ai-chat__feed__ai-suggestion__actions__balloon','length','ck-hidden','_partsCount','_createActionsButton'];_0x3c51=function(){return _0x5a8b0b;};return _0x3c51();}function yn(_0x59c481){const _0xaf6ffa=_0x16f9e1;return{'top':_0x59c481[_0xaf6ffa(0x89)],'left':_0x59c481[_0xaf6ffa(0xcc)],'name':_0xaf6ffa(0xbb),'config':{'withArrow':!0x1}};}function Pn(_0x3e29b2,_0x346288){const _0x33c341=_0x16f9e1;return{'top':_0x3e29b2[_0x33c341(0x89)],'left':_0x3e29b2[_0x33c341(0xcc)]-(_0x346288[_0x33c341(0xb7)]-_0x3e29b2[_0x33c341(0xb7)]),'name':_0x33c341(0xbb),'config':{'withArrow':!0x1}};}function Hn(_0x496022,_0x36ae1f,_0x478acf){const _0x446c59=_0x16f9e1;switch(_0x496022){case _0x446c59(0xbc):return _0x53e010(_0x36ae1f,_0x446c59(0xb5),_0x478acf);case _0x446c59(0x8a):return _0x53e010(_0x36ae1f,_0x446c59(0xab),_0x478acf);case _0x446c59(0xc8):return _0x53e010(_0x36ae1f,_0x446c59(0xc1),_0x478acf);}}function Ln(_0x219d08,_0x18b222,_0x36a434){const _0x146b94=_0x16f9e1;switch(_0x219d08){case _0x146b94(0xbc):return _0x53e010(_0x18b222,_0x146b94(0xb3),_0x36a434);case _0x146b94(0x8a):return _0x53e010(_0x18b222,_0x146b94(0x95),_0x36a434);case _0x146b94(0xc8):return _0x53e010(_0x18b222,_0x146b94(0x9d),_0x36a434);}}
|
|
23
|
+
const _0x14f0dc=_0x1cd9;(function(_0x349330,_0x3a3bf8){const _0x2c2f4a=_0x1cd9,_0x166720=_0x349330();while(!![]){try{const _0x13e209=parseInt(_0x2c2f4a(0x1bd))/0x1+-parseInt(_0x2c2f4a(0x1d8))/0x2*(-parseInt(_0x2c2f4a(0x1dd))/0x3)+-parseInt(_0x2c2f4a(0x199))/0x4*(-parseInt(_0x2c2f4a(0x1ae))/0x5)+parseInt(_0x2c2f4a(0x1e1))/0x6*(parseInt(_0x2c2f4a(0x1e3))/0x7)+-parseInt(_0x2c2f4a(0x1db))/0x8*(-parseInt(_0x2c2f4a(0x1ad))/0x9)+-parseInt(_0x2c2f4a(0x1ee))/0xa*(-parseInt(_0x2c2f4a(0x1aa))/0xb)+parseInt(_0x2c2f4a(0x1e8))/0xc*(-parseInt(_0x2c2f4a(0x1d1))/0xd);if(_0x13e209===_0x3a3bf8)break;else _0x166720['push'](_0x166720['shift']());}catch(_0x192cb2){_0x166720['push'](_0x166720['shift']());}}}(_0x3d06,0x6b74a));import{KeystrokeHandler as _0x349cc5}from'ckeditor5/src/utils.js';function _0x1cd9(_0x5d3024,_0x179bac){const _0x3d067d=_0x3d06();return _0x1cd9=function(_0x1cd9d0,_0x17d65f){_0x1cd9d0=_0x1cd9d0-0x192;let _0x3c8bd9=_0x3d067d[_0x1cd9d0];return _0x3c8bd9;},_0x1cd9(_0x5d3024,_0x179bac);}import{BalloonPanelView as _0xc22553,BodyCollection as _0x30b9a1,ButtonView as _0x418e57,clickOutsideHandler as _0x309056,ListItemButtonView as _0x160a3a,ListItemView as _0x12b2da,ListView as _0x27ace8,SplitButtonView as _0x1ab1e2,UIModel as _0x51e95a,View as _0x5cebd0}from'ckeditor5/src/ui.js';import{IconCheck as _0x319883,IconAddComment as _0x5bbe6e,IconDocumentWithLoupe as _0x55719f}from'ckeditor5/src/icons.js';import{getTranslation as _0x358a12}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x14f0dc(0x1f1),_0x14f0dc(0x19d),_0x14f0dc(0x1a4)];export class AIChatFeedSuggestionItemActionsView extends _0x5cebd0{[_0x14f0dc(0x19b)];[_0x14f0dc(0x1d4)];[_0x14f0dc(0x1e4)];[_0x14f0dc(0x19c)];[_0x14f0dc(0x19f)];[_0x14f0dc(0x1ec)]=0x1;[_0x14f0dc(0x1bf)];[_0x14f0dc(0x1b9)];[_0x14f0dc(0x19a)]=!0x0;constructor(_0x42ea17,_0x4e836a){const _0x5796c4=_0x14f0dc;super(_0x42ea17),this[_0x5796c4(0x1bf)]=_0x4e836a||[...AI_REPLY_ACTIONS],this[_0x5796c4(0x1b9)]=[...this[_0x5796c4(0x1bf)]];const _0x53cc49=this[_0x5796c4(0x1e7)];this[_0x5796c4(0x1b0)](_0x5796c4(0x1a0),!0x0),this[_0x5796c4(0x1b0)](_0x5796c4(0x192),!0x0),this[_0x5796c4(0x1b0)](_0x5796c4(0x1c0),!0x1),this[_0x5796c4(0x1e4)]=new _0x51e95a({'label':Hn(_0x5796c4(0x1f1),_0x42ea17,this[_0x5796c4(0x1ec)]),'icon':_0x319883,'withText':!0x0,'type':_0x5796c4(0x1c4),'actionName':_0x5796c4(0x1f1)}),this[_0x5796c4(0x19c)]=new _0x51e95a({'label':Hn(_0x5796c4(0x1a4),_0x42ea17,this[_0x5796c4(0x1ec)]),'icon':_0x55719f,'withText':!0x0,'type':_0x5796c4(0x1c4),'actionName':_0x5796c4(0x1a4)}),this[_0x5796c4(0x19f)]=new _0x51e95a({'label':Hn(_0x5796c4(0x19d),_0x42ea17,this[_0x5796c4(0x1ec)]),'icon':_0x5bbe6e,'withText':!0x0,'type':_0x5796c4(0x1c4),'actionName':_0x5796c4(0x19d)}),this[_0x5796c4(0x19b)]=this[_0x5796c4(0x1af)](_0x42ea17),this[_0x5796c4(0x1d4)]=this[_0x5796c4(0x1d0)](),this[_0x5796c4(0x19b)]&&this[_0x5796c4(0x1d4)][_0x5796c4(0x1b8)](this[_0x5796c4(0x19b)]),this[_0x5796c4(0x1d7)]({'tag':_0x5796c4(0x1a1),'attributes':{'class':['ck',_0x5796c4(0x1ef),_0x53cc49['if'](_0x5796c4(0x192),_0x5796c4(0x1d3),_0xcc25eb=>!_0xcc25eb)]},'children':this[_0x5796c4(0x1d4)]}),this['on'](_0x5796c4(0x1c8),()=>{const _0x3eef64=_0x5796c4;this[_0x3eef64(0x1b9)]=this[_0x3eef64(0x1c0)]?this[_0x3eef64(0x1bf)][_0x3eef64(0x1f2)](_0x54a32b=>_0x3eef64(0x1f1)!==_0x54a32b):[...this[_0x3eef64(0x1bf)]],this[_0x3eef64(0x1ba)](_0x42ea17);});}[_0x14f0dc(0x1ba)](_0x4a1c33){const _0x4c5e99=_0x14f0dc;this[_0x4c5e99(0x19b)]&&this[_0x4c5e99(0x1d4)][_0x4c5e99(0x197)](this[_0x4c5e99(0x19b)])&&(this[_0x4c5e99(0x1d4)][_0x4c5e99(0x1f0)](this[_0x4c5e99(0x19b)]),this[_0x4c5e99(0x19b)][_0x4c5e99(0x1de)]()),this[_0x4c5e99(0x19b)]=this[_0x4c5e99(0x1af)](_0x4a1c33),this[_0x4c5e99(0x19b)]&&this[_0x4c5e99(0x1d4)][_0x4c5e99(0x1b8)](this[_0x4c5e99(0x19b)]);}[_0x14f0dc(0x1af)](_0x2d273a){const _0x2fc3b2=_0x14f0dc;if(0x0==this[_0x2fc3b2(0x1b9)][_0x2fc3b2(0x1da)])return null;const _0x326661=0x1===this[_0x2fc3b2(0x1b9)][_0x2fc3b2(0x1da)]?this[_0x2fc3b2(0x1b3)](_0x2d273a):this[_0x2fc3b2(0x1bb)](_0x2d273a),_0x4dd42a=this[_0x2fc3b2(0x19a)]?'':_0x2fc3b2(0x1cb);_0x326661[_0x2fc3b2(0x1b0)]({'label':Hn(this[_0x2fc3b2(0x1b9)][0x0],_0x2d273a,this[_0x2fc3b2(0x1ec)]),'tooltip':Ln(this[_0x2fc3b2(0x1b9)][0x0],_0x2d273a,this[_0x2fc3b2(0x1ec)]),'withText':!0x0,'class':_0x2fc3b2(0x1ce)+_0x4dd42a});for(const _0x22fd3c of this[_0x2fc3b2(0x1b9)])_0x326661['on'](_0x22fd3c,()=>{const _0x8a21f3=_0x2fc3b2;this[_0x8a21f3(0x1e0)](_0x22fd3c);});return this[_0x2fc3b2(0x19a)]=!0x1,_0x326661;}[_0x14f0dc(0x1b3)](_0x114db5){const _0x372bc5=_0x14f0dc,_0x56df0c=new _0x418e57(_0x114db5);return _0x56df0c[_0x372bc5(0x1b0)]({'class':_0x372bc5(0x1a7),'withText':!0x0}),_0x56df0c['on'](_0x372bc5(0x1c5),()=>{const _0x51054f=_0x372bc5;_0x56df0c[_0x51054f(0x1e0)](this[_0x51054f(0x1b9)][0x0]);}),_0x56df0c;}[_0x14f0dc(0x1bb)](_0x2c4c0b){const _0xe43b90=_0x14f0dc,_0x4331d0=new Gn(_0x2c4c0b,{'listItemModels':this[_0xe43b90(0x1b9)][_0xe43b90(0x1c7)](_0x407274=>{const _0x3441a0=_0xe43b90;switch(_0x407274){case _0x3441a0(0x1f1):return this[_0x3441a0(0x1e4)];case _0x3441a0(0x1a4):return this[_0x3441a0(0x19c)];case _0x3441a0(0x19d):return this[_0x3441a0(0x19f)];}})});return _0x4331d0[_0xe43b90(0x1b0)]({'label':Hn(this[_0xe43b90(0x1b9)][0x0],_0x2c4c0b,this[_0xe43b90(0x1ec)]),'tooltip':Ln(this[_0xe43b90(0x1b9)][0x0],_0x2c4c0b,this[_0xe43b90(0x1ec)]),'withText':!0x0,'class':_0xe43b90(0x1ef),'balloonPanelClass':_0xe43b90(0x1a3)}),_0x4331d0[_0xe43b90(0x1a6)](_0xe43b90(0x1a0))['to'](this),_0x4331d0;}[_0x14f0dc(0x1cc)](_0x18536b){const _0x490880=_0x14f0dc,_0x59c777=this[_0x490880(0x1ab)];this[_0x490880(0x1ec)]=_0x18536b||this[_0x490880(0x1ec)],this[_0x490880(0x19b)][_0x490880(0x1b0)]({'label':Hn(this[_0x490880(0x1b9)][0x0],_0x59c777,this[_0x490880(0x1ec)]),'tooltip':Ln(this[_0x490880(0x1b9)][0x0],_0x59c777,this[_0x490880(0x1ec)])}),this[_0x490880(0x1e4)][_0x490880(0x19e)]=Hn(_0x490880(0x1f1),_0x59c777,this[_0x490880(0x1ec)]),this[_0x490880(0x19c)][_0x490880(0x19e)]=Hn(_0x490880(0x1a4),_0x59c777,this[_0x490880(0x1ec)]),this[_0x490880(0x19f)][_0x490880(0x19e)]=Hn(_0x490880(0x19d),_0x59c777,this[_0x490880(0x1ec)]);}}class Gn extends _0x1ab1e2{[_0x14f0dc(0x1e9)];[_0x14f0dc(0x1c3)];[_0x14f0dc(0x1ed)];[_0x14f0dc(0x1eb)];constructor(_0x2175ac,_0x38a2d1){const _0x4043f1=_0x14f0dc;super(_0x2175ac),this[_0x4043f1(0x1c3)]=new _0xc22553(this[_0x4043f1(0x1ab)]),this[_0x4043f1(0x1e9)]=new _0x30b9a1(this[_0x4043f1(0x1ab)]),this[_0x4043f1(0x1e9)][_0x4043f1(0x1a5)](),this[_0x4043f1(0x1b0)](_0x4043f1(0x1c2),''),this[_0x4043f1(0x1c3)][_0x4043f1(0x1a6)](_0x4043f1(0x1e2))['to'](this,_0x4043f1(0x1c2)),this[_0x4043f1(0x1ed)]=this[_0x4043f1(0x1df)](_0x38a2d1[_0x4043f1(0x198)][_0x4043f1(0x1a2)](0x1)),this[_0x4043f1(0x1e9)][_0x4043f1(0x1b8)](this[_0x4043f1(0x1c3)]),this[_0x4043f1(0x1c3)][_0x4043f1(0x193)][_0x4043f1(0x1b8)](this[_0x4043f1(0x1ed)]),this[_0x4043f1(0x196)][_0x4043f1(0x1cd)](_0x4043f1(0x1ac)),this[_0x4043f1(0x196)][_0x4043f1(0x1b0)](_0x4043f1(0x1ac),_0x358a12(this[_0x4043f1(0x1ab)],_0x4043f1(0x1b1))),this[_0x4043f1(0x1e5)](),this['on'](_0x4043f1(0x1c5),()=>{const _0x486c6c=_0x4043f1,_0x35c007=_0x38a2d1[_0x486c6c(0x198)][0x0][_0x486c6c(0x1b6)];this[_0x486c6c(0x1e0)](_0x35c007),this[_0x486c6c(0x1c3)][_0x486c6c(0x1c6)](),this[_0x486c6c(0x196)][_0x486c6c(0x195)]();}),this['on'](_0x4043f1(0x1f4),()=>{const _0x195e1a=_0x4043f1;this[_0x195e1a(0x1c3)][_0x195e1a(0x192)]?(this[_0x195e1a(0x1c3)][_0x195e1a(0x1c6)](),this[_0x195e1a(0x196)][_0x195e1a(0x195)]()):(this[_0x195e1a(0x1c3)][_0x195e1a(0x1ea)]({'target':this[_0x195e1a(0x1b7)],'positions':[_0x195e1a(0x1f3)===this[_0x195e1a(0x1ab)][_0x195e1a(0x1b2)]?yn:Pn]}),this[_0x195e1a(0x1ed)][_0x195e1a(0x195)]());}),_0x309056({'emitter':this[_0x4043f1(0x1c3)],'callback':()=>{const _0x2c26cf=_0x4043f1;this[_0x2c26cf(0x1c3)][_0x2c26cf(0x1c6)]();},'activator':()=>this[_0x4043f1(0x1c3)][_0x4043f1(0x192)],'contextElements':()=>[this[_0x4043f1(0x1b7)],this[_0x4043f1(0x1c3)][_0x4043f1(0x1b7)]]});}[_0x14f0dc(0x1df)](_0xb44b62){const _0x593667=_0x14f0dc,_0x229d19=this[_0x593667(0x1ab)],_0x58e765=new _0x27ace8(_0x229d19);for(const _0x2040c3 of _0xb44b62){const _0x37e179=new _0x12b2da(_0x229d19),_0x1075bb=new _0x160a3a(_0x229d19);_0x1075bb[_0x593667(0x1a6)](...Object[_0x593667(0x1d9)](_0x2040c3))['to'](_0x2040c3),_0x1075bb[_0x593667(0x1e6)](_0x593667(0x1c5))['to'](_0x58e765),_0x37e179[_0x593667(0x1d4)][_0x593667(0x1b8)](_0x1075bb),_0x58e765[_0x593667(0x1ca)][_0x593667(0x1b8)](_0x37e179);}return _0x58e765[_0x593667(0x1ca)][_0x593667(0x1e6)](_0x593667(0x1c5))['to'](this),_0x58e765['on'](_0x593667(0x1c5),_0x12db47=>{const _0x4dc379=_0x593667,_0x4cf8c5=_0x12db47[_0x4dc379(0x1d2)];this[_0x4dc379(0x1e0)](_0x4cf8c5[_0x4dc379(0x1b6)]),this[_0x4dc379(0x1c3)][_0x4dc379(0x1c6)](),this[_0x4dc379(0x196)][_0x4dc379(0x195)]();}),_0x58e765;}[_0x14f0dc(0x1e5)](){const _0x1ce309=_0x14f0dc;this[_0x1ce309(0x1eb)]=new _0x349cc5(),this[_0x1ce309(0x1eb)][_0x1ce309(0x1a8)](this[_0x1ce309(0x1c3)][_0x1ce309(0x1b7)]),this[_0x1ce309(0x1eb)][_0x1ce309(0x1b0)](_0x1ce309(0x1b4),(_0x315bd8,_0xdb0522)=>{const _0x1ba069=_0x1ce309;this[_0x1ba069(0x1c3)][_0x1ba069(0x1c6)](),this[_0x1ba069(0x196)][_0x1ba069(0x195)](),_0xdb0522();});}[_0x14f0dc(0x1de)](){const _0x1f2e2d=_0x14f0dc;super[_0x1f2e2d(0x1de)](),this[_0x1f2e2d(0x1eb)][_0x1f2e2d(0x1de)](),this[_0x1f2e2d(0x1c3)][_0x1f2e2d(0x1de)](),this[_0x1f2e2d(0x1e9)][_0x1f2e2d(0x194)]();}}function _0x3d06(){const _0x59a556=['_partsCount','listView','4052840cIaZCl','ck-ai-chat__feed__ai-suggestion__actions','remove','applySuggestion','filter','ltr','open','isVisible','content','detachFromDom','focus','arrowView','has','listItemModels','8548DGXqPT','_firstRender','actionsButton','showChangeInTextModel','insertSuggestion','label','insertSuggestionModel','isEnabled','div','slice','ck-ai-chat__feed__ai-suggestion__actions__balloon','showChangeInText','attachToDom','bind','ck-ai-button-primary','listenTo','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','22ESVMhW','locale','tooltip','1735785ILpNzU','240vtkdaj','_createActionsDropdownOrButton','set','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','uiLanguageDirection','_createActionsButton','esc','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','actionName','element','add','_dropdownCurrentConfig','_updateDropdownActions','_createActionsDropdown','arrowless','640485dotTMP','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','_dropdownOriginalConfig','isTrackChangesOn','left','balloonPanelClass','balloonPanelView','button','execute','hide','map','change:isTrackChangesOn','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','items','ck-ai-chat__feed__ai-suggestion__actions--no-animation','updateLabels','unbind','ck-ai-chat__feed__ai-suggestion__actions\x20','bottom','createCollection','1534OYKajU','source','ck-hidden','children','width','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','setTemplate','2WKSXac','keys','length','16ExHsEN','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','5307bSIoWx','destroy','_setUpList','fire','246SJMJZx','class','84126AlqtRY','applySuggestionModel','_setUpKeystrokes','delegate','bindTemplate','202752QJOIcx','bodyCollection','pin','keystrokeHandler'];_0x3d06=function(){return _0x59a556;};return _0x3d06();}function yn(_0x72b70f){const _0x5dbf08=_0x14f0dc;return{'top':_0x72b70f[_0x5dbf08(0x1cf)],'left':_0x72b70f[_0x5dbf08(0x1c1)],'name':_0x5dbf08(0x1bc),'config':{'withArrow':!0x1}};}function Pn(_0x54f725,_0xd40ad){const _0x36cab5=_0x14f0dc;return{'top':_0x54f725[_0x36cab5(0x1cf)],'left':_0x54f725[_0x36cab5(0x1c1)]-(_0xd40ad[_0x36cab5(0x1d5)]-_0x54f725[_0x36cab5(0x1d5)]),'name':_0x36cab5(0x1bc),'config':{'withArrow':!0x1}};}function Hn(_0x35b7f9,_0x4a2870,_0x18bda9){const _0x3ab930=_0x14f0dc;switch(_0x35b7f9){case _0x3ab930(0x1f1):return _0x358a12(_0x4a2870,_0x3ab930(0x1be),_0x18bda9);case _0x3ab930(0x1a4):return _0x358a12(_0x4a2870,_0x3ab930(0x1dc),_0x18bda9);case _0x3ab930(0x19d):return _0x358a12(_0x4a2870,_0x3ab930(0x1c9),_0x18bda9);}}function Ln(_0x1c01ec,_0x35edd9,_0x1bac78){const _0x4458d3=_0x14f0dc;switch(_0x1c01ec){case _0x4458d3(0x1f1):return _0x358a12(_0x35edd9,_0x4458d3(0x1a9),_0x1bac78);case _0x4458d3(0x1a4):return _0x358a12(_0x35edd9,_0x4458d3(0x1d6),_0x1bac78);case _0x4458d3(0x19d):return _0x358a12(_0x35edd9,_0x4458d3(0x1b5),_0x1bac78);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x123581=_0xf766;function _0xf766(_0x5abd94,_0x308c52){var _0x3c7c13=_0x3c7c();return _0xf766=function(_0xf76605,_0xf04f55){_0xf76605=_0xf76605-0x109;var _0x543217=_0x3c7c13[_0xf76605];return _0x543217;},_0xf766(_0x5abd94,_0x308c52);}function _0x3c7c(){var _0x2ae53d=['markAsDone','1543504yGJmET','64267LtEUTp','bodyView','ck-ai-chat__feed__ai-suggestion','isEnabled','isTrackChangesOn','fire','addMany','hasNonEmptyParts','updateLabels','7rMMXkX','insertSuggestion','containerView','availableActions','mouseLeaveSuggestion','180JkgyBB','mouseOverSuggestion','applySuggestion','extendTemplate','823160dpzQzP','2399832iJKkHZ','isVisible','options','bind','toggleSuggestionDisplayMode','showDiff','getPartView','like','hasPendingParts','partsCount','set','36363wlnmhv','updateContent','actionsView','128mxFxxP','updatePartState','updateSources','rejectSuggestion','249939trNGSu','children','showChangeInText','2342830fHBOhf','areActionsDisabled','dislike'];_0x3c7c=function(){return _0x2ae53d;};return _0x3c7c();}(function(_0x56b67b,_0x319840){var _0x233798=_0xf766,_0x89a97f=_0x56b67b();while(!![]){try{var _0x51cc30=parseInt(_0x233798(0x10d))/0x1+-parseInt(_0x233798(0x11f))/0x2+-parseInt(_0x233798(0x12b))/0x3*(-parseInt(_0x233798(0x12e))/0x4)+parseInt(_0x233798(0x135))/0x5+-parseInt(_0x233798(0x120))/0x6+-parseInt(_0x233798(0x116))/0x7*(parseInt(_0x233798(0x10c))/0x8)+-parseInt(_0x233798(0x132))/0x9*(-parseInt(_0x233798(0x11b))/0xa);if(_0x51cc30===_0x319840)break;else _0x89a97f['push'](_0x89a97f['shift']());}catch(_0x149d53){_0x89a97f['push'](_0x89a97f['shift']());}}}(_0x3c7c,0x6595d));import{AIChatFeedItemView as _0x13544e}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0xaa4c5a}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x2c0285}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x13544e{[_0x123581(0x118)];[_0x123581(0x12d)];constructor(_0x4e00d0,_0x2a2068){var _0x354506=_0x123581;super(_0x2a2068),this[_0x354506(0x12a)](_0x354506(0x111),!0x1),this[_0x354506(0x118)]=new _0xaa4c5a(_0x4e00d0,{'showDiff':_0x2a2068[_0x354506(0x125)],'areActionsDisabled':_0x2a2068[_0x354506(0x109)],'availableActions':_0x2a2068[_0x354506(0x119)]}),this[_0x354506(0x118)]['on'](_0x354506(0x124),(_0x4399be,_0x56bc88)=>{var _0x1fe028=_0x354506;this[_0x1fe028(0x112)](_0x1fe028(0x124),{'replyId':this[_0x1fe028(0x122)]['id'],'showDiff':_0x56bc88[_0x1fe028(0x125)]});}),this[_0x354506(0x118)]['on'](_0x354506(0x127),()=>{var _0x479287=_0x354506;this[_0x479287(0x112)](_0x479287(0x127),{'replyId':this[_0x479287(0x122)]['id']});}),this[_0x354506(0x118)]['on'](_0x354506(0x10a),()=>{var _0x958d79=_0x354506;this[_0x958d79(0x112)](_0x958d79(0x10a),{'replyId':this[_0x958d79(0x122)]['id']});}),this[_0x354506(0x118)]['on'](_0x354506(0x134),(_0x69493a,{index:_0xb33c30})=>{var _0x5484a0=_0x354506;this[_0x5484a0(0x112)](_0x5484a0(0x134),{'replyId':this[_0x5484a0(0x122)]['id'],'partIndex':_0xb33c30});}),this[_0x354506(0x118)]['on'](_0x354506(0x117),(_0x50efbf,{index:_0x1c58ab})=>{var _0x1d44c6=_0x354506;this[_0x1d44c6(0x112)](_0x1d44c6(0x117),{'replyId':this[_0x1d44c6(0x122)]['id'],'partIndex':_0x1c58ab});}),this[_0x354506(0x118)]['on'](_0x354506(0x131),(_0x12b1ab,{index:_0x5ca57a})=>{var _0x27dad2=_0x354506;this[_0x27dad2(0x112)](_0x27dad2(0x131),{'replyId':this[_0x27dad2(0x122)]['id'],'partIndex':_0x5ca57a});}),this[_0x354506(0x118)]['on'](_0x354506(0x11c),(_0x1b4ea1,{index:_0x472129})=>{var _0x3e1255=_0x354506;this[_0x3e1255(0x112)](_0x3e1255(0x11c),{'replyId':this[_0x3e1255(0x122)]['id'],'partIndex':_0x472129});}),this[_0x354506(0x118)]['on'](_0x354506(0x11a),(_0x1b2ff9,{index:_0x664b77})=>{var _0x5d545e=_0x354506;this[_0x5d545e(0x112)](_0x5d545e(0x11a),{'replyId':this[_0x5d545e(0x122)]['id'],'partIndex':_0x664b77});}),this[_0x354506(0x12d)]=new _0x2c0285(_0x4e00d0,this[_0x354506(0x122)][_0x354506(0x119)]),this[_0x354506(0x12d)][_0x354506(0x123)](_0x354506(0x111))['to'](this,_0x354506(0x111)),this[_0x354506(0x12d)]['on'](_0x354506(0x134),()=>{var _0xbbd0d8=_0x354506;this[_0xbbd0d8(0x112)](_0xbbd0d8(0x134),{'replyId':this[_0xbbd0d8(0x122)]['id']});}),this[_0x354506(0x12d)]['on'](_0x354506(0x117),()=>{var _0x102c47=_0x354506;this[_0x102c47(0x112)](_0x102c47(0x117),{'replyId':this[_0x102c47(0x122)]['id']});}),this[_0x354506(0x12d)]['on'](_0x354506(0x11d),()=>{var _0x46ef0c=_0x354506;this[_0x46ef0c(0x112)](_0x46ef0c(0x11d),{'replyId':this[_0x46ef0c(0x122)]['id']});}),_0x2a2068[_0x354506(0x109)]?this[_0x354506(0x12d)][_0x354506(0x110)]=!0x1:this[_0x354506(0x12d)][_0x354506(0x123)](_0x354506(0x110))['to'](this[_0x354506(0x118)][_0x354506(0x10e)],_0x354506(0x128)),this[_0x354506(0x133)][_0x354506(0x113)]([this[_0x354506(0x118)],this[_0x354506(0x12d)]]),this[_0x354506(0x11e)]({'attributes':{'class':[_0x354506(0x10f)]}});}async[_0x123581(0x12c)](_0x55aaeb){var _0xa21235=_0x123581;await this[_0xa21235(0x118)][_0xa21235(0x12c)](_0x55aaeb),this[_0xa21235(0x12d)][_0xa21235(0x115)](this[_0xa21235(0x118)][_0xa21235(0x10e)][_0xa21235(0x129)]);}[_0x123581(0x12f)](_0x212058,_0x4d8e1e){var _0x3c3d9c=_0x123581;this[_0x3c3d9c(0x118)][_0x3c3d9c(0x10e)][_0x3c3d9c(0x12f)](_0x212058,_0x4d8e1e);}[_0x123581(0x130)](_0x1c30d9){var _0x2cdcf6=_0x123581;this[_0x2cdcf6(0x118)][_0x2cdcf6(0x130)](_0x1c30d9);}[_0x123581(0x126)](_0x97b67c){var _0x2fec61=_0x123581;return this[_0x2fec61(0x118)][_0x2fec61(0x10e)][_0x2fec61(0x126)](_0x97b67c);}[_0x123581(0x10b)](){var _0x1bc398=_0x123581;super[_0x1bc398(0x10b)](),this[_0x1bc398(0x118)][_0x1bc398(0x10b)](),this[_0x1bc398(0x12d)][_0x1bc398(0x121)]=this[_0x1bc398(0x118)][_0x1bc398(0x10e)][_0x1bc398(0x114)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x257612=_0x58e7;(function(_0x5e579a,_0x53523a){var _0x59ba8b=_0x58e7,_0x32cc48=_0x5e579a();while(!![]){try{var _0x1ee5cc=parseInt(_0x59ba8b(0x172))/0x1*(parseInt(_0x59ba8b(0x17b))/0x2)+parseInt(_0x59ba8b(0x16b))/0x3*(parseInt(_0x59ba8b(0x174))/0x4)+-parseInt(_0x59ba8b(0x15e))/0x5*(parseInt(_0x59ba8b(0x15f))/0x6)+parseInt(_0x59ba8b(0x164))/0x7*(-parseInt(_0x59ba8b(0x180))/0x8)+parseInt(_0x59ba8b(0x181))/0x9*(parseInt(_0x59ba8b(0x17a))/0xa)+-parseInt(_0x59ba8b(0x17f))/0xb*(-parseInt(_0x59ba8b(0x16c))/0xc)+parseInt(_0x59ba8b(0x162))/0xd*(-parseInt(_0x59ba8b(0x179))/0xe);if(_0x1ee5cc===_0x53523a)break;else _0x32cc48['push'](_0x32cc48['shift']());}catch(_0x187576){_0x32cc48['push'](_0x32cc48['shift']());}}}(_0x5c61,0x3a8f9));import{AIChatFeedItemView as _0x5f5874}from'./aichatfeeditemview.js';function _0x5c61(){var _0x5e0ac5=['ck-ai-chat__feed__context-chips','initialContent','innerHTML','142077zjrbBW','36DnDCOM','div','add','setTemplate','_createContextChipsView','_bodyCollection','654nSqyOV','_contextChipsView','4VTzKuh','markAsDone','options','length','ck-ai-chat__feed__user-message','364mvqVui','65980xEKwip','1300jdQjsr','render','ck-ai-chat__feed__message-content','extendTemplate','401797czgWEK','8iXyynD','603qJgqsg','element','_locale','5AdhoYH','625284kLqUTA','filter','_messageContentView','135941EnxuNd','_createMessageContentView','2857015tHCAPG','hidden','children','contextItems'];_0x5c61=function(){return _0x5e0ac5;};return _0x5c61();}function _0x58e7(_0x2ad956,_0x20b668){var _0x5c61e9=_0x5c61();return _0x58e7=function(_0x58e725,_0x4963f4){_0x58e725=_0x58e725-0x15c;var _0x29a395=_0x5c61e9[_0x58e725];return _0x29a395;},_0x58e7(_0x2ad956,_0x20b668);}import{AIChatFeedContextChipsView as _0x29def1}from'./aichatfeedcontextchipsview.js';import{View as _0x4f6201}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x5f5874{[_0x257612(0x173)]=null;[_0x257612(0x15d)];[_0x257612(0x171)];[_0x257612(0x161)];constructor(_0xcc8c2b,_0x2ab55d,_0x5e961e){var _0x2bd9b1=_0x257612;super(_0x2ab55d),this[_0x2bd9b1(0x15d)]=_0xcc8c2b,this[_0x2bd9b1(0x171)]=_0x5e961e,this[_0x2bd9b1(0x170)](),this[_0x2bd9b1(0x163)](),this[_0x2bd9b1(0x17e)]({'attributes':{'class':[_0x2bd9b1(0x178)]}});}[_0x257612(0x170)](){var _0x2aa1eb=_0x257612;this[_0x2aa1eb(0x176)][_0x2aa1eb(0x167)]&&this[_0x2aa1eb(0x176)][_0x2aa1eb(0x167)][_0x2aa1eb(0x177)]>0x0&&(this[_0x2aa1eb(0x173)]=new _0x29def1(this[_0x2aa1eb(0x15d)],this[_0x2aa1eb(0x176)][_0x2aa1eb(0x167)][_0x2aa1eb(0x160)](_0x244e31=>!_0x244e31[_0x2aa1eb(0x165)]),this[_0x2aa1eb(0x171)]),this[_0x2aa1eb(0x173)][_0x2aa1eb(0x17e)]({'attributes':{'class':_0x2aa1eb(0x168)}}),this[_0x2aa1eb(0x166)][_0x2aa1eb(0x16e)](this[_0x2aa1eb(0x173)]));}[_0x257612(0x163)](){var _0x150e02=_0x257612;this[_0x150e02(0x161)]=new _0x4f6201(this[_0x150e02(0x15d)]),this[_0x150e02(0x161)][_0x150e02(0x16f)]({'tag':_0x150e02(0x16d),'attributes':{'class':_0x150e02(0x17d)}}),this[_0x150e02(0x166)][_0x150e02(0x16e)](this[_0x150e02(0x161)]);}[_0x257612(0x17c)](){var _0xf3c8de=_0x257612;super[_0xf3c8de(0x17c)](),this[_0xf3c8de(0x161)][_0xf3c8de(0x15c)][_0xf3c8de(0x16a)]=this[_0xf3c8de(0x176)][_0xf3c8de(0x169)],this[_0xf3c8de(0x175)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c069e=_0x3671;(function(_0x599bd7,_0x411d07){const _0x58f9df=_0x3671,_0x59fc79=_0x599bd7();while(!![]){try{const _0x35df03=parseInt(_0x58f9df(0xb1))/0x1+-parseInt(_0x58f9df(0xb2))/0x2*(-parseInt(_0x58f9df(0xb5))/0x3)+parseInt(_0x58f9df(0xad))/0x4+-parseInt(_0x58f9df(0xb8))/0x5*(-parseInt(_0x58f9df(0xa3))/0x6)+-parseInt(_0x58f9df(0xa6))/0x7*(parseInt(_0x58f9df(0xa9))/0x8)+parseInt(_0x58f9df(0xa8))/0x9+-parseInt(_0x58f9df(0xb7))/0xa;if(_0x35df03===_0x411d07)break;else _0x59fc79['push'](_0x59fc79['shift']());}catch(_0x21b85e){_0x59fc79['push'](_0x59fc79['shift']());}}}(_0x1e64,0xe3bbd));function _0x1e64(){const _0x4e1614=['selectModel','70EycZnG','abortPromptStream','6556149cRIJan','1066832GxBMJm','startConversation','sendUserMessage','addUrlToContext','4517952PZfgAP','addFileToContext','addDocumentToContext','toggleReasoning','186305hRgLjF','4usaygj','loadSourceResources','removeContextItem','910794ybyOkg','addResourceToContext','13689130nUwEtB','10CNIPZR','resizeTabs','2951400VwtVLC','toggleWebSearch'];_0x1e64=function(){return _0x4e1614;};return _0x1e64();}function _0x3671(_0xf29f1d,_0x1b1130){const _0x1e645b=_0x1e64();return _0x3671=function(_0x3671e4,_0x3372ea){_0x3671e4=_0x3671e4-0xa3;let _0xf7642f=_0x1e645b[_0x3671e4];return _0xf7642f;},_0x3671(_0xf29f1d,_0x1b1130);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4cb3ec}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x4cb3ec,_0x5c069e(0xaa),_0x5c069e(0xb9),_0x5c069e(0xab),_0x5c069e(0xa7),_0x5c069e(0xaf),_0x5c069e(0xae),_0x5c069e(0xac),_0x5c069e(0xb6),_0x5c069e(0xb4),_0x5c069e(0xb3),_0x5c069e(0xa4),_0x5c069e(0xb0),_0x5c069e(0xa5)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15e2ab=_0x26f5;function _0x26f5(_0x2387d2,_0x39b61b){const _0x544ec7=_0x544e();return _0x26f5=function(_0x26f54b,_0x509a64){_0x26f54b=_0x26f54b-0x154;let _0x8b744a=_0x544ec7[_0x26f54b];return _0x8b744a;},_0x26f5(_0x2387d2,_0x39b61b);}(function(_0xfffe73,_0x4ba823){const _0x41c2d5=_0x26f5,_0x19892b=_0xfffe73();while(!![]){try{const _0xd5d454=parseInt(_0x41c2d5(0x155))/0x1+parseInt(_0x41c2d5(0x154))/0x2*(parseInt(_0x41c2d5(0x165))/0x3)+-parseInt(_0x41c2d5(0x156))/0x4*(parseInt(_0x41c2d5(0x160))/0x5)+-parseInt(_0x41c2d5(0x16f))/0x6*(-parseInt(_0x41c2d5(0x15a))/0x7)+-parseInt(_0x41c2d5(0x15d))/0x8*(-parseInt(_0x41c2d5(0x170))/0x9)+parseInt(_0x41c2d5(0x158))/0xa+-parseInt(_0x41c2d5(0x15b))/0xb;if(_0xd5d454===_0x4ba823)break;else _0x19892b['push'](_0x19892b['shift']());}catch(_0x46bdbe){_0x19892b['push'](_0x19892b['shift']());}}}(_0x544e,0xcbaad));function _0x544e(){const _0x45353b=['56Ljcqzs','fire','callback','60ARiBvr','_abortController','abort','_queueEmpty','length','9AWHmHc','queue','completePromise','signal','shift','enqueue','_processQueue','push','isProcessing','reject','814194fADPlG','1727991XYiAlC','createTask','235756CGHDOu','223598ZMknCn','547528gIfJYp','once','15733570QYLGLB','queueEmptyPromise','7bKdAQQ','12688236GyskpS','resolve'];_0x544e=function(){return _0x45353b;};return _0x544e();}import{EmitterMixin as _0x5852b8}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x5852b8(){[_0x15e2ab(0x166)]=[];[_0x15e2ab(0x16d)]=!0x1;[_0x15e2ab(0x161)];async[_0x15e2ab(0x16a)](_0x522306){const _0x277c13=_0x15e2ab,_0x38be50=this[_0x277c13(0x171)](_0x522306);return this[_0x277c13(0x166)][_0x277c13(0x16c)](_0x38be50),this[_0x277c13(0x16b)](),_0x38be50[_0x277c13(0x167)];}[_0x15e2ab(0x162)](){const _0x3be33e=_0x15e2ab;this[_0x3be33e(0x16d)]&&(this[_0x3be33e(0x161)][_0x3be33e(0x162)](),this[_0x3be33e(0x161)]=void 0x0,this[_0x3be33e(0x166)]=[],this[_0x3be33e(0x15e)](_0x3be33e(0x163)),this[_0x3be33e(0x16d)]=!0x1);}get[_0x15e2ab(0x159)](){const _0x5e9083=_0x15e2ab;return this[_0x5e9083(0x166)][_0x5e9083(0x164)]||this[_0x5e9083(0x16d)]?new Promise(_0x55b65b=>{const _0x340e0c=_0x5e9083;this[_0x340e0c(0x157)](_0x340e0c(0x163),()=>{_0x55b65b();});}):Promise[_0x5e9083(0x15c)]();}async[_0x15e2ab(0x16b)](){const _0x3a6c9f=_0x15e2ab;if(!this[_0x3a6c9f(0x16d)]){this[_0x3a6c9f(0x161)]=new AbortController(),this[_0x3a6c9f(0x16d)]=!0x0;try{for(;this[_0x3a6c9f(0x166)][_0x3a6c9f(0x164)]&&this[_0x3a6c9f(0x16d)];){const _0x243521=this[_0x3a6c9f(0x166)][_0x3a6c9f(0x169)]();try{await _0x243521[_0x3a6c9f(0x15f)](this[_0x3a6c9f(0x161)][_0x3a6c9f(0x168)]),_0x243521[_0x3a6c9f(0x15c)]();}catch(_0x4e4ece){_0x243521[_0x3a6c9f(0x16e)](_0x4e4ece);}}}finally{this[_0x3a6c9f(0x16d)]=!0x1,this[_0x3a6c9f(0x161)]=void 0x0;}this[_0x3a6c9f(0x15e)](_0x3a6c9f(0x163));}}[_0x15e2ab(0x171)](_0x3f3ae7){let _0x3997d2,_0x347391;const _0xd24887=new Promise((_0x5b6979,_0x301fdd)=>{_0x3997d2=_0x5b6979,_0x347391=_0x301fdd;});return{'callback':_0x3f3ae7,'resolve':_0x3997d2,'reject':_0x347391,'completePromise':_0xd24887};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcb5df5=_0x52cd;(function(_0x5f4864,_0x421282){const _0x21fd75=_0x52cd,_0x19c03f=_0x5f4864();while(!![]){try{const _0x227c66=parseInt(_0x21fd75(0x106))/0x1*(parseInt(_0x21fd75(0xe1))/0x2)+-parseInt(_0x21fd75(0x103))/0x3*(-parseInt(_0x21fd75(0x104))/0x4)+-parseInt(_0x21fd75(0xff))/0x5*(-parseInt(_0x21fd75(0xe6))/0x6)+-parseInt(_0x21fd75(0xef))/0x7*(parseInt(_0x21fd75(0xe9))/0x8)+-parseInt(_0x21fd75(0xf4))/0x9+-parseInt(_0x21fd75(0x108))/0xa*(-parseInt(_0x21fd75(0xdc))/0xb)+-parseInt(_0x21fd75(0xea))/0xc*(-parseInt(_0x21fd75(0xe4))/0xd);if(_0x227c66===_0x421282)break;else _0x19c03f['push'](_0x19c03f['shift']());}catch(_0x516227){_0x19c03f['push'](_0x19c03f['shift']());}}}(_0x2e8a,0xdff8e));const ls=[_0xcb5df5(0xf2),_0xcb5df5(0xdd),_0xcb5df5(0xfc),_0xcb5df5(0xec)],us=[_0xcb5df5(0x100),_0xcb5df5(0x102),_0xcb5df5(0xeb),_0xcb5df5(0xf7),_0xcb5df5(0xe8),_0xcb5df5(0xe5),'\x20'];function _0x2e8a(){const _0x1a3b16=['abortController','1AXupIt','auto','76630KEnCjF','scrollTo','484jmlFUz','touchstart','animationFrameId','_onUserEvent','includes','3326782FPJHhe','addEventListener','_stop','1193179THYHWK','End','1071324tonlnD','_isAtBottom','Home','1112mIrVoX','24aZgoJB','PageUp','keydown','type','isUserPaused','68922gfVVmR','destroy','start','wheel','deltaY','7088499HPybEq','element','stop','PageDown','isRunning','abort','bind','scrollHeight','pointerdown','key','_rafUpdate','20ElnXoa','ArrowUp','signal','ArrowDown','30KVogEb','70100ocINpv'];_0x2e8a=function(){return _0x1a3b16;};return _0x2e8a();}function _0x52cd(_0x128795,_0xb79531){const _0x2e8a50=_0x2e8a();return _0x52cd=function(_0x52cde7,_0x53c39a){_0x52cde7=_0x52cde7-0xdb;let _0x11f9b9=_0x2e8a50[_0x52cde7];return _0x11f9b9;},_0x52cd(_0x128795,_0xb79531);}export class ScrollManager{[_0xcb5df5(0xf5)];[_0xcb5df5(0xde)];[_0xcb5df5(0xf8)];[_0xcb5df5(0x105)];[_0xcb5df5(0xee)];constructor(_0x203610){const _0x5d9eb0=_0xcb5df5;this[_0x5d9eb0(0xf5)]=_0x203610,this[_0x5d9eb0(0xde)]=null,this[_0x5d9eb0(0xf8)]=!0x1,this[_0x5d9eb0(0x105)]=new AbortController(),this[_0x5d9eb0(0xee)]=!0x1;for(const _0x5f1979 of ls){const _0x34e1c7=_0x5d9eb0(0xec)!==_0x5f1979;this[_0x5d9eb0(0xf5)][_0x5d9eb0(0xe2)](_0x5f1979,this[_0x5d9eb0(0xdf)][_0x5d9eb0(0xfa)](this),{'passive':_0x34e1c7,'signal':this[_0x5d9eb0(0x105)][_0x5d9eb0(0x101)]});}}[_0xcb5df5(0xf1)](){const _0x106ebd=_0xcb5df5;this[_0x106ebd(0xf8)]||(this[_0x106ebd(0xf8)]=!0x0,this[_0x106ebd(0xee)]=!0x1,this[_0x106ebd(0xde)]=requestAnimationFrame(this[_0x106ebd(0xfe)][_0x106ebd(0xfa)](this)));}[_0xcb5df5(0xf6)](){requestAnimationFrame(()=>{const _0x5eea01=_0x52cd;this[_0x5eea01(0xe3)]();});}[_0xcb5df5(0xf0)](){const _0x1590c4=_0xcb5df5;this[_0x1590c4(0xe3)](),this[_0x1590c4(0x105)][_0x1590c4(0xf9)]();}[_0xcb5df5(0xe3)](){const _0x11d2c8=_0xcb5df5;null!==this[_0x11d2c8(0xde)]&&(cancelAnimationFrame(this[_0x11d2c8(0xde)]),this[_0x11d2c8(0xde)]=null),this[_0x11d2c8(0xf8)]&&(this[_0x11d2c8(0xf8)]=!0x1),this[_0x11d2c8(0xee)]=!0x1;}[_0xcb5df5(0xdf)](_0x53d968){const _0x4ff20c=_0xcb5df5;if(this[_0x4ff20c(0xf8)]){if(_0x4ff20c(0xec)===_0x53d968[_0x4ff20c(0xed)]){const _0x5a3a9b=_0x53d968[_0x4ff20c(0xfd)];if(!us[_0x4ff20c(0xe0)](_0x5a3a9b))return;}_0x53d968 instanceof WheelEvent?_0x53d968[_0x4ff20c(0xf3)]<0x0?this[_0x4ff20c(0xee)]=!0x0:this[_0x4ff20c(0xee)]=!this[_0x4ff20c(0xe7)]():this[_0x4ff20c(0xee)]=!0x0;}}[_0xcb5df5(0xe7)](){const _0x1aad60=_0xcb5df5,{scrollTop:_0x1cf364,scrollHeight:_0x4ae3ab,clientHeight:_0x44b513}=this[_0x1aad60(0xf5)];return _0x4ae3ab-_0x1cf364-_0x44b513<=0x5;}[_0xcb5df5(0xfe)](){const _0x4db970=_0xcb5df5;this[_0x4db970(0xf8)]&&(this[_0x4db970(0xee)]||this[_0x4db970(0xf5)][_0x4db970(0xdb)]({'top':this[_0x4db970(0xf5)][_0x4db970(0xfb)],'behavior':_0x4db970(0x107)}),this[_0x4db970(0xde)]=requestAnimationFrame(this[_0x4db970(0xfe)][_0x4db970(0xfa)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2ec686=_0x25df;(function(_0x55ee89,_0x322774){var _0x44d72d=_0x25df,_0x56e624=_0x55ee89();while(!![]){try{var _0x383782=-parseInt(_0x44d72d(0xdb))/0x1*(-parseInt(_0x44d72d(0xe3))/0x2)+-parseInt(_0x44d72d(0xdc))/0x3*(parseInt(_0x44d72d(0xda))/0x4)+-parseInt(_0x44d72d(0xe6))/0x5+parseInt(_0x44d72d(0xdd))/0x6*(-parseInt(_0x44d72d(0xe0))/0x7)+parseInt(_0x44d72d(0xdf))/0x8*(parseInt(_0x44d72d(0xea))/0x9)+parseInt(_0x44d72d(0xde))/0xa+-parseInt(_0x44d72d(0xe5))/0xb*(-parseInt(_0x44d72d(0xe9))/0xc);if(_0x383782===_0x322774)break;else _0x56e624['push'](_0x56e624['shift']());}catch(_0x209b9d){_0x56e624['push'](_0x56e624['shift']());}}}(_0x145f,0xcfc0e));function _0x25df(_0x2ed6e2,_0x561661){var _0x145f92=_0x145f();return _0x25df=function(_0x25df4e,_0x49f60d){_0x25df4e=_0x25df4e-0xda;var _0x316369=_0x145f92[_0x25df4e];return _0x316369;},_0x25df(_0x2ed6e2,_0x561661);}import{ContextPlugin as _0x4726a3}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x55bd6e}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x4ab78b}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4726a3{static get[_0x2ec686(0xe2)](){return[_0x55bd6e,_0x4ab78b];}static get[_0x2ec686(0xe8)](){var _0x1374e0=_0x2ec686;return _0x1374e0(0xe1);}static get[_0x2ec686(0xe4)](){return!0x0;}static get[_0x2ec686(0xe7)](){return!0x0;}}function _0x145f(){var _0x3cf63c=['isOfficialPlugin','24582437UMxCHQ','4500580JZlpwG','isPremiumPlugin','pluginName','12FvdKWB','9omYzAu','248828dfbRLh','1086ZYGZJO','81JoKLRN','12414dDODzd','3241570wkifGY','5411512fUhmWB','2940bWniua','AIChatHistory','requires','1960ixzGjC'];_0x145f=function(){return _0x3cf63c;};return _0x145f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x902c0c=_0x3e72;(function(_0x542da9,_0x5d355c){const _0x1f59f6=_0x3e72,_0x2e76ef=_0x542da9();while(!![]){try{const _0x156223=parseInt(_0x1f59f6(0x12f))/0x1+parseInt(_0x1f59f6(0x152))/0x2+-parseInt(_0x1f59f6(0x118))/0x3*(-parseInt(_0x1f59f6(0x11c))/0x4)+-parseInt(_0x1f59f6(0x11f))/0x5*(parseInt(_0x1f59f6(0x117))/0x6)+parseInt(_0x1f59f6(0x11e))/0x7+-parseInt(_0x1f59f6(0x175))/0x8+parseInt(_0x1f59f6(0x146))/0x9*(-parseInt(_0x1f59f6(0x151))/0xa);if(_0x156223===_0x5d355c)break;else _0x2e76ef['push'](_0x2e76ef['shift']());}catch(_0x36a16b){_0x2e76ef['push'](_0x2e76ef['shift']());}}}(_0x2f8d,0xe63bc));import{ContextPlugin as _0xc2016}from'ckeditor5/src/core.js';function _0x3e72(_0x4b191c,_0x3e6991){const _0x2f8d9b=_0x2f8d();return _0x3e72=function(_0x3e728d,_0x44a9d8){_0x3e728d=_0x3e728d-0x113;let _0x5cab7c=_0x2f8d9b[_0x3e728d];return _0x5cab7c;},_0x3e72(_0x4b191c,_0x3e6991);}import{AIConnector as _0x1f2c81}from'../aicore/aiconnector.js';import{AIChatController as _0x50c978}from'../aichat/aichatcontroller.js';function _0x2f8d(){const _0x453139=['AI_CHAT_HISTORY_CATEGORY_YESTERDAY','loadItems','pinned','12489408SSArzL','activeConversation','view','itemsLoaded','resize','unpin','AIChatHistoryController','AI_CHAT_UNTITLED_CONVERSATION','4559946LtzryC','562737rCSAZA','_handleRemove','_getCategorizedItems','createdAt','24KSVUkQ','AI_CHAT_HISTORY_UNPIN_ACTION','8602132KSsXgY','5kQadVU','toLocaleDateString','getItems','_updateHistoryItemsUI','length','title','getGroupId','requires','plugins','chat','map','context','_aiConnector','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_TODAY','editConversationTitle','1835748iEBqpZ','isPremiumPlugin','getItem','itemRemoved','removeHistoryItem','_aiChatHistoryUi','AI_CHAT_HISTORY_CATEGORY_PINNED','change:activeConversation','_generateErrorMessage','itemUpdated','rename','removeItem','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','activateTab','selectConversation','get','items','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','error','operation','_aiChatController','setIsMaximized','902628dUufQC','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_PIN_ACTION','_handleHistoryErrorUI','openChat','removeConversation','_clearItemLoading','_setIsMaximized','updateItemPinned','260yWJsoK','3363394ZBOyXa','_showConversationHistory','itemId','isOfficialPlugin','showError','remove','updateItems','pin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_setItemLoading','getMonth','setConversationPinned','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updateItemTitle','activateTab:history','init','_handleSelectConversation','updates','locale','setDate','resizeTabs','listenTo','loadConversation','handleRemovedConversation','getFullYear','_handleTogglePin','push','resizedTabs','getDate','updateItemLoadingState','pluginName','history'];_0x2f8d=function(){return _0x453139;};return _0x2f8d();}import{AITabs as _0x15d441}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x323a72}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x143195}from'./model/aichathistoryconversations.js';import{getTranslation as _0x14d842}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xc2016{[_0x902c0c(0x12b)];[_0x902c0c(0x134)];[_0x902c0c(0x144)];static get[_0x902c0c(0x126)](){return[_0x1f2c81,_0x50c978,_0x323a72,_0x15d441];}static get[_0x902c0c(0x170)](){const _0x20d188=_0x902c0c;return _0x20d188(0x115);}static get[_0x902c0c(0x155)](){return!0x0;}static get[_0x902c0c(0x130)](){return!0x0;}[_0x902c0c(0x161)](){const _0x3b5d6c=_0x902c0c;this[_0x3b5d6c(0x12b)]=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x1f2c81),this[_0x3b5d6c(0x134)]=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x323a72),this[_0x3b5d6c(0x144)]=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x50c978);const _0x3da6c1=this[_0x3b5d6c(0x12a)][_0x3b5d6c(0x127)][_0x3b5d6c(0x13f)](_0x15d441),_0x50da64=this[_0x3b5d6c(0x144)][_0x3b5d6c(0x125)]();this[_0x3b5d6c(0x171)]=new _0x143195({'connector':this[_0x3b5d6c(0x12b)],'group':_0x50da64}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x14d),(_0x562182,_0x5f53d4)=>{const _0x2b5f28=_0x3b5d6c;this[_0x2b5f28(0x15b)](_0x5f53d4['id'],_0x2b5f28(0x157)),this[_0x2b5f28(0x119)](_0x5f53d4['id']);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x12e),(_0x354fbf,_0x5374f3)=>{const _0x43947e=_0x3b5d6c;this[_0x43947e(0x15b)](_0x5374f3['id'],_0x43947e(0x139)),this[_0x43947e(0x12c)](_0x5374f3['id'],_0x5374f3[_0x43947e(0x124)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x138),(_0x261c8d,_0x4c8acd)=>{const _0x45a003=_0x3b5d6c;void 0x0!==_0x4c8acd[_0x45a003(0x163)][_0x45a003(0x124)]&&this[_0x45a003(0x134)][_0x45a003(0x15f)](_0x4c8acd[_0x45a003(0x154)],_0x4c8acd[_0x45a003(0x163)][_0x45a003(0x124)]),void 0x0!==_0x4c8acd[_0x45a003(0x163)][_0x45a003(0x174)]&&this[_0x45a003(0x122)](),this[_0x45a003(0x14e)](_0x4c8acd[_0x45a003(0x154)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x132),(_0x11e16d,_0x668bf3)=>{const _0x4b56c2=_0x3b5d6c;this[_0x4b56c2(0x144)][_0x4b56c2(0x169)](_0x668bf3[_0x4b56c2(0x154)]),this[_0x4b56c2(0x134)][_0x4b56c2(0x133)](_0x668bf3[_0x4b56c2(0x154)]),this[_0x4b56c2(0x14e)](_0x668bf3[_0x4b56c2(0x154)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x178),()=>{const _0x13cc44=_0x3b5d6c;this[_0x13cc44(0x122)]();}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x171)],_0x3b5d6c(0x142),(_0x3604a6,_0x2cce38)=>{const _0x351192=_0x3b5d6c;this[_0x351192(0x14b)](_0x2cce38[_0x351192(0x142)],_0x2cce38[_0x351192(0x143)],_0x2cce38[_0x351192(0x154)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x13e),(_0x5b25c1,_0x46df4e)=>{const _0x2237b4=_0x3b5d6c;this[_0x2237b4(0x162)](_0x46df4e['id']);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x15d),(_0x36db63,_0x58bd1c)=>{const _0x1bfcd9=_0x3b5d6c,_0x3899ad=_0x58bd1c[_0x1bfcd9(0x174)]?_0x1bfcd9(0x159):_0x1bfcd9(0x114);this[_0x1bfcd9(0x15b)](_0x58bd1c['id'],_0x3899ad),this[_0x1bfcd9(0x16b)](_0x58bd1c['id'],_0x58bd1c[_0x1bfcd9(0x174)]);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x14c),()=>{const _0x384366=_0x3b5d6c;_0x3da6c1[_0x384366(0x177)][_0x384366(0x13d)](_0x384366(0x128));}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x144)],_0x3b5d6c(0x136),()=>{const _0x55f37f=_0x3b5d6c;this[_0x55f37f(0x122)]();}),_0x3da6c1[_0x3b5d6c(0x177)]['on'](_0x3b5d6c(0x160),()=>{const _0x4afc4f=_0x3b5d6c;this[_0x4afc4f(0x153)]();}),this[_0x3b5d6c(0x167)](_0x3da6c1,_0x3b5d6c(0x16d),(_0x32abfe,_0x58630b)=>{const _0x4b28b1=_0x3b5d6c;this[_0x4b28b1(0x14f)](_0x58630b);}),this[_0x3b5d6c(0x167)](this[_0x3b5d6c(0x134)],_0x3b5d6c(0x166),()=>{const _0x40e903=_0x3b5d6c;_0x3da6c1[_0x40e903(0x113)]();});}async[_0x902c0c(0x12c)](_0x425d0b,_0x49d644){const _0x5cff29=_0x902c0c;await this[_0x5cff29(0x171)][_0x5cff29(0x15f)](_0x425d0b,_0x49d644);}async[_0x902c0c(0x16b)](_0x34a374,_0x4d1af8){const _0xa9467a=_0x902c0c;await this[_0xa9467a(0x171)][_0xa9467a(0x150)](_0x34a374,_0x4d1af8);}async[_0x902c0c(0x119)](_0x2748f4){const _0x56fa74=_0x902c0c;await this[_0x56fa74(0x171)][_0x56fa74(0x13a)](_0x2748f4);}async[_0x902c0c(0x162)](_0x45472e){const _0x467c0c=_0x902c0c;await this[_0x467c0c(0x144)][_0x467c0c(0x168)](_0x45472e);}async[_0x902c0c(0x153)](){const _0x3d13d5=_0x902c0c;this[_0x3d13d5(0x134)][_0x3d13d5(0x156)](''),this[_0x3d13d5(0x134)][_0x3d13d5(0x13c)](!0x0),await this[_0x3d13d5(0x171)][_0x3d13d5(0x161)](),this[_0x3d13d5(0x134)][_0x3d13d5(0x13c)](!0x1);}[_0x902c0c(0x122)](){const _0x122039=_0x902c0c,_0x2c422c=this[_0x122039(0x144)][_0x122039(0x176)]?.['id'],_0x20d6be=this[_0x122039(0x11a)]()[_0x122039(0x129)](_0x1f89db=>({'title':_0x1f89db[_0x122039(0x124)],'items':_0x1f89db[_0x122039(0x140)][_0x122039(0x129)](_0x82036c=>({'id':_0x82036c['id'],'title':_0x82036c[_0x122039(0x124)]||_0x14d842(this[_0x122039(0x12a)][_0x122039(0x164)],_0x122039(0x116)),'createdAt':new Date(_0x82036c[_0x122039(0x11b)])[_0x122039(0x120)](),'active':_0x82036c['id']===_0x2c422c,'pinned':_0x82036c[_0x122039(0x174)]}))}));this[_0x122039(0x134)][_0x122039(0x158)](_0x20d6be);}[_0x902c0c(0x15b)](_0x451cfa,_0x100210){const _0x3a83e3=_0x902c0c;this[_0x3a83e3(0x134)][_0x3a83e3(0x16f)](_0x451cfa,_0x100210,!0x0);}[_0x902c0c(0x14e)](_0x546790){const _0x4dc5c0=_0x902c0c;this[_0x4dc5c0(0x134)][_0x4dc5c0(0x16f)](_0x546790,null,!0x1);}[_0x902c0c(0x14b)](_0x535f63,_0x171cdd,_0x28dc2b){const _0x6e9ee=_0x902c0c,_0x41ef15=this[_0x6e9ee(0x137)](_0x171cdd,_0x28dc2b);this[_0x6e9ee(0x134)][_0x6e9ee(0x156)](_0x41ef15),_0x28dc2b&&this[_0x6e9ee(0x14e)](_0x28dc2b),this[_0x6e9ee(0x134)][_0x6e9ee(0x13c)](!0x1);}[_0x902c0c(0x137)](_0x2ba517,_0x4df217){const _0x3c1462=_0x902c0c,_0x52acfd=_0x4df217?this[_0x3c1462(0x171)][_0x3c1462(0x131)](_0x4df217):null,_0x18b75e=_0x52acfd?.[_0x3c1462(0x124)]||_0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x116));switch(_0x2ba517){case _0x3c1462(0x15f):return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x15e),_0x18b75e);case _0x3c1462(0x150):{const _0x2e4c14=_0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x52acfd?.[_0x3c1462(0x174)]?_0x3c1462(0x11d):_0x3c1462(0x14a));return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x15a),[_0x2e4c14,_0x18b75e]);}case _0x3c1462(0x13a):return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x147),_0x18b75e);case _0x3c1462(0x161):case _0x3c1462(0x173):return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x148));default:return _0x14d842(this[_0x3c1462(0x12a)][_0x3c1462(0x164)],_0x3c1462(0x13b));}}[_0x902c0c(0x11a)](){const _0x44a2fe=_0x902c0c,_0x12f076=new Date(),_0x4ab2e8=new Date(_0x12f076[_0x44a2fe(0x16a)](),_0x12f076[_0x44a2fe(0x15c)](),_0x12f076[_0x44a2fe(0x16e)]()),_0x13ebca=new Date(_0x4ab2e8);_0x13ebca[_0x44a2fe(0x165)](_0x13ebca[_0x44a2fe(0x16e)]()-0x1);const _0x1af2a6=new Date(_0x4ab2e8);_0x1af2a6[_0x44a2fe(0x165)](_0x1af2a6[_0x44a2fe(0x16e)]()-0xe);const _0x46e93c=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'pinned':!0x0}),_0x55b71e=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'from':_0x4ab2e8,'to':_0x4ab2e8}),_0x1fa14e=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'from':_0x13ebca,'to':_0x13ebca}),_0x4a4a32=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'from':_0x1af2a6,'to':_0x13ebca}),_0x5f8a16=this[_0x44a2fe(0x171)][_0x44a2fe(0x121)]({'to':_0x1af2a6}),_0x5425c7=[];return _0x46e93c[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x135)),'items':_0x46e93c}),_0x55b71e[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x12d)),'items':_0x55b71e}),_0x1fa14e[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x172)),'items':_0x1fa14e}),_0x4a4a32[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x141)),'items':_0x4a4a32}),_0x5f8a16[_0x44a2fe(0x123)]>0x0&&_0x5425c7[_0x44a2fe(0x16c)]({'title':_0x14d842(this[_0x44a2fe(0x12a)][_0x44a2fe(0x164)],_0x44a2fe(0x149)),'items':_0x5f8a16}),_0x5425c7;}[_0x902c0c(0x14f)](_0x2b82e4){const _0xa5abc5=_0x902c0c;this[_0xa5abc5(0x134)][_0xa5abc5(0x145)](_0x2b82e4);}}
|
|
23
|
+
const _0x378ecf=_0x1854;(function(_0x4537e1,_0x23d496){const _0x5735f7=_0x1854,_0x5e298b=_0x4537e1();while(!![]){try{const _0x5420f4=parseInt(_0x5735f7(0xfd))/0x1*(-parseInt(_0x5735f7(0x103))/0x2)+-parseInt(_0x5735f7(0xf9))/0x3*(parseInt(_0x5735f7(0xda))/0x4)+-parseInt(_0x5735f7(0xef))/0x5*(parseInt(_0x5735f7(0x12f))/0x6)+parseInt(_0x5735f7(0xed))/0x7+-parseInt(_0x5735f7(0xd9))/0x8*(-parseInt(_0x5735f7(0xeb))/0x9)+-parseInt(_0x5735f7(0xd8))/0xa+parseInt(_0x5735f7(0xf4))/0xb;if(_0x5420f4===_0x23d496)break;else _0x5e298b['push'](_0x5e298b['shift']());}catch(_0x10f59e){_0x5e298b['push'](_0x5e298b['shift']());}}}(_0x455a,0x3240c));import{ContextPlugin as _0x11ab20}from'ckeditor5/src/core.js';import{AIConnector as _0x1ef2b9}from'../aicore/aiconnector.js';function _0x1854(_0x1ff727,_0x2f07dd){const _0x455afe=_0x455a();return _0x1854=function(_0x185427,_0x3bdd4f){_0x185427=_0x185427-0xd2;let _0x3a6b08=_0x455afe[_0x185427];return _0x3a6b08;},_0x1854(_0x1ff727,_0x2f07dd);}import{AIChatController as _0x4e56b6}from'../aichat/aichatcontroller.js';import{AITabs as _0x157c20}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x36c01b}from'./aichathistoryui.js';function _0x455a(){const _0x1f1fa7=['9035026goRrNH','AI_CHAT_HISTORY_PIN_ACTION','getDate','updateItems','_setIsMaximized','770493RXpjJW','setDate','_showConversationHistory','removeConversation','85408rDAWpO','editConversationTitle','activateTab','_setItemLoading','AIChatHistoryController','selectConversation','6QPWgnJ','operation','get','_handleEditTitle','_handleSelectConversation','_aiChatHistoryUi','createdAt','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','error','init','_handleHistoryErrorUI','setConversationPinned','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','view','_aiConnector','activateTab:history','remove','pinned','pluginName','getFullYear','showError','map','loadConversation','updateItemTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','context','_handleTogglePin','items','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','requires','updateItemLoadingState','plugins','unpin','activeConversation','loadItems','listenTo','isPremiumPlugin','updates','getMonth','AI_CHAT_HISTORY_ERROR_GENERIC','openChat','_updateHistoryItemsUI','_handleRemove','30htPLyc','chat','getItems','AI_CHAT_HISTORY_CATEGORY_LATER','_generateErrorMessage','length','push','isOfficialPlugin','resize','_aiChatController','AI_CHAT_HISTORY_CATEGORY_TODAY','toLocaleDateString','change:activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_UNTITLED_CONVERSATION','getGroupId','217040sACiRP','1182728YPyfie','4nqaGoa','getItem','title','AI_CHAT_HISTORY_CATEGORY_PINNED','setIsMaximized','updateItemPinned','handleRemovedConversation','resizeTabs','history','itemId','pin','itemsLoaded','AI_CHAT_HISTORY_UNPIN_ACTION','itemUpdated','removeItem','resizedTabs','itemRemoved','9ZLonSl','locale','405636WcbUjE','_getCategorizedItems','286560uRAWoS','setLoadingSkeleton','removeHistoryItem','_clearItemLoading','rename'];_0x455a=function(){return _0x1f1fa7;};return _0x455a();}import{AIChatHistoryConversations as _0xde18c4}from'./model/aichathistoryconversations.js';import{getTranslation as _0x23a542}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x11ab20{[_0x378ecf(0x112)];[_0x378ecf(0x108)];[_0x378ecf(0x138)];static get[_0x378ecf(0x121)](){return[_0x1ef2b9,_0x4e56b6,_0x36c01b,_0x157c20];}static get[_0x378ecf(0x116)](){const _0x27d10f=_0x378ecf;return _0x27d10f(0x101);}static get[_0x378ecf(0x136)](){return!0x0;}static get[_0x378ecf(0x128)](){return!0x0;}[_0x378ecf(0x10d)](){const _0x284543=_0x378ecf;this[_0x284543(0x112)]=this[_0x284543(0x11d)][_0x284543(0x123)][_0x284543(0x105)](_0x1ef2b9),this[_0x284543(0x108)]=this[_0x284543(0x11d)][_0x284543(0x123)][_0x284543(0x105)](_0x36c01b),this[_0x284543(0x138)]=this[_0x284543(0x11d)][_0x284543(0x123)][_0x284543(0x105)](_0x4e56b6);const _0x54a035=this[_0x284543(0x11d)][_0x284543(0x123)][_0x284543(0x105)](_0x157c20),_0x1099e6=this[_0x284543(0x138)][_0x284543(0xd7)]();this[_0x284543(0xe2)]=new _0xde18c4({'connector':this[_0x284543(0x112)],'group':_0x1099e6}),this[_0x284543(0x127)](this[_0x284543(0x108)],_0x284543(0xfc),(_0x4d0a04,_0x187190)=>{const _0x5197be=_0x284543;this[_0x5197be(0x100)](_0x187190['id'],_0x5197be(0x114)),this[_0x5197be(0x12e)](_0x187190['id']);}),this[_0x284543(0x127)](this[_0x284543(0x108)],_0x284543(0xfe),(_0x282494,_0x4e6ec8)=>{const _0x39c6d4=_0x284543;this[_0x39c6d4(0x100)](_0x4e6ec8['id'],_0x39c6d4(0xf3)),this[_0x39c6d4(0x106)](_0x4e6ec8['id'],_0x4e6ec8[_0x39c6d4(0xdc)]);}),this[_0x284543(0x127)](this[_0x284543(0xe2)],_0x284543(0xe7),(_0x58b1b5,_0x315eeb)=>{const _0x15ba00=_0x284543;void 0x0!==_0x315eeb[_0x15ba00(0x129)][_0x15ba00(0xdc)]&&this[_0x15ba00(0x108)][_0x15ba00(0x11b)](_0x315eeb[_0x15ba00(0xe3)],_0x315eeb[_0x15ba00(0x129)][_0x15ba00(0xdc)]),void 0x0!==_0x315eeb[_0x15ba00(0x129)][_0x15ba00(0x115)]&&this[_0x15ba00(0x12d)](),this[_0x15ba00(0xf2)](_0x315eeb[_0x15ba00(0xe3)]);}),this[_0x284543(0x127)](this[_0x284543(0xe2)],_0x284543(0xea),(_0x229580,_0x642a66)=>{const _0x2252fe=_0x284543;this[_0x2252fe(0x138)][_0x2252fe(0xe0)](_0x642a66[_0x2252fe(0xe3)]),this[_0x2252fe(0x108)][_0x2252fe(0xf1)](_0x642a66[_0x2252fe(0xe3)]),this[_0x2252fe(0xf2)](_0x642a66[_0x2252fe(0xe3)]);}),this[_0x284543(0x127)](this[_0x284543(0xe2)],_0x284543(0xe5),()=>{const _0x458818=_0x284543;this[_0x458818(0x12d)]();}),this[_0x284543(0x127)](this[_0x284543(0xe2)],_0x284543(0x10c),(_0x84d118,_0x12afd5)=>{const _0x165833=_0x284543;this[_0x165833(0x10e)](_0x12afd5[_0x165833(0x10c)],_0x12afd5[_0x165833(0x104)],_0x12afd5[_0x165833(0xe3)]);}),this[_0x284543(0x127)](this[_0x284543(0x108)],_0x284543(0x102),(_0x4cb6e8,_0x506408)=>{const _0x3d8f48=_0x284543;this[_0x3d8f48(0x107)](_0x506408['id']);}),this[_0x284543(0x127)](this[_0x284543(0x108)],_0x284543(0x10f),(_0x1324de,_0x5c7005)=>{const _0x468d8e=_0x284543,_0x2031a8=_0x5c7005[_0x468d8e(0x115)]?_0x468d8e(0xe4):_0x468d8e(0x124);this[_0x468d8e(0x100)](_0x5c7005['id'],_0x2031a8),this[_0x468d8e(0x11e)](_0x5c7005['id'],_0x5c7005[_0x468d8e(0x115)]);}),this[_0x284543(0x127)](this[_0x284543(0x108)],_0x284543(0x12c),()=>{const _0x392eea=_0x284543;_0x54a035[_0x392eea(0x111)][_0x392eea(0xff)](_0x392eea(0x130));}),this[_0x284543(0x127)](this[_0x284543(0x138)],_0x284543(0xd4),()=>{const _0x863c5a=_0x284543;this[_0x863c5a(0x12d)]();}),_0x54a035[_0x284543(0x111)]['on'](_0x284543(0x113),()=>{const _0x28aaf5=_0x284543;this[_0x28aaf5(0xfb)]();}),this[_0x284543(0x127)](_0x54a035,_0x284543(0xe9),(_0x479cec,_0x12f2f4)=>{const _0x3b764b=_0x284543;this[_0x3b764b(0xf8)](_0x12f2f4);}),this[_0x284543(0x127)](this[_0x284543(0x108)],_0x284543(0xe1),()=>{const _0x41fa62=_0x284543;_0x54a035[_0x41fa62(0x137)]();});}async[_0x378ecf(0x106)](_0x354f48,_0x397e63){const _0x3b2bda=_0x378ecf;await this[_0x3b2bda(0xe2)][_0x3b2bda(0x11b)](_0x354f48,_0x397e63);}async[_0x378ecf(0x11e)](_0x1a562b,_0x5a0cb0){const _0x14e1aa=_0x378ecf;await this[_0x14e1aa(0xe2)][_0x14e1aa(0xdf)](_0x1a562b,_0x5a0cb0);}async[_0x378ecf(0x12e)](_0x84d34a){const _0x46e06a=_0x378ecf;await this[_0x46e06a(0xe2)][_0x46e06a(0xe8)](_0x84d34a);}async[_0x378ecf(0x107)](_0x45190c){const _0x1e62a8=_0x378ecf;await this[_0x1e62a8(0x138)][_0x1e62a8(0x11a)](_0x45190c);}async[_0x378ecf(0xfb)](){const _0x39c9ed=_0x378ecf;this[_0x39c9ed(0x108)][_0x39c9ed(0x118)](''),this[_0x39c9ed(0x108)][_0x39c9ed(0xf0)](!0x0),await this[_0x39c9ed(0xe2)][_0x39c9ed(0x10d)](),this[_0x39c9ed(0x108)][_0x39c9ed(0xf0)](!0x1);}[_0x378ecf(0x12d)](){const _0x1a9e29=_0x378ecf,_0x3e4fdd=this[_0x1a9e29(0x138)][_0x1a9e29(0x125)]?.['id'],_0x561c31=this[_0x1a9e29(0xee)]()[_0x1a9e29(0x119)](_0x5c5578=>({'title':_0x5c5578[_0x1a9e29(0xdc)],'items':_0x5c5578[_0x1a9e29(0x11f)][_0x1a9e29(0x119)](_0x529453=>({'id':_0x529453['id'],'title':_0x529453[_0x1a9e29(0xdc)]||_0x23a542(this[_0x1a9e29(0x11d)][_0x1a9e29(0xec)],_0x1a9e29(0xd6)),'createdAt':new Date(_0x529453[_0x1a9e29(0x109)])[_0x1a9e29(0xd3)](),'active':_0x529453['id']===_0x3e4fdd,'pinned':_0x529453[_0x1a9e29(0x115)]}))}));this[_0x1a9e29(0x108)][_0x1a9e29(0xf7)](_0x561c31);}[_0x378ecf(0x100)](_0x3058ba,_0x2d3fb0){const _0x26f499=_0x378ecf;this[_0x26f499(0x108)][_0x26f499(0x122)](_0x3058ba,_0x2d3fb0,!0x0);}[_0x378ecf(0xf2)](_0x35a943){const _0x50ebc6=_0x378ecf;this[_0x50ebc6(0x108)][_0x50ebc6(0x122)](_0x35a943,null,!0x1);}[_0x378ecf(0x10e)](_0x428057,_0x5e68a6,_0x48c6f7){const _0x4992ed=_0x378ecf,_0x38752f=this[_0x4992ed(0x133)](_0x5e68a6,_0x48c6f7);this[_0x4992ed(0x108)][_0x4992ed(0x118)](_0x38752f),_0x48c6f7&&this[_0x4992ed(0xf2)](_0x48c6f7),this[_0x4992ed(0x108)][_0x4992ed(0xf0)](!0x1);}[_0x378ecf(0x133)](_0x35189d,_0x4ccdf3){const _0xd2ef6b=_0x378ecf,_0x80b340=_0x4ccdf3?this[_0xd2ef6b(0xe2)][_0xd2ef6b(0xdb)](_0x4ccdf3):null,_0x1fcc47=_0x80b340?.[_0xd2ef6b(0xdc)]||_0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0xd2ef6b(0xd6));switch(_0x35189d){case _0xd2ef6b(0x11b):return _0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0xd2ef6b(0x10b),_0x1fcc47);case _0xd2ef6b(0xdf):{const _0x39901d=_0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0x80b340?.[_0xd2ef6b(0x115)]?_0xd2ef6b(0xe6):_0xd2ef6b(0xf5));return _0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0xd2ef6b(0x110),[_0x39901d,_0x1fcc47]);}case _0xd2ef6b(0xe8):return _0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0xd2ef6b(0xd5),_0x1fcc47);case _0xd2ef6b(0x10d):case _0xd2ef6b(0x126):return _0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0xd2ef6b(0x120));default:return _0x23a542(this[_0xd2ef6b(0x11d)][_0xd2ef6b(0xec)],_0xd2ef6b(0x12b));}}[_0x378ecf(0xee)](){const _0x23ef45=_0x378ecf,_0x39fd2d=new Date(),_0x224d2a=new Date(_0x39fd2d[_0x23ef45(0x117)](),_0x39fd2d[_0x23ef45(0x12a)](),_0x39fd2d[_0x23ef45(0xf6)]()),_0x3295f6=new Date(_0x224d2a);_0x3295f6[_0x23ef45(0xfa)](_0x3295f6[_0x23ef45(0xf6)]()-0x1);const _0x1153e4=new Date(_0x224d2a);_0x1153e4[_0x23ef45(0xfa)](_0x1153e4[_0x23ef45(0xf6)]()-0xe);const _0x2dc4a1=this[_0x23ef45(0xe2)][_0x23ef45(0x131)]({'pinned':!0x0}),_0x4e2424=this[_0x23ef45(0xe2)][_0x23ef45(0x131)]({'from':_0x224d2a,'to':_0x224d2a}),_0x198ce4=this[_0x23ef45(0xe2)][_0x23ef45(0x131)]({'from':_0x3295f6,'to':_0x3295f6}),_0x552d04=this[_0x23ef45(0xe2)][_0x23ef45(0x131)]({'from':_0x1153e4,'to':_0x3295f6}),_0x21ab08=this[_0x23ef45(0xe2)][_0x23ef45(0x131)]({'to':_0x1153e4}),_0x4a2a30=[];return _0x2dc4a1[_0x23ef45(0x134)]>0x0&&_0x4a2a30[_0x23ef45(0x135)]({'title':_0x23a542(this[_0x23ef45(0x11d)][_0x23ef45(0xec)],_0x23ef45(0xdd)),'items':_0x2dc4a1}),_0x4e2424[_0x23ef45(0x134)]>0x0&&_0x4a2a30[_0x23ef45(0x135)]({'title':_0x23a542(this[_0x23ef45(0x11d)][_0x23ef45(0xec)],_0x23ef45(0xd2)),'items':_0x4e2424}),_0x198ce4[_0x23ef45(0x134)]>0x0&&_0x4a2a30[_0x23ef45(0x135)]({'title':_0x23a542(this[_0x23ef45(0x11d)][_0x23ef45(0xec)],_0x23ef45(0x10a)),'items':_0x198ce4}),_0x552d04[_0x23ef45(0x134)]>0x0&&_0x4a2a30[_0x23ef45(0x135)]({'title':_0x23a542(this[_0x23ef45(0x11d)][_0x23ef45(0xec)],_0x23ef45(0x11c)),'items':_0x552d04}),_0x21ab08[_0x23ef45(0x134)]>0x0&&_0x4a2a30[_0x23ef45(0x135)]({'title':_0x23a542(this[_0x23ef45(0x11d)][_0x23ef45(0xec)],_0x23ef45(0x132)),'items':_0x21ab08}),_0x4a2a30;}[_0x378ecf(0xf8)](_0x8d6c69){const _0x474a69=_0x378ecf;this[_0x474a69(0x108)][_0x474a69(0xde)](_0x8d6c69);}}
|