@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7
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/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +70 -19
- package/dist/index.css +80 -19
- package/dist/index.js +4 -4
- 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/lang/contexts.json +6 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +9 -2
- 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.d.ts +6 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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 +1 -1
- 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/aiconfig.d.ts +17 -0
- package/src/aicore/aiconnector.d.ts +13 -0
- 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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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.d.ts +16 -0
- 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.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- 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.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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/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/aireviewmodeformamanager.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.d.ts +6 -0
- 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/augmentation.d.ts +6 -0
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +14 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
const _0x36be17=_0x2b06;(function(_0x302142,_0x177514){const _0x219dfb=_0x2b06,_0x3c8bcf=_0x302142();while(!![]){try{const _0x5a2949=-parseInt(_0x219dfb(0x94))/0x1*(-parseInt(_0x219dfb(0x8e))/0x2)+parseInt(_0x219dfb(0xab))/0x3*(parseInt(_0x219dfb(0x9b))/0x4)+-parseInt(_0x219dfb(0xaa))/0x5*(-parseInt(_0x219dfb(0xa3))/0x6)+parseInt(_0x219dfb(0xa6))/0x7*(parseInt(_0x219dfb(0xa9))/0x8)+parseInt(_0x219dfb(0x90))/0x9*(parseInt(_0x219dfb(0x92))/0xa)+parseInt(_0x219dfb(0xa4))/0xb*(-parseInt(_0x219dfb(0x96))/0xc)+-parseInt(_0x219dfb(0xa5))/0xd*(parseInt(_0x219dfb(0x97))/0xe);if(_0x5a2949===_0x177514)break;else _0x3c8bcf['push'](_0x3c8bcf['shift']());}catch(_0x55ca39){_0x3c8bcf['push'](_0x3c8bcf['shift']());}}}(_0x2a63,0x5109f));import{IconBulb as _0x1f29be,IconWeb as _0x18065c}from'@ckeditor/ckeditor5-icons';function _0x2a63(){const _0x51dca1=['2900628qJxXMm','1794947uQwELQ','355979kHacPV','21dsirzR','children','ck-hidden','1418248kUidrn','5yckCsJ','153xwjceB','30042cggEeP','add','4946436VjqFjs','capabilities','10ZoPecC','div','10ZyfwXV','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','12NLzPnJ','672yVoqCZ','ck-ai-chat__feed__interaction-header__capabilities','span','ck-ai-chat__feed__interaction-header','7404FAZGWs','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','content','ck-ai-chat__feed__interaction-header__capabilities__text','setTemplate','extendTemplate'];_0x2a63=function(){return _0x51dca1;};return _0x2a63();}import{IconView as _0x4dc0cf,View as _0x1c2881}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x4a4a27}from'./aichatfeeditemview.js';import{getTranslation as _0x376303}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x4a4a27{[_0x36be17(0x91)];constructor(_0x2f4872,_0x5c517b){const _0x252501=_0x36be17;super(_0x5c517b);const {isWebSearchEnabled:_0x406742,isReasoningEnabled:_0x58b4aa}=_0x5c517b[_0x252501(0x91)],_0x722b2e=[];let _0x20c8b1='';_0x406742&&_0x58b4aa?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x95)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))):_0x406742?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9c)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c))):_0x58b4aa&&(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9e)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))),this[_0x252501(0xa2)]({'attributes':{'class':[_0x252501(0x9a),_0x20c8b1?'':_0x252501(0xa8)]}});const _0x21c0fc=new _0x1c2881();_0x21c0fc[_0x252501(0xa1)]({'tag':_0x252501(0x93),'attributes':{'class':['ck',_0x252501(0x98)]},'children':[..._0x722b2e,{'tag':_0x252501(0x99),'attributes':{'class':[_0x252501(0xa0)]},'children':[_0x20c8b1]}]}),this[_0x252501(0xa7)][_0x252501(0x8f)](_0x21c0fc),this[_0x252501(0x91)]=_0x5c517b[_0x252501(0x91)];}}function _0x2b06(_0x2b244c,_0x26ac51){const _0x2a63ab=_0x2a63();return _0x2b06=function(_0x2b0694,_0x2c76f2){_0x2b0694=_0x2b0694-0x8e;let _0xd17227=_0x2a63ab[_0x2b0694];return _0xd17227;},_0x2b06(_0x2b244c,_0x26ac51);}function ia(_0x4e3fb3){const _0x426d29=_0x36be17,_0x402865=new _0x4dc0cf();return _0x402865[_0x426d29(0x9f)]=_0x4e3fb3,_0x402865;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f79cc=_0xe7eb;(function(_0x400d61,_0x3140aa){const _0x2908c7=_0xe7eb,_0xe24016=_0x400d61();while(!![]){try{const _0x4dc923=parseInt(_0x2908c7(0xc2))/0x1*(-parseInt(_0x2908c7(0xda))/0x2)+-parseInt(_0x2908c7(0xb9))/0x3*(-parseInt(_0x2908c7(0xcf))/0x4)+-parseInt(_0x2908c7(0xc3))/0x5*(parseInt(_0x2908c7(0xd8))/0x6)+-parseInt(_0x2908c7(0xd0))/0x7+-parseInt(_0x2908c7(0xb7))/0x8+-parseInt(_0x2908c7(0xbf))/0x9*(parseInt(_0x2908c7(0xb6))/0xa)+-parseInt(_0x2908c7(0xbc))/0xb*(-parseInt(_0x2908c7(0xd7))/0xc);if(_0x4dc923===_0x3140aa)break;else _0xe24016['push'](_0xe24016['shift']());}catch(_0x2fe9ee){_0xe24016['push'](_0xe24016['shift']());}}}(_0x3263,0x7deda));import{View as _0x246fc4}from'ckeditor5/src/ui.js';function _0xe7eb(_0x161831,_0xd7eed0){const _0x326350=_0x3263();return _0xe7eb=function(_0xe7eb02,_0x277087){_0xe7eb02=_0xe7eb02-0xb5;let _0x21f23c=_0x326350[_0xe7eb02];return _0x21f23c;},_0xe7eb(_0x161831,_0xd7eed0);}import{HTMLStreamer as _0x1fc81d}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x246fc4{[_0x3f79cc(0xd3)];[_0x3f79cc(0xc7)]='';[_0x3f79cc(0xc5)];[_0x3f79cc(0xbb)];constructor(_0x1f3040){const _0x52a7ce=_0x3f79cc;super();const _0x454809=this[_0x52a7ce(0xb5)];this[_0x52a7ce(0xd1)](_0x52a7ce(0xba),!0x1),this[_0x52a7ce(0xd1)](_0x52a7ce(0xc6),!0x0),this[_0x52a7ce(0xc5)]=new _0x1fc81d({'textNodeStyle':_0x52a7ce(0xcb),'delay':0x14}),this[_0x52a7ce(0xd3)]=_0x1f3040,this[_0x52a7ce(0xbb)]=this[_0x52a7ce(0xd5)](),this[_0x52a7ce(0xce)]({'tag':_0x52a7ce(0xd2),'attributes':{'class':['ck',_0x52a7ce(0xc9),_0x454809['if'](_0x52a7ce(0xba),_0x52a7ce(0xbe)),_0x454809['if'](_0x52a7ce(0xc6),_0x52a7ce(0xc1),_0x439a82=>!_0x439a82),_0x52a7ce(0xd4)],'data-cke-ai-id':this[_0x52a7ce(0xd3)]['id']},'children':this[_0x52a7ce(0xbb)]});}[_0x3f79cc(0xbd)](){const _0x2714d8=_0x3f79cc;this[_0x2714d8(0xc5)][_0x2714d8(0xd6)]({'targetElement':this[_0x2714d8(0xcd)]}),this[_0x2714d8(0xcd)][_0x2714d8(0xc0)](_0x2714d8(0xca))[_0x2714d8(0xb8)](_0x39ad87=>{const _0x1c50eb=_0x2714d8;_0x39ad87[_0x1c50eb(0xc8)](_0x1c50eb(0xcc));}),this[_0x2714d8(0xba)]=!0x0;}async[_0x3f79cc(0xd9)](_0x3310b7,_0x11cf59,_0x5e8a0d){const _0xd939c=_0x3f79cc;await this[_0xd939c(0xc5)][_0xd939c(0xc4)]({'document':_0x3310b7,'targetElement':_0x11cf59,'abortSignal':_0x5e8a0d});}}function _0x3263(){const _0x399bf4=['[data-id]','animation:\x20ck-html-streamer-fade-in\x20.5s','data-id','element','setTemplate','244WiPAzC','4502911lJunmr','set','div','options','ck-ai-chat__feed__text-item','createCollection','cleanUpAnimations','18168OXUwpz','1506qSyzCQ','streamIntoElement','84FgLZSH','bindTemplate','10OfHOvs','6262032ZPXwEJ','forEach','13674sPTBRU','isDone','children','22363qpVfLu','markAsDone','ck-ai-chat__feed__item_done','1547982waorYn','querySelectorAll','ck-hidden','20677GyNzjb','7445GmKFjr','stream','htmlStreamer','isVisible','content','removeAttribute','ck-ai-chat__feed__item'];_0x3263=function(){return _0x399bf4;};return _0x3263();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x52060e=_0x4fa4;function _0x4fa4(_0x607753,_0x3bc92f){const _0x15d6b0=_0x15d6();return _0x4fa4=function(_0x4fa4f1,_0x35b585){_0x4fa4f1=_0x4fa4f1-0x95;let _0x58a051=_0x15d6b0[_0x4fa4f1];return _0x58a051;},_0x4fa4(_0x607753,_0x3bc92f);}(function(_0x1773df,_0x206482){const _0x55b265=_0x4fa4,_0x1b6097=_0x1773df();while(!![]){try{const _0x3e67ab=parseInt(_0x55b265(0xb8))/0x1*(-parseInt(_0x55b265(0xac))/0x2)+parseInt(_0x55b265(0xb4))/0x3*(parseInt(_0x55b265(0xae))/0x4)+-parseInt(_0x55b265(0xaa))/0x5+-parseInt(_0x55b265(0x98))/0x6*(parseInt(_0x55b265(0x9f))/0x7)+-parseInt(_0x55b265(0xa7))/0x8*(parseInt(_0x55b265(0x96))/0x9)+parseInt(_0x55b265(0x9a))/0xa*(-parseInt(_0x55b265(0xb7))/0xb)+-parseInt(_0x55b265(0x9d))/0xc*(-parseInt(_0x55b265(0xa3))/0xd);if(_0x3e67ab===_0x206482)break;else _0x1b6097['push'](_0x1b6097['shift']());}catch(_0x565cdf){_0x1b6097['push'](_0x1b6097['shift']());}}}(_0x15d6,0xb2615));import{AIChatFeedItemView as _0x237785}from'./aichatfeeditemview.js';import{parse as _0x1b9be9,render as _0x5e9a61}from'../../../aicore/utils/htmlparser.js';import{View as _0x53445a}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x21c3de,AIWebSourceView as _0x34f3b1}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x15d6(){const _0x2db9a8=['12037131tWuNpd','element','250026EoByDK','isVisible','2071270nyZMxu','map','initialContent','6552lJYBBG','updateContent','147ftlAzo','options','streaming','div','116363JiFZLi','replyContainer','addMany','innerHTML','8yaWScc','setTemplate','children','4396380jBNLSi','streamIntoElement','7870QOEbhA','static','1181228WQmvDJ','extendTemplate','add','ck-ai-chat__feed__ai-reply-container','ck-reset_all-excluded','render','3DPBfIG','updateSources','ck-ai-chat__feed__ai-reply','11RYxBVs','293rEhGXj','locale','markAsDone'];_0x15d6=function(){return _0x2db9a8;};return _0x15d6();}export class AIChatFeedReplyItemView extends _0x237785{[_0x52060e(0xa4)];constructor(_0x38723b,_0x5ec12e){const _0x5b7325=_0x52060e;super(_0x5ec12e),this[_0x5b7325(0xb9)]=_0x38723b,this[_0x5b7325(0xaf)]({'attributes':{'class':[_0x5b7325(0xb6)]}}),this[_0x5b7325(0xa4)]=new _0x53445a(),this[_0x5b7325(0xa4)][_0x5b7325(0xa8)]({'tag':_0x5b7325(0xa2),'attributes':{'class':['ck',_0x5b7325(0xb2),_0x5b7325(0xb1)]}}),this[_0x5b7325(0xa9)][_0x5b7325(0xb0)](this[_0x5b7325(0xa4)]);}async[_0x52060e(0xb3)](){const _0x3a2d26=_0x52060e;super[_0x3a2d26(0xb3)](),this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]&&(await this[_0x3a2d26(0x9e)]({'parsedContent':_0x1b9be9(this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]),'renderingStrategy':_0x3a2d26(0xad)}),this[_0x3a2d26(0x95)]());}async[_0x52060e(0x9e)]({parsedContent:_0x2a9633,renderingStrategy:_0x51bc7d,abortSignal:_0x4fff3d}){const _0x2110ac=_0x52060e;_0x2110ac(0xa1)===_0x51bc7d?await this[_0x2110ac(0xab)](_0x2a9633,this[_0x2110ac(0xa4)][_0x2110ac(0x97)],_0x4fff3d):this[_0x2110ac(0xa4)][_0x2110ac(0x97)][_0x2110ac(0xa6)]=_0x5e9a61(_0x2a9633);}[_0x52060e(0xb5)](_0x3f4730){const _0x3ce745=_0x52060e,_0x1e1438=new _0x21c3de(this[_0x3ce745(0xb9)]);_0x1e1438[_0x3ce745(0xa9)][_0x3ce745(0xa5)](_0x3f4730[_0x3ce745(0x9b)](_0x49562b=>new _0x34f3b1(this[_0x3ce745(0xb9)],_0x49562b))),_0x1e1438[_0x3ce745(0x99)]=!0x0,this[_0x3ce745(0xa9)][_0x3ce745(0xb0)](_0x1e1438);}}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
export declare const ACTIONS: readonly ["applySuggestion", "insertSuggestion", "showChangeInText"];
|
|
10
11
|
/**
|
|
11
12
|
* A view for the actions of an AI suggestion item in the AI chat feed.
|
|
12
13
|
*
|
|
@@ -21,14 +22,18 @@ export declare class AIChatFeedSuggestionItemActionsView extends View {
|
|
|
21
22
|
* Specifies whether the view should be visible or not.
|
|
22
23
|
*/
|
|
23
24
|
isVisible: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @observable
|
|
27
|
+
*/
|
|
28
|
+
isTrackChangesOn: boolean;
|
|
24
29
|
/**
|
|
25
30
|
* @inheritDoc
|
|
26
31
|
*/
|
|
27
|
-
constructor(locale: Locale);
|
|
32
|
+
constructor(locale: Locale, dropdownConfig?: Array<AISuggestionActionName>);
|
|
28
33
|
/**
|
|
29
34
|
* Updates the labels of the actions based on the number of parts in the suggestion.
|
|
30
35
|
*/
|
|
31
|
-
updateLabels(partsCount
|
|
36
|
+
updateLabels(partsCount?: number): void;
|
|
32
37
|
}
|
|
33
38
|
export type AIShowChangeInTextEvent = {
|
|
34
39
|
name: 'showChangeInText';
|
|
@@ -72,3 +77,4 @@ export type AIMouseLeaveSuggestionEvent = {
|
|
|
72
77
|
partIndex: number;
|
|
73
78
|
}];
|
|
74
79
|
};
|
|
80
|
+
export type AISuggestionActionName = typeof ACTIONS[number];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x472b(_0x2fd8ca,_0x49b69a){const _0x4c4660=_0x4c46();return _0x472b=function(_0x472be5,_0x36ba7a){_0x472be5=_0x472be5-0x17e;let _0x1f0993=_0x4c4660[_0x472be5];return _0x1f0993;},_0x472b(_0x2fd8ca,_0x49b69a);}const _0x516ffc=_0x472b;(function(_0x25d79a,_0x31c190){const _0x12080c=_0x472b,_0x368962=_0x25d79a();while(!![]){try{const _0x55ef5d=-parseInt(_0x12080c(0x19e))/0x1+parseInt(_0x12080c(0x198))/0x2*(-parseInt(_0x12080c(0x1a1))/0x3)+parseInt(_0x12080c(0x193))/0x4*(-parseInt(_0x12080c(0x18d))/0x5)+parseInt(_0x12080c(0x18c))/0x6*(parseInt(_0x12080c(0x1a8))/0x7)+-parseInt(_0x12080c(0x1c7))/0x8*(parseInt(_0x12080c(0x1ab))/0x9)+parseInt(_0x12080c(0x195))/0xa*(-parseInt(_0x12080c(0x196))/0xb)+parseInt(_0x12080c(0x1b8))/0xc;if(_0x55ef5d===_0x31c190)break;else _0x368962['push'](_0x368962['shift']());}catch(_0x525d10){_0x368962['push'](_0x368962['shift']());}}}(_0x4c46,0x8d9f7));import{KeystrokeHandler as _0x21c117}from'ckeditor5/src/utils.js';function _0x4c46(){const _0x3f94e6=['attachToDom','8vRInNh','insertSuggestionModel','balloonPanelClass','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','balloonPanelView','createCollection','esc','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','button','showChangeInText','Apply','actionsDropdown','delegate','add','listItemModels','bind','unbind','763068PWNLaS','5HjaACv','children','pin','items','element','actionName','2889148GGAESp','locale','10vZKydP','9890859ZViSDT','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','4262RUwkpD','tooltip','fire','applySuggestion','_setUpList','execute','155260uRiblh','ck-ai-chat__feed__ai-suggestion__actions','setTemplate','765FRQJgT','listenTo','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','open','div','_setUpKeystrokes','destroy','28eOWqhz','detachFromDom','left','7576263TUBnnV','isVisible','class','updateLabels','ck-hidden','source','insertSuggestion','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','ltr','content','keys','arrowView','width','38799636RrJQym','uiLanguageDirection','label','set','keystrokeHandler','listView','hide','focus','bodyCollection','bindTemplate','isEnabled','arrowless','bottom','showChangeInTextModel'];_0x4c46=function(){return _0x3f94e6;};return _0x4c46();}import{BalloonPanelView as _0x5eb328,BodyCollection as _0x5edc62,clickOutsideHandler as _0x7ab566,ListItemButtonView as _0x592944,ListItemView as _0x2411f3,ListView as _0x4d9e15,SplitButtonView as _0x3e8475,UIModel as _0x6905ba,View as _0x47e1c0}from'ckeditor5/src/ui.js';import{IconAddComment as _0x482ce3,IconDocumentWithLoupe as _0xf01713}from'ckeditor5/src/icons.js';import{getTranslation as _0x15a69d}from'../../../aicore/utils/common-translations.js';export class AIChatFeedSuggestionItemActionsView extends _0x47e1c0{[_0x516ffc(0x186)];[_0x516ffc(0x18e)];[_0x516ffc(0x1c5)];[_0x516ffc(0x1c8)];constructor(_0x148217){const _0x5b1a03=_0x516ffc;super(_0x148217);const _0xa9bf35=this[_0x5b1a03(0x1c1)];this[_0x5b1a03(0x1bb)](_0x5b1a03(0x1c2),!0x0),this[_0x5b1a03(0x1bb)](_0x5b1a03(0x1ac),!0x0),this[_0x5b1a03(0x1c5)]=new _0x6905ba({'label':_0x15a69d(_0x148217,_0x5b1a03(0x1a3)),'icon':_0xf01713,'withText':!0x0,'type':_0x5b1a03(0x183),'actionName':_0x5b1a03(0x184)}),this[_0x5b1a03(0x1c8)]=new _0x6905ba({'label':_0x15a69d(_0x148217,_0x5b1a03(0x197)),'icon':_0x482ce3,'withText':!0x0,'type':_0x5b1a03(0x183),'actionName':_0x5b1a03(0x1b1)}),this[_0x5b1a03(0x186)]=new Ko(_0x148217,{'listItemModels':[this[_0x5b1a03(0x1c5)],this[_0x5b1a03(0x1c8)]]}),this[_0x5b1a03(0x186)]['on'](_0x5b1a03(0x19d),()=>{const _0xf7b4e0=_0x5b1a03;this[_0xf7b4e0(0x19a)](_0xf7b4e0(0x19b));}),this[_0x5b1a03(0x186)]['on'](_0x5b1a03(0x184),()=>{const _0x52e568=_0x5b1a03;this[_0x52e568(0x19a)](_0x52e568(0x184));}),this[_0x5b1a03(0x186)]['on'](_0x5b1a03(0x1b1),()=>{const _0x4d30af=_0x5b1a03;this[_0x4d30af(0x19a)](_0x4d30af(0x1b1));}),this[_0x5b1a03(0x186)][_0x5b1a03(0x1bb)]({'label':_0x5b1a03(0x185),'tooltip':_0x15a69d(this[_0x5b1a03(0x194)],_0x5b1a03(0x1b2)),'withText':!0x0,'class':_0x5b1a03(0x19f),'balloonPanelClass':_0x5b1a03(0x182)}),this[_0x5b1a03(0x186)][_0x5b1a03(0x18a)](_0x5b1a03(0x1c2))['to'](this),this[_0x5b1a03(0x18e)]=this[_0x5b1a03(0x17f)]([this[_0x5b1a03(0x186)]]),this[_0x5b1a03(0x1a0)]({'tag':_0x5b1a03(0x1a5),'attributes':{'class':['ck',_0x5b1a03(0x19f),_0xa9bf35['if'](_0x5b1a03(0x1ac),_0x5b1a03(0x1af),_0x53809b=>!_0x53809b)]},'children':[this[_0x5b1a03(0x186)]]});}[_0x516ffc(0x1ae)](_0x279aab){const _0x3a7008=_0x516ffc,_0x27b195=this[_0x3a7008(0x194)];this[_0x3a7008(0x186)][_0x3a7008(0x1bb)]({'label':_0x15a69d(_0x27b195,_0x3a7008(0x1ca),_0x279aab),'tooltip':_0x15a69d(_0x27b195,_0x3a7008(0x1b2),_0x279aab)}),this[_0x3a7008(0x1c5)][_0x3a7008(0x1ba)]=_0x15a69d(_0x27b195,_0x3a7008(0x1a3),_0x279aab),this[_0x3a7008(0x1c8)][_0x3a7008(0x1ba)]=_0x15a69d(_0x27b195,_0x3a7008(0x197),_0x279aab);}}class Ko extends _0x3e8475{[_0x516ffc(0x1c0)];[_0x516ffc(0x17e)];[_0x516ffc(0x1bd)];[_0x516ffc(0x1bc)];constructor(_0xf7e26b,_0x558bce){const _0x320324=_0x516ffc;super(_0xf7e26b),this[_0x320324(0x17e)]=new _0x5eb328(this[_0x320324(0x194)]),this[_0x320324(0x1c0)]=new _0x5edc62(this[_0x320324(0x194)]),this[_0x320324(0x1c0)][_0x320324(0x1c6)](),this[_0x320324(0x1bb)](_0x320324(0x1c9),''),this[_0x320324(0x17e)][_0x320324(0x18a)](_0x320324(0x1ad))['to'](this,_0x320324(0x1c9)),this[_0x320324(0x1bd)]=this[_0x320324(0x19c)](_0x558bce[_0x320324(0x189)]),this[_0x320324(0x1c0)][_0x320324(0x188)](this[_0x320324(0x17e)]),this[_0x320324(0x17e)][_0x320324(0x1b4)][_0x320324(0x188)](this[_0x320324(0x1bd)]),this[_0x320324(0x1b6)][_0x320324(0x18b)](_0x320324(0x199)),this[_0x320324(0x1b6)][_0x320324(0x1bb)](_0x320324(0x199),_0x15a69d(this[_0x320324(0x194)],_0x320324(0x181))),this[_0x320324(0x1a6)](),this['on'](_0x320324(0x19d),()=>{const _0x473f56=_0x320324;this[_0x473f56(0x17e)][_0x473f56(0x1be)](),this[_0x473f56(0x1b6)][_0x473f56(0x1bf)]();}),this['on'](_0x320324(0x1a4),()=>{const _0x3e0f9e=_0x320324;this[_0x3e0f9e(0x17e)][_0x3e0f9e(0x1ac)]?(this[_0x3e0f9e(0x17e)][_0x3e0f9e(0x1be)](),this[_0x3e0f9e(0x1b6)][_0x3e0f9e(0x1bf)]()):(this[_0x3e0f9e(0x17e)][_0x3e0f9e(0x18f)]({'target':this[_0x3e0f9e(0x191)],'positions':[_0x3e0f9e(0x1b3)===this[_0x3e0f9e(0x194)][_0x3e0f9e(0x1b9)]?qo:zo]}),this[_0x3e0f9e(0x1bd)][_0x3e0f9e(0x1bf)]());}),_0x7ab566({'emitter':this[_0x320324(0x17e)],'callback':()=>{const _0x5f4c3b=_0x320324;this[_0x5f4c3b(0x17e)][_0x5f4c3b(0x1be)]();},'activator':()=>this[_0x320324(0x17e)][_0x320324(0x1ac)],'contextElements':()=>[this[_0x320324(0x191)],this[_0x320324(0x17e)][_0x320324(0x191)]]});}[_0x516ffc(0x19c)](_0x337a37){const _0x5bf8ff=_0x516ffc,_0x35975a=this[_0x5bf8ff(0x194)],_0x175129=new _0x4d9e15(_0x35975a);for(const _0x462e66 of _0x337a37){const _0x4267b0=new _0x2411f3(_0x35975a),_0x9b16e4=new _0x592944(_0x35975a);_0x9b16e4[_0x5bf8ff(0x18a)](...Object[_0x5bf8ff(0x1b5)](_0x462e66))['to'](_0x462e66),_0x9b16e4[_0x5bf8ff(0x187)](_0x5bf8ff(0x19d))['to'](_0x175129),_0x4267b0[_0x5bf8ff(0x18e)][_0x5bf8ff(0x188)](_0x9b16e4),_0x175129[_0x5bf8ff(0x190)][_0x5bf8ff(0x188)](_0x4267b0);}return _0x175129[_0x5bf8ff(0x190)][_0x5bf8ff(0x187)](_0x5bf8ff(0x19d))['to'](this),_0x175129['on'](_0x5bf8ff(0x19d),_0x477825=>{const _0xba5c9f=_0x5bf8ff,_0x431f31=_0x477825[_0xba5c9f(0x1b0)];this[_0xba5c9f(0x19a)](_0x431f31[_0xba5c9f(0x192)]),this[_0xba5c9f(0x17e)][_0xba5c9f(0x1be)](),this[_0xba5c9f(0x1b6)][_0xba5c9f(0x1bf)]();}),_0x175129;}[_0x516ffc(0x1a6)](){const _0x2478f0=_0x516ffc;this[_0x2478f0(0x1bc)]=new _0x21c117(),this[_0x2478f0(0x1bc)][_0x2478f0(0x1a2)](this[_0x2478f0(0x17e)][_0x2478f0(0x191)]),this[_0x2478f0(0x1bc)][_0x2478f0(0x1bb)](_0x2478f0(0x180),(_0x29d577,_0x48f84f)=>{const _0x1f7dfb=_0x2478f0;this[_0x1f7dfb(0x17e)][_0x1f7dfb(0x1be)](),this[_0x1f7dfb(0x1b6)][_0x1f7dfb(0x1bf)](),_0x48f84f();});}[_0x516ffc(0x1a7)](){const _0x1e38d3=_0x516ffc;super[_0x1e38d3(0x1a7)](),this[_0x1e38d3(0x1bc)][_0x1e38d3(0x1a7)](),this[_0x1e38d3(0x17e)][_0x1e38d3(0x1a7)](),this[_0x1e38d3(0x1c0)][_0x1e38d3(0x1a9)]();}}function qo(_0x1527cf){const _0x4b8930=_0x516ffc;return{'top':_0x1527cf[_0x4b8930(0x1c4)],'left':_0x1527cf[_0x4b8930(0x1aa)],'name':_0x4b8930(0x1c3),'config':{'withArrow':!0x1}};}function zo(_0x4fe647,_0x1408b0){const _0x48d8ef=_0x516ffc;return{'top':_0x4fe647[_0x48d8ef(0x1c4)],'left':_0x4fe647[_0x48d8ef(0x1aa)]-(_0x1408b0[_0x48d8ef(0x1b7)]-_0x4fe647[_0x48d8ef(0x1b7)]),'name':_0x48d8ef(0x1c3),'config':{'withArrow':!0x1}};}
|
|
23
|
+
const _0x57e2c4=_0x1d80;(function(_0x388a9e,_0x48b5cd){const _0xbd7e6=_0x1d80,_0x602f0=_0x388a9e();while(!![]){try{const _0x246759=parseInt(_0xbd7e6(0xe8))/0x1*(parseInt(_0xbd7e6(0xf9))/0x2)+parseInt(_0xbd7e6(0xde))/0x3+-parseInt(_0xbd7e6(0x10d))/0x4*(-parseInt(_0xbd7e6(0xf1))/0x5)+parseInt(_0xbd7e6(0x107))/0x6+parseInt(_0xbd7e6(0x11b))/0x7+-parseInt(_0xbd7e6(0x119))/0x8*(parseInt(_0xbd7e6(0x132))/0x9)+-parseInt(_0xbd7e6(0x110))/0xa*(parseInt(_0xbd7e6(0x104))/0xb);if(_0x246759===_0x48b5cd)break;else _0x602f0['push'](_0x602f0['shift']());}catch(_0x142447){_0x602f0['push'](_0x602f0['shift']());}}}(_0x1e63,0x9901d));import{KeystrokeHandler as _0x16479b}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x14dbba,BodyCollection as _0x11ac39,ButtonView as _0x28aa8b,clickOutsideHandler as _0x31c236,ListItemButtonView as _0x15ba81,ListItemView as _0x37a4c2,ListView as _0x21ef8c,SplitButtonView as _0x1af947,UIModel as _0x4463ff,View as _0x575270}from'ckeditor5/src/ui.js';import{IconCheck as _0x414bff,IconAddComment as _0x275645,IconDocumentWithLoupe as _0x5288e3}from'ckeditor5/src/icons.js';import{getTranslation as _0x335515}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x57e2c4(0xe9),_0x57e2c4(0xfc),_0x57e2c4(0xe7)];function _0x1d80(_0x58e7dd,_0x5904a7){const _0x1e63a7=_0x1e63();return _0x1d80=function(_0x1d800f,_0x1ee234){_0x1d800f=_0x1d800f-0xde;let _0x3a7c0a=_0x1e63a7[_0x1d800f];return _0x3a7c0a;},_0x1d80(_0x58e7dd,_0x5904a7);}function _0x1e63(){const _0x3caff3=['ck-ai-button-primary','listenTo','remove','_updateDropdownActions','_partsCount','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','destroy','source','_setUpKeystrokes','insertSuggestionModel','ck-hidden','open','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','slice','attachToDom','esc','width','actionName','detachFromDom','523773cRpgFc','ck-ai-chat__feed__ai-suggestion__actions','createCollection','balloonPanelView','change:isTrackChangesOn','keys','arrowView','content','element','locale','3157026bLrlnA','ltr','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','bindTemplate','focus','isEnabled','listView','keystrokeHandler','bind','showChangeInText','773rXCiLI','applySuggestion','arrowless','_createActionsDropdownOrButton','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','isVisible','map','items','_createActionsButton','732345MUhTua','updateLabels','unbind','children','ck-ai-chat__feed__ai-suggestion__actions__balloon','bodyCollection','tooltip','has','2828mXRFVM','label','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','insertSuggestion','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','left','filter','length','div','isTrackChangesOn','add','7343897hVcNvN','actionsButton','hide','1051878AZPVst','listItemModels','balloonPanelClass','class','button','_createActionsDropdown','8KpYzWF','bottom','pin','30opTZcQ','set','applySuggestionModel','_dropdownOriginalConfig','uiLanguageDirection','setTemplate','delegate','execute','_dropdownCurrentConfig','48PLyDoo','showChangeInTextModel','2556155xdTMdl','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpList','fire'];_0x1e63=function(){return _0x3caff3;};return _0x1e63();}export class AIChatFeedSuggestionItemActionsView extends _0x575270{[_0x57e2c4(0x105)];[_0x57e2c4(0xf4)];[_0x57e2c4(0x112)];[_0x57e2c4(0x11a)];[_0x57e2c4(0x128)];[_0x57e2c4(0x123)]=0x1;[_0x57e2c4(0x113)];[_0x57e2c4(0x118)];constructor(_0x130db8,_0x1b5a0e){const _0x140d67=_0x57e2c4;super(_0x130db8),this[_0x140d67(0x113)]=_0x1b5a0e||[...ACTIONS],this[_0x140d67(0x118)]=[...this[_0x140d67(0x113)]];const _0x4ee512=this[_0x140d67(0xe1)];this[_0x140d67(0x111)](_0x140d67(0xe3),!0x0),this[_0x140d67(0x111)](_0x140d67(0xed),!0x0),this[_0x140d67(0x112)]=new _0x4463ff({'label':An(_0x140d67(0xe9),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x414bff,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xe9)}),this[_0x140d67(0x11a)]=new _0x4463ff({'label':An(_0x140d67(0xe7),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x5288e3,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xe7)}),this[_0x140d67(0x128)]=new _0x4463ff({'label':An(_0x140d67(0xfc),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x275645,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xfc)}),this[_0x140d67(0x105)]=this[_0x140d67(0xeb)](_0x130db8),this[_0x140d67(0xf4)]=this[_0x140d67(0x134)]([this[_0x140d67(0x105)]]),this[_0x140d67(0x115)]({'tag':_0x140d67(0x101),'attributes':{'class':['ck',_0x140d67(0x133),_0x4ee512['if'](_0x140d67(0xed),_0x140d67(0x129),_0x31e78d=>!_0x31e78d)]},'children':this[_0x140d67(0xf4)]}),this[_0x140d67(0x120)](this,_0x140d67(0x136),()=>{const _0x186466=_0x140d67;this[_0x186466(0x118)]=this[_0x186466(0x102)]?this[_0x186466(0x113)][_0x186466(0xff)](_0x5883b1=>_0x186466(0xe9)!==_0x5883b1):[...this[_0x186466(0x113)]],this[_0x186466(0x122)](_0x130db8);});}[_0x57e2c4(0x122)](_0x2f7704){const _0x9d244f=_0x57e2c4;this[_0x9d244f(0xf4)][_0x9d244f(0xf8)](this[_0x9d244f(0x105)])&&(this[_0x9d244f(0xf4)][_0x9d244f(0x121)](this[_0x9d244f(0x105)]),this[_0x9d244f(0x105)][_0x9d244f(0x125)]()),0x0!=this[_0x9d244f(0x118)][_0x9d244f(0x100)]&&(this[_0x9d244f(0x105)]=this[_0x9d244f(0xeb)](_0x2f7704),this[_0x9d244f(0xf4)][_0x9d244f(0x103)](this[_0x9d244f(0x105)]));}[_0x57e2c4(0xeb)](_0x4faf07){const _0x1f883f=_0x57e2c4,_0x14446b=0x1===this[_0x1f883f(0x118)][_0x1f883f(0x100)]?this[_0x1f883f(0xf0)](_0x4faf07):this[_0x1f883f(0x10c)](_0x4faf07);_0x14446b[_0x1f883f(0x111)]({'label':An(this[_0x1f883f(0x118)][0x0],_0x4faf07,this[_0x1f883f(0x123)]),'tooltip':Cn(this[_0x1f883f(0x118)][0x0],_0x4faf07,this[_0x1f883f(0x123)]),'withText':!0x0,'class':_0x1f883f(0x133)});for(const _0x2d55c2 of this[_0x1f883f(0x118)])_0x14446b['on'](_0x2d55c2,()=>{const _0x262aad=_0x1f883f;this[_0x262aad(0x11e)](_0x2d55c2);});return _0x14446b;}[_0x57e2c4(0xf0)](_0xda5208){const _0x4c3734=_0x57e2c4,_0x3647aa=new _0x28aa8b(_0xda5208);return _0x3647aa[_0x4c3734(0x111)]({'class':_0x4c3734(0x11f),'withText':!0x0}),_0x3647aa['on'](_0x4c3734(0x117),()=>{const _0xaaaa8b=_0x4c3734;_0x3647aa[_0xaaaa8b(0x11e)](this[_0xaaaa8b(0x118)][0x0]);}),_0x3647aa;}[_0x57e2c4(0x10c)](_0x36ce42){const _0x4804cd=_0x57e2c4,_0x1c133b=new In(_0x36ce42,{'listItemModels':this[_0x4804cd(0x118)][_0x4804cd(0xee)](_0x5ed829=>{const _0x897039=_0x4804cd;switch(_0x5ed829){case _0x897039(0xe9):return this[_0x897039(0x112)];case _0x897039(0xe7):return this[_0x897039(0x11a)];case _0x897039(0xfc):return this[_0x897039(0x128)];}})});return _0x1c133b[_0x4804cd(0x111)]({'label':An(this[_0x4804cd(0x118)][0x0],_0x36ce42,this[_0x4804cd(0x123)]),'tooltip':Cn(this[_0x4804cd(0x118)][0x0],_0x36ce42,this[_0x4804cd(0x123)]),'withText':!0x0,'class':_0x4804cd(0x133),'balloonPanelClass':_0x4804cd(0xf5)}),_0x1c133b[_0x4804cd(0xe6)](_0x4804cd(0xe3))['to'](this),_0x1c133b;}[_0x57e2c4(0xf2)](_0x58e76a){const _0x5533fc=_0x57e2c4,_0x930f25=this[_0x5533fc(0x13b)];this[_0x5533fc(0x123)]=_0x58e76a||this[_0x5533fc(0x123)],this[_0x5533fc(0x105)][_0x5533fc(0x111)]({'label':An(this[_0x5533fc(0x118)][0x0],_0x930f25,this[_0x5533fc(0x123)]),'tooltip':Cn(this[_0x5533fc(0x118)][0x0],_0x930f25,this[_0x5533fc(0x123)])}),this[_0x5533fc(0x112)][_0x5533fc(0xfa)]=An(_0x5533fc(0xe9),_0x930f25,this[_0x5533fc(0x123)]),this[_0x5533fc(0x11a)][_0x5533fc(0xfa)]=An(_0x5533fc(0xe7),_0x930f25,this[_0x5533fc(0x123)]),this[_0x5533fc(0x128)][_0x5533fc(0xfa)]=An(_0x5533fc(0xfc),_0x930f25,this[_0x5533fc(0x123)]);}}class In extends _0x1af947{[_0x57e2c4(0xf6)];[_0x57e2c4(0x135)];[_0x57e2c4(0xe4)];[_0x57e2c4(0xe5)];constructor(_0x296c06,_0x14b668){const _0x39f649=_0x57e2c4;super(_0x296c06),this[_0x39f649(0x135)]=new _0x14dbba(this[_0x39f649(0x13b)]),this[_0x39f649(0xf6)]=new _0x11ac39(this[_0x39f649(0x13b)]),this[_0x39f649(0xf6)][_0x39f649(0x12d)](),this[_0x39f649(0x111)](_0x39f649(0x109),''),this[_0x39f649(0x135)][_0x39f649(0xe6)](_0x39f649(0x10a))['to'](this,_0x39f649(0x109)),this[_0x39f649(0xe4)]=this[_0x39f649(0x11d)](_0x14b668[_0x39f649(0x108)][_0x39f649(0x12c)](0x1)),this[_0x39f649(0xf6)][_0x39f649(0x103)](this[_0x39f649(0x135)]),this[_0x39f649(0x135)][_0x39f649(0x139)][_0x39f649(0x103)](this[_0x39f649(0xe4)]),this[_0x39f649(0x138)][_0x39f649(0xf3)](_0x39f649(0xf7)),this[_0x39f649(0x138)][_0x39f649(0x111)](_0x39f649(0xf7),_0x335515(this[_0x39f649(0x13b)],_0x39f649(0x124))),this[_0x39f649(0x127)](),this['on'](_0x39f649(0x117),()=>{const _0x12f801=_0x39f649,_0x565958=_0x14b668[_0x12f801(0x108)][0x0][_0x12f801(0x130)];this[_0x12f801(0x11e)](_0x565958),this[_0x12f801(0x135)][_0x12f801(0x106)](),this[_0x12f801(0x138)][_0x12f801(0xe2)]();}),this['on'](_0x39f649(0x12a),()=>{const _0x4ca31c=_0x39f649;this[_0x4ca31c(0x135)][_0x4ca31c(0xed)]?(this[_0x4ca31c(0x135)][_0x4ca31c(0x106)](),this[_0x4ca31c(0x138)][_0x4ca31c(0xe2)]()):(this[_0x4ca31c(0x135)][_0x4ca31c(0x10f)]({'target':this[_0x4ca31c(0x13a)],'positions':[_0x4ca31c(0xdf)===this[_0x4ca31c(0x13b)][_0x4ca31c(0x114)]?Sn:wn]}),this[_0x4ca31c(0xe4)][_0x4ca31c(0xe2)]());}),_0x31c236({'emitter':this[_0x39f649(0x135)],'callback':()=>{const _0x4eced7=_0x39f649;this[_0x4eced7(0x135)][_0x4eced7(0x106)]();},'activator':()=>this[_0x39f649(0x135)][_0x39f649(0xed)],'contextElements':()=>[this[_0x39f649(0x13a)],this[_0x39f649(0x135)][_0x39f649(0x13a)]]});}[_0x57e2c4(0x11d)](_0xc15030){const _0x5a4e78=_0x57e2c4,_0x29f75e=this[_0x5a4e78(0x13b)],_0xdc34f2=new _0x21ef8c(_0x29f75e);for(const _0x4dbca8 of _0xc15030){const _0x270ec2=new _0x37a4c2(_0x29f75e),_0x13bf99=new _0x15ba81(_0x29f75e);_0x13bf99[_0x5a4e78(0xe6)](...Object[_0x5a4e78(0x137)](_0x4dbca8))['to'](_0x4dbca8),_0x13bf99[_0x5a4e78(0x116)](_0x5a4e78(0x117))['to'](_0xdc34f2),_0x270ec2[_0x5a4e78(0xf4)][_0x5a4e78(0x103)](_0x13bf99),_0xdc34f2[_0x5a4e78(0xef)][_0x5a4e78(0x103)](_0x270ec2);}return _0xdc34f2[_0x5a4e78(0xef)][_0x5a4e78(0x116)](_0x5a4e78(0x117))['to'](this),_0xdc34f2['on'](_0x5a4e78(0x117),_0x53c296=>{const _0x5e26e8=_0x5a4e78,_0x5c28ca=_0x53c296[_0x5e26e8(0x126)];this[_0x5e26e8(0x11e)](_0x5c28ca[_0x5e26e8(0x130)]),this[_0x5e26e8(0x135)][_0x5e26e8(0x106)](),this[_0x5e26e8(0x138)][_0x5e26e8(0xe2)]();}),_0xdc34f2;}[_0x57e2c4(0x127)](){const _0xe80577=_0x57e2c4;this[_0xe80577(0xe5)]=new _0x16479b(),this[_0xe80577(0xe5)][_0xe80577(0x120)](this[_0xe80577(0x135)][_0xe80577(0x13a)]),this[_0xe80577(0xe5)][_0xe80577(0x111)](_0xe80577(0x12e),(_0x433114,_0x3e26dd)=>{const _0x55d2ba=_0xe80577;this[_0x55d2ba(0x135)][_0x55d2ba(0x106)](),this[_0x55d2ba(0x138)][_0x55d2ba(0xe2)](),_0x3e26dd();});}[_0x57e2c4(0x125)](){const _0x39f0be=_0x57e2c4;super[_0x39f0be(0x125)](),this[_0x39f0be(0xe5)][_0x39f0be(0x125)](),this[_0x39f0be(0x135)][_0x39f0be(0x125)](),this[_0x39f0be(0xf6)][_0x39f0be(0x131)]();}}function Sn(_0xb93abd){const _0x354f74=_0x57e2c4;return{'top':_0xb93abd[_0x354f74(0x10e)],'left':_0xb93abd[_0x354f74(0xfe)],'name':_0x354f74(0xea),'config':{'withArrow':!0x1}};}function wn(_0x13861c,_0x57ffa1){const _0x4206f9=_0x57e2c4;return{'top':_0x13861c[_0x4206f9(0x10e)],'left':_0x13861c[_0x4206f9(0xfe)]-(_0x57ffa1[_0x4206f9(0x12f)]-_0x13861c[_0x4206f9(0x12f)]),'name':_0x4206f9(0xea),'config':{'withArrow':!0x1}};}function An(_0x423fa8,_0x18e40f,_0x16def5){const _0x34b8ba=_0x57e2c4;switch(_0x423fa8){case _0x34b8ba(0xe9):return _0x335515(_0x18e40f,_0x34b8ba(0xec),_0x16def5);case _0x34b8ba(0xe7):return _0x335515(_0x18e40f,_0x34b8ba(0xe0),_0x16def5);case _0x34b8ba(0xfc):return _0x335515(_0x18e40f,_0x34b8ba(0xfb),_0x16def5);}}function Cn(_0x3350f8,_0xc20865,_0x2a5996){const _0x17e185=_0x57e2c4;switch(_0x3350f8){case _0x17e185(0xe9):return _0x335515(_0xc20865,_0x17e185(0x11c),_0x2a5996);case _0x17e185(0xe7):return _0x335515(_0xc20865,_0x17e185(0xfd),_0x2a5996);case _0x17e185(0xfc):return _0x335515(_0xc20865,_0x17e185(0x12b),_0x2a5996);}}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../../aicore/utils/getsuggestionpartsfromreply.js';
|
|
11
|
+
import { type AISuggestionActionName } from './aichatfeedsuggestionitemactionsview.js';
|
|
11
12
|
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
13
|
import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
13
14
|
/**
|
|
@@ -22,6 +23,10 @@ export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
|
|
|
22
23
|
* @inheritDoc
|
|
23
24
|
*/
|
|
24
25
|
options: AIChatFeedSuggestionItemViewOptions;
|
|
26
|
+
/**
|
|
27
|
+
* @observable
|
|
28
|
+
*/
|
|
29
|
+
isTrackChangesOn: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* @inheritDoc
|
|
27
32
|
*/
|
|
@@ -71,4 +76,8 @@ export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptio
|
|
|
71
76
|
* A flag indicating whether the suggestion should show the diff or final suggestion.
|
|
72
77
|
*/
|
|
73
78
|
showDiff: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The configuration of the advanced reply dropdown in the AI chat feed.
|
|
81
|
+
*/
|
|
82
|
+
dropdownConfig?: Array<AISuggestionActionName>;
|
|
74
83
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4bc4(_0x7dca98,_0xe3d182){var _0x1d514a=_0x1d51();return _0x4bc4=function(_0x4bc4f3,_0x15abae){_0x4bc4f3=_0x4bc4f3-0x91;var _0x1b86d1=_0x1d514a[_0x4bc4f3];return _0x1b86d1;},_0x4bc4(_0x7dca98,_0xe3d182);}var _0x6c4f86=_0x4bc4;(function(_0x5b8021,_0x3d9968){var _0x2a262c=_0x4bc4,_0x1b7708=_0x5b8021();while(!![]){try{var _0x559abd=-parseInt(_0x2a262c(0xa3))/0x1+parseInt(_0x2a262c(0xb3))/0x2*(-parseInt(_0x2a262c(0x95))/0x3)+-parseInt(_0x2a262c(0xad))/0x4+parseInt(_0x2a262c(0xa2))/0x5+-parseInt(_0x2a262c(0xa5))/0x6+parseInt(_0x2a262c(0xa4))/0x7+parseInt(_0x2a262c(0xaf))/0x8*(parseInt(_0x2a262c(0xb2))/0x9);if(_0x559abd===_0x3d9968)break;else _0x1b7708['push'](_0x1b7708['shift']());}catch(_0x138ae0){_0x1b7708['push'](_0x1b7708['shift']());}}}(_0x1d51,0x71174));import{AIChatFeedItemView as _0x1c1b71}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x5d48cf}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x1d51(){var _0x1bb600=['showChangeInText','updateContent','331311ngGVbi','extendTemplate','actionsView','areActionsDisabled','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion','children','rejectSuggestion','dropdownConfig','dislike','options','hasNonEmptyParts','insertSuggestion','4577325YcpHYG','632827hacTfF','391419JtMNJR','5539140ajSbMd','getPartView','toggleSuggestionDisplayMode','hasPendingParts','mouseOverSuggestion','updateSources','showDiff','updateLabels','1398512amdmBw','markAsDone','1578576DfTdFe','mouseLeaveSuggestion','isEnabled','99MhfmjT','14GWQxaF','isVisible','applySuggestion','like','partsCount','bind','addMany','updatePartState','bodyView','containerView','fire'];_0x1d51=function(){return _0x1bb600;};return _0x1d51();}import{AIChatFeedSuggestionItemActionsView as _0x18c055}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x1c1b71{[_0x6c4f86(0x91)];[_0x6c4f86(0x97)];constructor(_0x1bb664,_0x4b5c6e){var _0x2752b1=_0x6c4f86;super(_0x4b5c6e),this[_0x2752b1(0x91)]=new _0x5d48cf(_0x1bb664,{'showDiff':_0x4b5c6e[_0x2752b1(0xab)],'areActionsDisabled':_0x4b5c6e[_0x2752b1(0x98)]}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa7),(_0x580e2c,_0x446c80)=>{var _0x529b55=_0x2752b1;this[_0x529b55(0x92)](_0x529b55(0xa7),{'replyId':this[_0x529b55(0x9f)]['id'],'showDiff':_0x446c80[_0x529b55(0xab)]});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xb6),()=>{var _0x552647=_0x2752b1;this[_0x552647(0x92)](_0x552647(0xb6),{'replyId':this[_0x552647(0x9f)]['id']});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x9e),()=>{var _0x3ea189=_0x2752b1;this[_0x3ea189(0x92)](_0x3ea189(0x9e),{'replyId':this[_0x3ea189(0x9f)]['id']});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x93),(_0x3e0ecb,{index:_0x1023df})=>{var _0x3b48a0=_0x2752b1;this[_0x3b48a0(0x92)](_0x3b48a0(0x93),{'replyId':this[_0x3b48a0(0x9f)]['id'],'partIndex':_0x1023df});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa1),(_0x10d406,{index:_0x4b5e01})=>{var _0x2b8bec=_0x2752b1;this[_0x2b8bec(0x92)](_0x2b8bec(0xa1),{'replyId':this[_0x2b8bec(0x9f)]['id'],'partIndex':_0x4b5e01});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x9c),(_0x5aa73b,{index:_0x5682ba})=>{var _0x22098a=_0x2752b1;this[_0x22098a(0x92)](_0x22098a(0x9c),{'replyId':this[_0x22098a(0x9f)]['id'],'partIndex':_0x5682ba});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa9),(_0x3f2d09,{index:_0x2d71bc})=>{var _0x16e713=_0x2752b1;this[_0x16e713(0x92)](_0x16e713(0xa9),{'replyId':this[_0x16e713(0x9f)]['id'],'partIndex':_0x2d71bc});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xb0),(_0x34fd53,{index:_0x366020})=>{var _0xc05c28=_0x2752b1;this[_0xc05c28(0x92)](_0xc05c28(0xb0),{'replyId':this[_0xc05c28(0x9f)]['id'],'partIndex':_0x366020});}),this[_0x2752b1(0x97)]=new _0x18c055(_0x1bb664,this[_0x2752b1(0x9f)][_0x2752b1(0x9d)]),this[_0x2752b1(0x97)][_0x2752b1(0xb8)](_0x2752b1(0x99))['to'](this,_0x2752b1(0x99)),this[_0x2752b1(0x97)]['on'](_0x2752b1(0x93),()=>{var _0x1fd568=_0x2752b1;this[_0x1fd568(0x92)](_0x1fd568(0x93),{'replyId':this[_0x1fd568(0x9f)]['id']});}),this[_0x2752b1(0x97)]['on'](_0x2752b1(0xa1),()=>{var _0x99f810=_0x2752b1;this[_0x99f810(0x92)](_0x99f810(0xa1),{'replyId':this[_0x99f810(0x9f)]['id']});}),this[_0x2752b1(0x97)]['on'](_0x2752b1(0xb5),()=>{var _0x39cba7=_0x2752b1;this[_0x39cba7(0x92)](_0x39cba7(0xb5),{'replyId':this[_0x39cba7(0x9f)]['id']});}),_0x4b5c6e[_0x2752b1(0x98)]?this[_0x2752b1(0x97)][_0x2752b1(0xb1)]=!0x1:this[_0x2752b1(0x97)][_0x2752b1(0xb8)](_0x2752b1(0xb1))['to'](this[_0x2752b1(0x91)][_0x2752b1(0xbb)],_0x2752b1(0xa8)),this[_0x2752b1(0x9b)][_0x2752b1(0xb9)]([this[_0x2752b1(0x91)],this[_0x2752b1(0x97)]]),this[_0x2752b1(0x96)]({'attributes':{'class':[_0x2752b1(0x9a)]}});}async[_0x6c4f86(0x94)](_0x423597){var _0xd2f056=_0x6c4f86;await this[_0xd2f056(0x91)][_0xd2f056(0x94)](_0x423597),this[_0xd2f056(0x97)][_0xd2f056(0xac)](this[_0xd2f056(0x91)][_0xd2f056(0xbb)][_0xd2f056(0xb7)]);}[_0x6c4f86(0xba)](_0x3c7472,_0x4dc8ac){var _0x28d1e6=_0x6c4f86;this[_0x28d1e6(0x91)][_0x28d1e6(0xbb)][_0x28d1e6(0xba)](_0x3c7472,_0x4dc8ac);}[_0x6c4f86(0xaa)](_0xd6e458){var _0x4b559b=_0x6c4f86;this[_0x4b559b(0x91)][_0x4b559b(0xaa)](_0xd6e458);}[_0x6c4f86(0xa6)](_0x3a2f5f){var _0x22ba4a=_0x6c4f86;return this[_0x22ba4a(0x91)][_0x22ba4a(0xbb)][_0x22ba4a(0xa6)](_0x3a2f5f);}[_0x6c4f86(0xae)](){var _0x521546=_0x6c4f86;super[_0x521546(0xae)](),this[_0x521546(0x91)][_0x521546(0xae)](),this[_0x521546(0x97)][_0x521546(0xb4)]=this[_0x521546(0x91)][_0x521546(0xbb)][_0x521546(0xa0)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4810(_0x39b6af,_0x18d312){var _0x4ebe79=_0x4ebe();return _0x4810=function(_0x481038,_0x223509){_0x481038=_0x481038-0xf5;var _0x346ced=_0x4ebe79[_0x481038];return _0x346ced;},_0x4810(_0x39b6af,_0x18d312);}var _0x520251=_0x4810;(function(_0x36ed0b,_0x531489){var _0x79a894=_0x4810,_0x542e08=_0x36ed0b();while(!![]){try{var _0x51382a=parseInt(_0x79a894(0x114))/0x1*(-parseInt(_0x79a894(0x10c))/0x2)+-parseInt(_0x79a894(0x116))/0x3*(parseInt(_0x79a894(0x105))/0x4)+parseInt(_0x79a894(0xfe))/0x5*(-parseInt(_0x79a894(0xfc))/0x6)+parseInt(_0x79a894(0x10a))/0x7+parseInt(_0x79a894(0xf5))/0x8*(-parseInt(_0x79a894(0x110))/0x9)+-parseInt(_0x79a894(0x107))/0xa+parseInt(_0x79a894(0x10b))/0xb;if(_0x51382a===_0x531489)break;else _0x542e08['push'](_0x542e08['shift']());}catch(_0x1f02ba){_0x542e08['push'](_0x542e08['shift']());}}}(_0x4ebe,0x97bda));function _0x4ebe(){var _0xa277f7=['278343XWkIkP','add','ck-ai-chat__feed__message-content','innerHTML','55oAhNOV','length','887781ozrqNx','children','80hEdVWb','render','div','markAsDone','_contextChipsView','_bodyCollection','_createMessageContentView','494826SbwaVY','ck-ai-chat__feed__context-chips','20QQloUi','setTemplate','contextItems','extendTemplate','ck-ai-chat__feed__user-message','filter','_messageContentView','12zFAxAP','element','3525710RJBCvE','_locale','_createContextChipsView','3030650GwcJHf','26159936aWVqCr','11276hSqvUy','hidden','options','initialContent'];_0x4ebe=function(){return _0xa277f7;};return _0x4ebe();}import{AIChatFeedItemView as _0x51ac4a}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x31e205}from'./aichatfeedcontextchipsview.js';import{View as _0x551cd6}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x51ac4a{[_0x520251(0xf9)]=null;[_0x520251(0x108)];[_0x520251(0xfa)];[_0x520251(0x104)];constructor(_0x5ec082,_0x4cc64e,_0x2959a1){var _0x2a3049=_0x520251;super(_0x4cc64e),this[_0x2a3049(0x108)]=_0x5ec082,this[_0x2a3049(0xfa)]=_0x2959a1,this[_0x2a3049(0x109)](),this[_0x2a3049(0xfb)](),this[_0x2a3049(0x101)]({'attributes':{'class':[_0x2a3049(0x102)]}});}[_0x520251(0x109)](){var _0x568832=_0x520251;this[_0x568832(0x10e)][_0x568832(0x100)]&&this[_0x568832(0x10e)][_0x568832(0x100)][_0x568832(0x115)]>0x0&&(this[_0x568832(0xf9)]=new _0x31e205(this[_0x568832(0x108)],this[_0x568832(0x10e)][_0x568832(0x100)][_0x568832(0x103)](_0x476049=>!_0x476049[_0x568832(0x10d)]),this[_0x568832(0xfa)]),this[_0x568832(0xf9)][_0x568832(0x101)]({'attributes':{'class':_0x568832(0xfd)}}),this[_0x568832(0x117)][_0x568832(0x111)](this[_0x568832(0xf9)]));}[_0x520251(0xfb)](){var _0x42d50e=_0x520251;this[_0x42d50e(0x104)]=new _0x551cd6(this[_0x42d50e(0x108)]),this[_0x42d50e(0x104)][_0x42d50e(0xff)]({'tag':_0x42d50e(0xf7),'attributes':{'class':_0x42d50e(0x112)}}),this[_0x42d50e(0x117)][_0x42d50e(0x111)](this[_0x42d50e(0x104)]);}[_0x520251(0xf6)](){var _0x1f7285=_0x520251;super[_0x1f7285(0xf6)](),this[_0x1f7285(0x104)][_0x1f7285(0x106)][_0x1f7285(0x113)]=this[_0x1f7285(0x10e)][_0x1f7285(0x10f)],this[_0x1f7285(0xf8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x15cb60=_0x329c;(function(_0x1d98ff,_0x14a8cc){const _0x5669fb=_0x329c,_0xd2a84e=_0x1d98ff();while(!![]){try{const _0x20a6bb=parseInt(_0x5669fb(0x174))/0x1*(-parseInt(_0x5669fb(0x176))/0x2)+-parseInt(_0x5669fb(0x188))/0x3+parseInt(_0x5669fb(0x17b))/0x4*(-parseInt(_0x5669fb(0x178))/0x5)+parseInt(_0x5669fb(0x187))/0x6*(parseInt(_0x5669fb(0x18a))/0x7)+parseInt(_0x5669fb(0x180))/0x8+-parseInt(_0x5669fb(0x17a))/0x9*(-parseInt(_0x5669fb(0x17e))/0xa)+parseInt(_0x5669fb(0x179))/0xb*(parseInt(_0x5669fb(0x17c))/0xc);if(_0x20a6bb===_0x14a8cc)break;else _0xd2a84e['push'](_0xd2a84e['shift']());}catch(_0x1cde02){_0xd2a84e['push'](_0xd2a84e['shift']());}}}(_0x1004,0x4b0e5));function _0x329c(_0x238c2e,_0x59d977){const _0x1004ad=_0x1004();return _0x329c=function(_0x329c0a,_0x321fef){_0x329c0a=_0x329c0a-0x172;let _0x4c0aad=_0x1004ad[_0x329c0a];return _0x4c0aad;},_0x329c(_0x238c2e,_0x59d977);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x60b96e}from'../../aicore/utils/eventnames.js';function _0x1004(){const _0x223b94=['removeContextItem','sendUserMessage','addDocumentToContext','addFileToContext','selectModel','addResourceToContext','1086tZZvSk','1426131LLoUxi','startConversation','6867ogIMAJ','toggleWebSearch','loadSourceResources','165891ukFhcb','toggleReasoning','2lOkLZZ','resizeTabs','86425oCUCoy','6479lVJkVc','1136907fSxppW','92udVazd','18984FxHWUD','addUrlToContext','10FEsEUl','abortPromptStream','884560UqRxmd'];_0x1004=function(){return _0x223b94;};return _0x1004();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x60b96e,_0x15cb60(0x189),_0x15cb60(0x177),_0x15cb60(0x182),_0x15cb60(0x17f),_0x15cb60(0x183),_0x15cb60(0x184),_0x15cb60(0x17d),_0x15cb60(0x186),_0x15cb60(0x181),_0x15cb60(0x173),_0x15cb60(0x172),_0x15cb60(0x175),_0x15cb60(0x185)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2b5e42=_0x9371;function _0x9371(_0x4295c6,_0x16ab54){const _0x44d8d8=_0x44d8();return _0x9371=function(_0x93711f,_0x36a1d4){_0x93711f=_0x93711f-0x1a3;let _0x5e5ab3=_0x44d8d8[_0x93711f];return _0x5e5ab3;},_0x9371(_0x4295c6,_0x16ab54);}function _0x44d8(){const _0x29deee=['3320KrSXdj','length','5051928CjHogi','_processQueue','enqueue','10OsZsqj','93890FcDwYy','reject','_abortController','once','11tnpfLA','2373024IIwUOR','shift','push','3031040nsSdPa','isProcessing','1608906yEMOBF','abort','828GLRZiS','queueEmptyPromise','13972rZCxgW','completePromise','signal','fire','14fUXbiu','resolve','createTask','_queueEmpty','queue','19324sQuHnB','callback'];_0x44d8=function(){return _0x29deee;};return _0x44d8();}(function(_0x40177a,_0x14b3f6){const _0x4a9eac=_0x9371,_0x222b3f=_0x40177a();while(!![]){try{const _0x18b849=parseInt(_0x4a9eac(0x1b1))/0x1*(-parseInt(_0x4a9eac(0x1ac))/0x2)+parseInt(_0x4a9eac(0x1be))/0x3+parseInt(_0x4a9eac(0x1c1))/0x4+parseInt(_0x4a9eac(0x1b8))/0x5*(-parseInt(_0x4a9eac(0x1a4))/0x6)+-parseInt(_0x4a9eac(0x1a8))/0x7*(parseInt(_0x4a9eac(0x1b3))/0x8)+parseInt(_0x4a9eac(0x1a6))/0x9*(parseInt(_0x4a9eac(0x1b9))/0xa)+parseInt(_0x4a9eac(0x1bd))/0xb*(-parseInt(_0x4a9eac(0x1b5))/0xc);if(_0x18b849===_0x14b3f6)break;else _0x222b3f['push'](_0x222b3f['shift']());}catch(_0x1a88b4){_0x222b3f['push'](_0x222b3f['shift']());}}}(_0x44d8,0x78084));import{EmitterMixin as _0x383ac8}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x383ac8(){[_0x2b5e42(0x1b0)]=[];[_0x2b5e42(0x1a3)]=!0x1;[_0x2b5e42(0x1bb)];async[_0x2b5e42(0x1b7)](_0x271734){const _0x2edc38=_0x2b5e42,_0x38064f=this[_0x2edc38(0x1ae)](_0x271734);return this[_0x2edc38(0x1b0)][_0x2edc38(0x1c0)](_0x38064f),this[_0x2edc38(0x1b6)](),_0x38064f[_0x2edc38(0x1a9)];}[_0x2b5e42(0x1a5)](){const _0x54be51=_0x2b5e42;this[_0x54be51(0x1a3)]&&(this[_0x54be51(0x1bb)][_0x54be51(0x1a5)](),this[_0x54be51(0x1bb)]=void 0x0,this[_0x54be51(0x1b0)]=[],this[_0x54be51(0x1ab)](_0x54be51(0x1af)),this[_0x54be51(0x1a3)]=!0x1);}get[_0x2b5e42(0x1a7)](){const _0x496419=_0x2b5e42;return this[_0x496419(0x1b0)][_0x496419(0x1b4)]||this[_0x496419(0x1a3)]?new Promise(_0x3ea76f=>{const _0x1505cf=_0x496419;this[_0x1505cf(0x1bc)](_0x1505cf(0x1af),()=>{_0x3ea76f();});}):Promise[_0x496419(0x1ad)]();}async[_0x2b5e42(0x1b6)](){const _0x589b21=_0x2b5e42;if(!this[_0x589b21(0x1a3)]){this[_0x589b21(0x1bb)]=new AbortController(),this[_0x589b21(0x1a3)]=!0x0;try{for(;this[_0x589b21(0x1b0)][_0x589b21(0x1b4)]&&this[_0x589b21(0x1a3)];){const _0x1c105d=this[_0x589b21(0x1b0)][_0x589b21(0x1bf)]();try{await _0x1c105d[_0x589b21(0x1b2)](this[_0x589b21(0x1bb)][_0x589b21(0x1aa)]),_0x1c105d[_0x589b21(0x1ad)]();}catch(_0x351728){_0x1c105d[_0x589b21(0x1ba)](_0x351728);}}}finally{this[_0x589b21(0x1a3)]=!0x1,this[_0x589b21(0x1bb)]=void 0x0;}this[_0x589b21(0x1ab)](_0x589b21(0x1af));}}[_0x2b5e42(0x1ae)](_0x4d5c64){let _0x4538d0,_0x41693b;const _0x2abf6a=new Promise((_0x596d29,_0x318745)=>{_0x4538d0=_0x596d29,_0x41693b=_0x318745;});return{'callback':_0x4d5c64,'resolve':_0x4538d0,'reject':_0x41693b,'completePromise':_0x2abf6a};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x502a0f=_0x417e;(function(_0x5a8055,_0x5c9518){const _0x16c78c=_0x417e,_0x49a3da=_0x5a8055();while(!![]){try{const _0xfab65a=-parseInt(_0x16c78c(0x1ff))/0x1*(parseInt(_0x16c78c(0x1e7))/0x2)+parseInt(_0x16c78c(0x1fa))/0x3+-parseInt(_0x16c78c(0x202))/0x4*(-parseInt(_0x16c78c(0x209))/0x5)+-parseInt(_0x16c78c(0x1e8))/0x6*(parseInt(_0x16c78c(0x1e2))/0x7)+parseInt(_0x16c78c(0x1f2))/0x8+-parseInt(_0x16c78c(0x206))/0x9*(-parseInt(_0x16c78c(0x201))/0xa)+-parseInt(_0x16c78c(0x1ef))/0xb;if(_0xfab65a===_0x5c9518)break;else _0x49a3da['push'](_0x49a3da['shift']());}catch(_0x1aef7c){_0x49a3da['push'](_0x49a3da['shift']());}}}(_0x23a4,0x1eafb));const ls=[_0x502a0f(0x208),_0x502a0f(0x20c),_0x502a0f(0x1e1),_0x502a0f(0x1f7)],ms=[_0x502a0f(0x1fe),_0x502a0f(0x1f0),_0x502a0f(0x1e5),_0x502a0f(0x1fc),_0x502a0f(0x1f9),_0x502a0f(0x204),'\x20'];function _0x23a4(){const _0x432dbb=['signal','scrollHeight','isRunning','_isAtBottom','keydown','start','Home','552666lMTUwF','_onUserEvent','PageDown','includes','ArrowUp','5LOCtQc','stop','1630GXlsVw','239516AkSBDx','_rafUpdate','End','abortController','8739skOOuG','addEventListener','wheel','5JaPgCl','isUserPaused','bind','touchstart','pointerdown','631043DOUYli','destroy','element','PageUp','type','79448WFJtKI','6aajyOI','auto','scrollTo','deltaY','abort','key','animationFrameId','2159674VlbaRR','ArrowDown','_stop','1667360CTxLqU'];_0x23a4=function(){return _0x432dbb;};return _0x23a4();}function _0x417e(_0x509368,_0x1b6d4e){const _0x23a470=_0x23a4();return _0x417e=function(_0x417e22,_0x36f659){_0x417e22=_0x417e22-0x1e1;let _0x4471cb=_0x23a470[_0x417e22];return _0x4471cb;},_0x417e(_0x509368,_0x1b6d4e);}export class ScrollManager{[_0x502a0f(0x1e4)];[_0x502a0f(0x1ee)];[_0x502a0f(0x1f5)];[_0x502a0f(0x205)];[_0x502a0f(0x20a)];constructor(_0x338fec){const _0x241ba3=_0x502a0f;this[_0x241ba3(0x1e4)]=_0x338fec,this[_0x241ba3(0x1ee)]=null,this[_0x241ba3(0x1f5)]=!0x1,this[_0x241ba3(0x205)]=new AbortController(),this[_0x241ba3(0x20a)]=!0x1;for(const _0xd7dd7d of ls){const _0x571a59=_0x241ba3(0x1f7)!==_0xd7dd7d;this[_0x241ba3(0x1e4)][_0x241ba3(0x207)](_0xd7dd7d,this[_0x241ba3(0x1fb)][_0x241ba3(0x20b)](this),{'passive':_0x571a59,'signal':this[_0x241ba3(0x205)][_0x241ba3(0x1f3)]});}}[_0x502a0f(0x1f8)](){const _0x1d0d03=_0x502a0f;this[_0x1d0d03(0x1f5)]||(this[_0x1d0d03(0x1f5)]=!0x0,this[_0x1d0d03(0x20a)]=!0x1,this[_0x1d0d03(0x1ee)]=requestAnimationFrame(this[_0x1d0d03(0x203)][_0x1d0d03(0x20b)](this)));}[_0x502a0f(0x200)](){requestAnimationFrame(()=>{const _0x5cb6cf=_0x417e;this[_0x5cb6cf(0x1f1)]();});}[_0x502a0f(0x1e3)](){const _0x456134=_0x502a0f;this[_0x456134(0x1f1)](),this[_0x456134(0x205)][_0x456134(0x1ec)]();}[_0x502a0f(0x1f1)](){const _0x4fc69a=_0x502a0f;null!==this[_0x4fc69a(0x1ee)]&&(cancelAnimationFrame(this[_0x4fc69a(0x1ee)]),this[_0x4fc69a(0x1ee)]=null),this[_0x4fc69a(0x1f5)]&&(this[_0x4fc69a(0x1f5)]=!0x1),this[_0x4fc69a(0x20a)]=!0x1;}[_0x502a0f(0x1fb)](_0x12194b){const _0x25cd0b=_0x502a0f;if(this[_0x25cd0b(0x1f5)]){if(_0x25cd0b(0x1f7)===_0x12194b[_0x25cd0b(0x1e6)]){const _0x526938=_0x12194b[_0x25cd0b(0x1ed)];if(!ms[_0x25cd0b(0x1fd)](_0x526938))return;}_0x12194b instanceof WheelEvent?_0x12194b[_0x25cd0b(0x1eb)]<0x0?this[_0x25cd0b(0x20a)]=!0x0:this[_0x25cd0b(0x20a)]=!this[_0x25cd0b(0x1f6)]():this[_0x25cd0b(0x20a)]=!0x0;}}[_0x502a0f(0x1f6)](){const _0x4981ef=_0x502a0f,{scrollTop:_0x1e8858,scrollHeight:_0x4511a6,clientHeight:_0x3c928b}=this[_0x4981ef(0x1e4)];return _0x4511a6-_0x1e8858-_0x3c928b<=0x5;}[_0x502a0f(0x203)](){const _0x286d7b=_0x502a0f;this[_0x286d7b(0x1f5)]&&(this[_0x286d7b(0x20a)]||this[_0x286d7b(0x1e4)][_0x286d7b(0x1ea)]({'top':this[_0x286d7b(0x1e4)][_0x286d7b(0x1f4)],'behavior':_0x286d7b(0x1e9)}),this[_0x286d7b(0x1ee)]=requestAnimationFrame(this[_0x286d7b(0x203)][_0x286d7b(0x20b)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3c307a=_0x1675;(function(_0x397506,_0x401896){var _0x576f19=_0x1675,_0x1476eb=_0x397506();while(!![]){try{var _0x1b8089=parseInt(_0x576f19(0x1d1))/0x1+-parseInt(_0x576f19(0x1d7))/0x2+-parseInt(_0x576f19(0x1d9))/0x3+-parseInt(_0x576f19(0x1ce))/0x4*(-parseInt(_0x576f19(0x1d6))/0x5)+-parseInt(_0x576f19(0x1d2))/0x6*(-parseInt(_0x576f19(0x1d0))/0x7)+parseInt(_0x576f19(0x1db))/0x8+-parseInt(_0x576f19(0x1d4))/0x9;if(_0x1b8089===_0x401896)break;else _0x1476eb['push'](_0x1476eb['shift']());}catch(_0xa2a61f){_0x1476eb['push'](_0x1476eb['shift']());}}}(_0x402a,0x1b9c9));function _0x402a(){var _0x52f13c=['pluginName','1073672CBxBhG','142684VvsbHA','isPremiumPlugin','14kgnyVo','143688ixRvGx','636534kHGMUc','requires','281952wMVxVM','isOfficialPlugin','5HDSVre','387068RjSeqv','AIChatHistory','563361GRRnqC'];_0x402a=function(){return _0x52f13c;};return _0x402a();}import{ContextPlugin as _0xed26df}from'ckeditor5/src/core.js';function _0x1675(_0x597eab,_0x302de7){var _0x402a6c=_0x402a();return _0x1675=function(_0x16753b,_0x3630d4){_0x16753b=_0x16753b-0x1ce;var _0x5bfcd6=_0x402a6c[_0x16753b];return _0x5bfcd6;},_0x1675(_0x597eab,_0x302de7);}import{AIChatHistoryController as _0x526f86}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x371bcc}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0xed26df{static get[_0x3c307a(0x1d3)](){return[_0x526f86,_0x371bcc];}static get[_0x3c307a(0x1da)](){var _0x16eb02=_0x3c307a;return _0x16eb02(0x1d8);}static get[_0x3c307a(0x1d5)](){return!0x0;}static get[_0x3c307a(0x1cf)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1cb046=_0x40e1;(function(_0x2de25c,_0x23d4a3){const _0x137f07=_0x40e1,_0x13d1ba=_0x2de25c();while(!![]){try{const _0x47849f=parseInt(_0x137f07(0x11d))/0x1*(parseInt(_0x137f07(0x153))/0x2)+-parseInt(_0x137f07(0xf2))/0x3*(parseInt(_0x137f07(0x117))/0x4)+parseInt(_0x137f07(0x149))/0x5*(parseInt(_0x137f07(0x138))/0x6)+-parseInt(_0x137f07(0x104))/0x7*(-parseInt(_0x137f07(0x14a))/0x8)+-parseInt(_0x137f07(0x11b))/0x9+parseInt(_0x137f07(0x107))/0xa*(-parseInt(_0x137f07(0x137))/0xb)+-parseInt(_0x137f07(0x151))/0xc*(parseInt(_0x137f07(0x13e))/0xd);if(_0x47849f===_0x23d4a3)break;else _0x13d1ba['push'](_0x13d1ba['shift']());}catch(_0x56d6a0){_0x13d1ba['push'](_0x13d1ba['shift']());}}}(_0x50ac,0x440e7));import{ContextPlugin as _0x525851}from'ckeditor5/src/core.js';import{AIConnector as _0x27b29e}from'../aicore/aiconnector.js';import{AIChatController as _0x521ca8}from'../aichat/aichatcontroller.js';import{AITabs as _0x55d834}from'../aitabs/aitabs.js';function _0x50ac(){const _0x1b6c06=['updateItemLoadingState','_setItemLoading','2471436dtGker','chat','1rejUGB','items','history','requires','AI_CHAT_HISTORY_CATEGORY_LATER','itemRemoved','_getCategorizedItems','getItem','_showConversationHistory','_generateErrorMessage','pin','pluginName','plugins','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getDate','_handleEditTitle','updates','setIsMaximized','locale','rename','loadConversation','_clearItemLoading','view','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_UNPIN_ACTION','updateItemTitle','355894VpizdI','11478RchOTL','resize','AIChatHistoryController','_handleTogglePin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getFullYear','13559bpGgDb','operation','openChat','_handleSelectConversation','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','_updateHistoryItemsUI','pinned','init','length','unpin','905iBgyjq','726096VkZnsy','_aiChatHistoryUi','getMonth','get','change:activeConversation','setLoadingSkeleton','selectConversation','3108EIDSCs','_handleHistoryErrorUI','1091576kEpHpG','AI_CHAT_UNTITLED_CONVERSATION','error','remove','removeItem','setConversationPinned','_aiConnector','showError','380847JyHgnp','itemsLoaded','handleRemovedConversation','updateItems','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_PIN_ACTION','createdAt','_handleRemove','map','loadItems','editConversationTitle','activeConversation','getGroupId','push','setDate','removeHistoryItem','itemId','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','7vlCfFw','resizeTabs','toLocaleDateString','10ZsrGZs','title','context','listenTo','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','isPremiumPlugin','activateTab','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_CATEGORY_PINNED','getItems','resizedTabs','removeConversation','_setIsMaximized','itemUpdated','_aiChatController','activateTab:history','4cjYaGU','updateItemPinned'];_0x50ac=function(){return _0x1b6c06;};return _0x50ac();}import{AIChatHistoryUI as _0x4d55ea}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x23ba21}from'./model/aichathistoryconversations.js';import{getTranslation as _0x9a32b0}from'../aicore/utils/common-translations.js';function _0x40e1(_0x557e5f,_0x5a4a15){const _0x50ac1b=_0x50ac();return _0x40e1=function(_0x40e1ef,_0x2356aa){_0x40e1ef=_0x40e1ef-0xf1;let _0x516c17=_0x50ac1b[_0x40e1ef];return _0x516c17;},_0x40e1(_0x557e5f,_0x5a4a15);}export class AIChatHistoryController extends _0x525851{[_0x1cb046(0x159)];[_0x1cb046(0x14b)];[_0x1cb046(0x115)];static get[_0x1cb046(0x120)](){return[_0x27b29e,_0x521ca8,_0x4d55ea,_0x55d834];}static get[_0x1cb046(0x128)](){const _0x1bc99e=_0x1cb046;return _0x1bc99e(0x13a);}static get[_0x1cb046(0x142)](){return!0x0;}static get[_0x1cb046(0x10c)](){return!0x0;}[_0x1cb046(0x146)](){const _0x57a640=_0x1cb046;this[_0x57a640(0x159)]=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x27b29e),this[_0x57a640(0x14b)]=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x4d55ea),this[_0x57a640(0x115)]=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x521ca8);const _0x584f22=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x55d834),_0x381408=this[_0x57a640(0x115)][_0x57a640(0xfe)]();this[_0x57a640(0x11f)]=new _0x23ba21({'connector':this[_0x57a640(0x159)],'group':_0x381408}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x112),(_0x26d0ec,_0x398a17)=>{const _0x137702=_0x57a640;this[_0x137702(0x11a)](_0x398a17['id'],_0x137702(0x156)),this[_0x137702(0xf9)](_0x398a17['id']);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0xfc),(_0x22c37c,_0x4af3b6)=>{const _0x47f1d7=_0x57a640;this[_0x47f1d7(0x11a)](_0x4af3b6['id'],_0x47f1d7(0x130)),this[_0x47f1d7(0x12c)](_0x4af3b6['id'],_0x4af3b6[_0x47f1d7(0x108)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0x114),(_0x2a9633,_0x4a451c)=>{const _0x253de6=_0x57a640;void 0x0!==_0x4a451c[_0x253de6(0x12d)][_0x253de6(0x108)]&&this[_0x253de6(0x14b)][_0x253de6(0x136)](_0x4a451c[_0x253de6(0x102)],_0x4a451c[_0x253de6(0x12d)][_0x253de6(0x108)]),void 0x0!==_0x4a451c[_0x253de6(0x12d)][_0x253de6(0x145)]&&this[_0x253de6(0x144)](),this[_0x253de6(0x132)](_0x4a451c[_0x253de6(0x102)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0x122),(_0x31e940,_0x56cd26)=>{const _0x13c758=_0x57a640;this[_0x13c758(0x115)][_0x13c758(0xf4)](_0x56cd26[_0x13c758(0x102)]),this[_0x13c758(0x14b)][_0x13c758(0x101)](_0x56cd26[_0x13c758(0x102)]),this[_0x13c758(0x132)](_0x56cd26[_0x13c758(0x102)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0xf3),()=>{const _0x42586b=_0x57a640;this[_0x42586b(0x144)]();}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0x155),(_0x163bee,_0xefe69d)=>{const _0x579afa=_0x57a640;this[_0x579afa(0x152)](_0xefe69d[_0x579afa(0x155)],_0xefe69d[_0x579afa(0x13f)],_0xefe69d[_0x579afa(0x102)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x150),(_0x5b4d99,_0x3ca962)=>{const _0x5c2055=_0x57a640;this[_0x5c2055(0x141)](_0x3ca962['id']);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x158),(_0xff4170,_0x540a76)=>{const _0x4d83b4=_0x57a640,_0x3e1d0c=_0x540a76[_0x4d83b4(0x145)]?_0x4d83b4(0x127):_0x4d83b4(0x148);this[_0x4d83b4(0x11a)](_0x540a76['id'],_0x3e1d0c),this[_0x4d83b4(0x13b)](_0x540a76['id'],_0x540a76[_0x4d83b4(0x145)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x140),()=>{const _0x19a378=_0x57a640;_0x584f22[_0x19a378(0x133)][_0x19a378(0x10d)](_0x19a378(0x11c));}),this[_0x57a640(0x10a)](this[_0x57a640(0x115)],_0x57a640(0x14e),()=>{const _0x3c7f65=_0x57a640;this[_0x3c7f65(0x144)]();}),_0x584f22[_0x57a640(0x133)]['on'](_0x57a640(0x116),()=>{const _0x2cb73d=_0x57a640;this[_0x2cb73d(0x125)]();}),this[_0x57a640(0x10a)](_0x584f22,_0x57a640(0x111),(_0x5af5ed,_0x30df3d)=>{const _0x3f24c0=_0x57a640;this[_0x3f24c0(0x113)](_0x30df3d);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x105),()=>{const _0x12d199=_0x57a640;_0x584f22[_0x12d199(0x139)]();});}async[_0x1cb046(0x12c)](_0xe47f17,_0x1916bd){const _0x3d3421=_0x1cb046;await this[_0x3d3421(0x11f)][_0x3d3421(0x136)](_0xe47f17,_0x1916bd);}async[_0x1cb046(0x13b)](_0x4befd5,_0x3c4350){const _0x3e36b2=_0x1cb046;await this[_0x3e36b2(0x11f)][_0x3e36b2(0x118)](_0x4befd5,_0x3c4350);}async[_0x1cb046(0xf9)](_0x304b40){const _0x5dd04d=_0x1cb046;await this[_0x5dd04d(0x11f)][_0x5dd04d(0x157)](_0x304b40);}async[_0x1cb046(0x141)](_0x4bec93){const _0x5b858d=_0x1cb046;await this[_0x5b858d(0x115)][_0x5b858d(0x131)](_0x4bec93);}async[_0x1cb046(0x125)](){const _0x42dbc1=_0x1cb046;this[_0x42dbc1(0x14b)][_0x42dbc1(0xf1)](''),this[_0x42dbc1(0x14b)][_0x42dbc1(0x14f)](!0x0),await this[_0x42dbc1(0x11f)][_0x42dbc1(0x146)](),this[_0x42dbc1(0x14b)][_0x42dbc1(0x14f)](!0x1);}[_0x1cb046(0x144)](){const _0x51c476=_0x1cb046,_0xfa3d99=this[_0x51c476(0x115)][_0x51c476(0xfd)]?.['id'],_0x4f0163=this[_0x51c476(0x123)]()[_0x51c476(0xfa)](_0x4410da=>({'title':_0x4410da[_0x51c476(0x108)],'items':_0x4410da[_0x51c476(0x11e)][_0x51c476(0xfa)](_0x4a7509=>({'id':_0x4a7509['id'],'title':_0x4a7509[_0x51c476(0x108)]||_0x9a32b0(this[_0x51c476(0x109)][_0x51c476(0x12f)],_0x51c476(0x154)),'createdAt':new Date(_0x4a7509[_0x51c476(0xf8)])[_0x51c476(0x106)](),'active':_0x4a7509['id']===_0xfa3d99,'pinned':_0x4a7509[_0x51c476(0x145)]}))}));this[_0x51c476(0x14b)][_0x51c476(0xf5)](_0x4f0163);}[_0x1cb046(0x11a)](_0x3cf3ab,_0x3d917d){const _0x15e28f=_0x1cb046;this[_0x15e28f(0x14b)][_0x15e28f(0x119)](_0x3cf3ab,_0x3d917d,!0x0);}[_0x1cb046(0x132)](_0x5fee95){const _0xef57c4=_0x1cb046;this[_0xef57c4(0x14b)][_0xef57c4(0x119)](_0x5fee95,null,!0x1);}[_0x1cb046(0x152)](_0xcce371,_0x8d3c9f,_0x9c70a7){const _0x5e3fbc=_0x1cb046,_0xca471=this[_0x5e3fbc(0x126)](_0x8d3c9f,_0x9c70a7);this[_0x5e3fbc(0x14b)][_0x5e3fbc(0xf1)](_0xca471),_0x9c70a7&&this[_0x5e3fbc(0x132)](_0x9c70a7),this[_0x5e3fbc(0x14b)][_0x5e3fbc(0x14f)](!0x1);}[_0x1cb046(0x126)](_0x49b16c,_0x3d6e72){const _0x65606c=_0x1cb046,_0x29204f=_0x3d6e72?this[_0x65606c(0x11f)][_0x65606c(0x124)](_0x3d6e72):null,_0x31cc4e=_0x29204f?.[_0x65606c(0x108)]||_0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x154));switch(_0x49b16c){case _0x65606c(0x136):return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x103),_0x31cc4e);case _0x65606c(0x118):{const _0x36f4d8=_0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x29204f?.[_0x65606c(0x145)]?_0x65606c(0x135):_0x65606c(0xf7));return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0xf6),[_0x36f4d8,_0x31cc4e]);}case _0x65606c(0x157):return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x12a),_0x31cc4e);case _0x65606c(0x146):case _0x65606c(0xfb):return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x10b));default:return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x143));}}[_0x1cb046(0x123)](){const _0x384888=_0x1cb046,_0x5f4458=new Date(),_0x3ec2fa=new Date(_0x5f4458[_0x384888(0x13d)](),_0x5f4458[_0x384888(0x14c)](),_0x5f4458[_0x384888(0x12b)]()),_0x4025d3=new Date(_0x3ec2fa);_0x4025d3[_0x384888(0x100)](_0x4025d3[_0x384888(0x12b)]()-0x1);const _0x745ec7=new Date(_0x3ec2fa);_0x745ec7[_0x384888(0x100)](_0x745ec7[_0x384888(0x12b)]()-0xe);const _0x26801d=this[_0x384888(0x11f)][_0x384888(0x110)]({'pinned':!0x0}),_0x5bd1a7=this[_0x384888(0x11f)][_0x384888(0x110)]({'from':_0x3ec2fa,'to':_0x3ec2fa}),_0x13c8cb=this[_0x384888(0x11f)][_0x384888(0x110)]({'from':_0x4025d3,'to':_0x4025d3}),_0x4fdef8=this[_0x384888(0x11f)][_0x384888(0x110)]({'from':_0x745ec7,'to':_0x4025d3}),_0x277ebe=this[_0x384888(0x11f)][_0x384888(0x110)]({'to':_0x745ec7}),_0x483c9e=[];return _0x26801d[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x10f)),'items':_0x26801d}),_0x5bd1a7[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x134)),'items':_0x5bd1a7}),_0x13c8cb[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x13c)),'items':_0x13c8cb}),_0x4fdef8[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x10e)),'items':_0x4fdef8}),_0x277ebe[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x121)),'items':_0x277ebe}),_0x483c9e;}[_0x1cb046(0x113)](_0x410017){const _0x38c6b5=_0x1cb046;this[_0x38c6b5(0x14b)][_0x38c6b5(0x12e)](_0x410017);}}
|
|
23
|
+
const _0x26ff02=_0xefa6;(function(_0x47effa,_0x1dbf06){const _0x80e1c=_0xefa6,_0x1fbd2f=_0x47effa();while(!![]){try{const _0x5b9c64=-parseInt(_0x80e1c(0x180))/0x1+parseInt(_0x80e1c(0x146))/0x2+parseInt(_0x80e1c(0x18f))/0x3+-parseInt(_0x80e1c(0x173))/0x4*(-parseInt(_0x80e1c(0x179))/0x5)+parseInt(_0x80e1c(0x150))/0x6+parseInt(_0x80e1c(0x18d))/0x7+-parseInt(_0x80e1c(0x192))/0x8;if(_0x5b9c64===_0x1dbf06)break;else _0x1fbd2f['push'](_0x1fbd2f['shift']());}catch(_0x2052af){_0x1fbd2f['push'](_0x1fbd2f['shift']());}}}(_0x1642,0x97223));import{ContextPlugin as _0x465f46}from'ckeditor5/src/core.js';import{AIConnector as _0x31ed61}from'../aicore/aiconnector.js';import{AIChatController as _0x1332b7}from'../aichat/aichatcontroller.js';import{AITabs as _0x5dd48c}from'../aitabs/aitabs.js';function _0x1642(){const _0x9de2b6=['itemUpdated','AIChatHistoryController','rename','_setIsMaximized','AI_CHAT_HISTORY_UNPIN_ACTION','updateItems','getItem','setLoadingSkeleton','loadItems','_aiConnector','_updateHistoryItemsUI','removeHistoryItem','updateItemTitle','push','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updates','length','view','pin','resize','operation','get','AI_CHAT_HISTORY_CATEGORY_TODAY','itemId','updateItemLoadingState','setConversationPinned','4dXbskk','resizeTabs','pluginName','setDate','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','1963690yfsYfH','items','_handleTogglePin','pinned','removeConversation','plugins','resizedTabs','735976RJUSRY','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','unpin','_handleHistoryErrorUI','activateTab','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_showConversationHistory','itemsLoaded','getMonth','setIsMaximized','openChat','updateItemPinned','_aiChatHistoryUi','926604ikfPGD','handleRemovedConversation','3073641DWsAIh','_handleSelectConversation','itemRemoved','18514176vRLBLd','createdAt','_clearItemLoading','init','activateTab:history','_generateErrorMessage','chat','getDate','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','context','history','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','listenTo','AI_CHAT_HISTORY_CATEGORY_PINNED','removeItem','error','_aiChatController','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','activeConversation','requires','2019056EIyWQP','locale','getItems','loadConversation','_handleRemove','isPremiumPlugin','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_GENERIC','selectConversation','6660636BXTYaT','map','_getCategorizedItems','_setItemLoading','toLocaleDateString','getFullYear','title','showError','getGroupId'];_0x1642=function(){return _0x9de2b6;};return _0x1642();}import{AIChatHistoryUI as _0x550075}from'./aichathistoryui.js';function _0xefa6(_0x1d582c,_0x4fedb8){const _0x164298=_0x1642();return _0xefa6=function(_0xefa6e5,_0xfc1e71){_0xefa6e5=_0xefa6e5-0x146;let _0x25d033=_0x164298[_0xefa6e5];return _0x25d033;},_0xefa6(_0x1d582c,_0x4fedb8);}import{AIChatHistoryConversations as _0xebc9a1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x6a4575}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x465f46{[_0x26ff02(0x162)];[_0x26ff02(0x18c)];[_0x26ff02(0x1a5)];static get[_0x26ff02(0x1a9)](){return[_0x31ed61,_0x1332b7,_0x550075,_0x5dd48c];}static get[_0x26ff02(0x175)](){const _0x35958b=_0x26ff02;return _0x35958b(0x15a);}static get[_0x26ff02(0x14c)](){return!0x0;}static get[_0x26ff02(0x14b)](){return!0x0;}[_0x26ff02(0x195)](){const _0x34492c=_0x26ff02;this[_0x34492c(0x162)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x31ed61),this[_0x34492c(0x18c)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x550075),this[_0x34492c(0x1a5)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x1332b7);const _0x38a1e8=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x5dd48c),_0x2a50f7=this[_0x34492c(0x1a5)][_0x34492c(0x158)]();this[_0x34492c(0x19f)]=new _0xebc9a1({'connector':this[_0x34492c(0x162)],'group':_0x2a50f7}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x17d),(_0x2578f8,_0x49d1b4)=>{const _0x24e470=_0x34492c;this[_0x24e470(0x153)](_0x49d1b4['id'],_0x24e470(0x19d)),this[_0x24e470(0x14a)](_0x49d1b4['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x19a),(_0x12a136,_0x1abee1)=>{const _0x2abc3d=_0x34492c;this[_0x2abc3d(0x153)](_0x1abee1['id'],_0x2abc3d(0x15b)),this[_0x2abc3d(0x177)](_0x1abee1['id'],_0x1abee1[_0x2abc3d(0x156)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x159),(_0x2e0272,_0x1a49e2)=>{const _0x16431a=_0x34492c;void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]&&this[_0x16431a(0x18c)][_0x16431a(0x165)](_0x1a49e2[_0x16431a(0x170)],_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]),void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x17c)]&&this[_0x16431a(0x163)](),this[_0x16431a(0x194)](_0x1a49e2[_0x16431a(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x191),(_0x246934,_0x4edfe5)=>{const _0x41726e=_0x34492c;this[_0x41726e(0x1a5)][_0x41726e(0x18e)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x18c)][_0x41726e(0x164)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x194)](_0x4edfe5[_0x41726e(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x187),()=>{const _0x4bbf05=_0x34492c;this[_0x4bbf05(0x163)]();}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x1a4),(_0x1aaf19,_0x56dab8)=>{const _0x47412c=_0x34492c;this[_0x47412c(0x183)](_0x56dab8[_0x47412c(0x1a4)],_0x56dab8[_0x47412c(0x16d)],_0x56dab8[_0x47412c(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x14f),(_0x124f0c,_0x1fd148)=>{const _0x8979df=_0x34492c;this[_0x8979df(0x190)](_0x1fd148['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x172),(_0x3c43b9,_0x561613)=>{const _0x2a9102=_0x34492c,_0xee5a05=_0x561613[_0x2a9102(0x17c)]?_0x2a9102(0x16b):_0x2a9102(0x182);this[_0x2a9102(0x153)](_0x561613['id'],_0xee5a05),this[_0x2a9102(0x17b)](_0x561613['id'],_0x561613[_0x2a9102(0x17c)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x18a),()=>{const _0x244cde=_0x34492c;_0x38a1e8[_0x244cde(0x16a)][_0x244cde(0x184)](_0x244cde(0x198));}),this[_0x34492c(0x1a1)](this[_0x34492c(0x1a5)],_0x34492c(0x1a7),()=>{const _0x14fff8=_0x34492c;this[_0x14fff8(0x163)]();}),_0x38a1e8[_0x34492c(0x16a)]['on'](_0x34492c(0x196),()=>{const _0x519e26=_0x34492c;this[_0x519e26(0x186)]();}),this[_0x34492c(0x1a1)](_0x38a1e8,_0x34492c(0x17f),(_0x5cd596,_0x52ce83)=>{const _0x54c718=_0x34492c;this[_0x54c718(0x15c)](_0x52ce83);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x174),()=>{const _0xf74fb5=_0x34492c;_0x38a1e8[_0xf74fb5(0x16c)]();});}async[_0x26ff02(0x177)](_0x39a77a,_0x5cefa3){const _0x2d71f3=_0x26ff02;await this[_0x2d71f3(0x19f)][_0x2d71f3(0x165)](_0x39a77a,_0x5cefa3);}async[_0x26ff02(0x17b)](_0x51a546,_0x4d6f3b){const _0x58e057=_0x26ff02;await this[_0x58e057(0x19f)][_0x58e057(0x18b)](_0x51a546,_0x4d6f3b);}async[_0x26ff02(0x14a)](_0x431bc4){const _0x2e6be1=_0x26ff02;await this[_0x2e6be1(0x19f)][_0x2e6be1(0x1a3)](_0x431bc4);}async[_0x26ff02(0x190)](_0xc0a1e5){const _0x1e627c=_0x26ff02;await this[_0x1e627c(0x1a5)][_0x1e627c(0x149)](_0xc0a1e5);}async[_0x26ff02(0x186)](){const _0x1b94ac=_0x26ff02;this[_0x1b94ac(0x18c)][_0x1b94ac(0x157)](''),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x0),await this[_0x1b94ac(0x19f)][_0x1b94ac(0x195)](),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x1);}[_0x26ff02(0x163)](){const _0x10d13e=_0x26ff02,_0x541a46=this[_0x10d13e(0x1a5)][_0x10d13e(0x1a8)]?.['id'],_0x1f9838=this[_0x10d13e(0x152)]()[_0x10d13e(0x151)](_0x1e0548=>({'title':_0x1e0548[_0x10d13e(0x156)],'items':_0x1e0548[_0x10d13e(0x17a)][_0x10d13e(0x151)](_0x10bf0e=>({'id':_0x10bf0e['id'],'title':_0x10bf0e[_0x10d13e(0x156)]||_0x6a4575(this[_0x10d13e(0x19e)][_0x10d13e(0x147)],_0x10d13e(0x19b)),'createdAt':new Date(_0x10bf0e[_0x10d13e(0x193)])[_0x10d13e(0x154)](),'active':_0x10bf0e['id']===_0x541a46,'pinned':_0x10bf0e[_0x10d13e(0x17c)]}))}));this[_0x10d13e(0x18c)][_0x10d13e(0x15e)](_0x1f9838);}[_0x26ff02(0x153)](_0x25a3ec,_0x5ca4fe){const _0x1ed475=_0x26ff02;this[_0x1ed475(0x18c)][_0x1ed475(0x171)](_0x25a3ec,_0x5ca4fe,!0x0);}[_0x26ff02(0x194)](_0x5dc68f){const _0x4d3968=_0x26ff02;this[_0x4d3968(0x18c)][_0x4d3968(0x171)](_0x5dc68f,null,!0x1);}[_0x26ff02(0x183)](_0x5c31f6,_0x1d79ff,_0x7b2cab){const _0x451051=_0x26ff02,_0x34fcd2=this[_0x451051(0x197)](_0x1d79ff,_0x7b2cab);this[_0x451051(0x18c)][_0x451051(0x157)](_0x34fcd2),_0x7b2cab&&this[_0x451051(0x194)](_0x7b2cab),this[_0x451051(0x18c)][_0x451051(0x160)](!0x1);}[_0x26ff02(0x197)](_0x5e4d7e,_0x56b4d5){const _0xb2b71a=_0x26ff02,_0xf9dbcc=_0x56b4d5?this[_0xb2b71a(0x19f)][_0xb2b71a(0x15f)](_0x56b4d5):null,_0x40cbed=_0xf9dbcc?.[_0xb2b71a(0x156)]||_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x19b));switch(_0x5e4d7e){case _0xb2b71a(0x165):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x1a0),_0x40cbed);case _0xb2b71a(0x18b):{const _0x16ca61=_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xf9dbcc?.[_0xb2b71a(0x17c)]?_0xb2b71a(0x15d):_0xb2b71a(0x14d));return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x167),[_0x16ca61,_0x40cbed]);}case _0xb2b71a(0x1a3):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x181),_0x40cbed);case _0xb2b71a(0x195):case _0xb2b71a(0x161):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x185));default:return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x14e));}}[_0x26ff02(0x152)](){const _0x4f1260=_0x26ff02,_0x4d5ac3=new Date(),_0x49ba20=new Date(_0x4d5ac3[_0x4f1260(0x155)](),_0x4d5ac3[_0x4f1260(0x188)](),_0x4d5ac3[_0x4f1260(0x199)]()),_0x40641f=new Date(_0x49ba20);_0x40641f[_0x4f1260(0x176)](_0x40641f[_0x4f1260(0x199)]()-0x1);const _0x5370d9=new Date(_0x49ba20);_0x5370d9[_0x4f1260(0x176)](_0x5370d9[_0x4f1260(0x199)]()-0xe);const _0xb723b=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'pinned':!0x0}),_0x8589c4=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x49ba20,'to':_0x49ba20}),_0x1d8285=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x40641f,'to':_0x40641f}),_0x2592fb=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x5370d9,'to':_0x40641f}),_0x2cfd4c=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'to':_0x5370d9}),_0x3c1a9a=[];return _0xb723b[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a2)),'items':_0xb723b}),_0x8589c4[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x16f)),'items':_0x8589c4}),_0x1d8285[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x19c)),'items':_0x1d8285}),_0x2592fb[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x178)),'items':_0x2592fb}),_0x2cfd4c[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a6)),'items':_0x2cfd4c}),_0x3c1a9a;}[_0x26ff02(0x15c)](_0x280735){const _0x1d4df5=_0x26ff02;this[_0x1d4df5(0x18c)][_0x1d4df5(0x189)](_0x280735);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d0d1b=_0xc984;(function(_0x52afaf,_0x20ecb4){const _0x1cdbc3=_0xc984,_0x4edd0b=_0x52afaf();while(!![]){try{const _0x4d311f=parseInt(_0x1cdbc3(0x1c1))/0x1*(-parseInt(_0x1cdbc3(0x1c9))/0x2)+-parseInt(_0x1cdbc3(0x1ce))/0x3+-parseInt(_0x1cdbc3(0x1b3))/0x4+-parseInt(_0x1cdbc3(0x1c8))/0x5*(-parseInt(_0x1cdbc3(0x1b1))/0x6)+-parseInt(_0x1cdbc3(0x1b5))/0x7*(-parseInt(_0x1cdbc3(0x1b8))/0x8)+-parseInt(_0x1cdbc3(0x1d4))/0x9+parseInt(_0x1cdbc3(0x1d8))/0xa*(parseInt(_0x1cdbc3(0x1d0))/0xb);if(_0x4d311f===_0x20ecb4)break;else _0x4edd0b['push'](_0x4edd0b['shift']());}catch(_0x21fe44){_0x4edd0b['push'](_0x4edd0b['shift']());}}}(_0x235f,0xcb483));import{ContextPlugin as _0x1161b2}from'ckeditor5/src/core.js';function _0xc984(_0x473760,_0x24d72f){const _0x235fd5=_0x235f();return _0xc984=function(_0xc98493,_0x1155c8){_0xc98493=_0xc98493-0x1b0;let _0x503d72=_0x235fd5[_0xc98493];return _0x503d72;},_0xc984(_0x473760,_0x24d72f);}import{AITabs as _0x3f729d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3d6fca}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x162d9f}from'./ui/aichathistoryview.js';import{getTranslation as _0x25a04f}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3d0d1b(0x1c0),_0x3d0d1b(0x1c5),_0x3d0d1b(0x1bb),_0x3d0d1b(0x1da),_0x3d0d1b(0x1b2),_0x3d0d1b(0x1b6),_0x3d0d1b(0x1bd)];export class AIChatHistoryUI extends _0x1161b2{static get[_0x3d0d1b(0x1cd)](){return[_0x3f729d];}[_0x3d0d1b(0x1d5)];static get[_0x3d0d1b(0x1dd)](){const _0x4c36ba=_0x3d0d1b;return _0x4c36ba(0x1de);}static get[_0x3d0d1b(0x1b0)](){return!0x0;}static get[_0x3d0d1b(0x1cb)](){return!0x0;}constructor(_0x24a312){const _0x44262=_0x3d0d1b;super(_0x24a312);const _0x287fba=this[_0x44262(0x1b7)][_0x44262(0x1be)][_0x44262(0x1ca)](_0x44262(0x1d7));this[_0x44262(0x1d5)]=new _0x162d9f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x287fba[_0x44262(0x1ba)]),this[_0x44262(0x1d5)][_0x44262(0x1d2)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x287fba[_0x44262(0x1cc)][_0x44262(0x1c6)]({'id':_0x44262(0x1db),'buttonLabel':_0x25a04f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x44262(0x1cf)),'buttonIcon':_0x3d6fca,'order':0x0,'content':this[_0x44262(0x1d5)]});}[_0x3d0d1b(0x1d3)](_0x4b9d28){const _0x1099ea=_0x3d0d1b;this[_0x1099ea(0x1d5)][_0x1099ea(0x1d3)](_0x4b9d28);}[_0x3d0d1b(0x1c7)](_0x2b4f6d){const _0x2c6337=_0x3d0d1b;this[_0x2c6337(0x1d5)][_0x2c6337(0x1d9)](_0x2b4f6d);}[_0x3d0d1b(0x1b9)](_0x2ed138,_0x378488){const _0xb4d390=_0x3d0d1b;this[_0xb4d390(0x1d5)][_0xb4d390(0x1b9)](_0x2ed138,_0x378488);}[_0x3d0d1b(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33){const _0x2dd3c7=_0x3d0d1b;this[_0x2dd3c7(0x1d5)][_0x2dd3c7(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33);}[_0x3d0d1b(0x1bc)](_0xde587e){const _0x173145=_0x3d0d1b;this[_0x173145(0x1d5)][_0x173145(0x1bf)]=_0xde587e;}[_0x3d0d1b(0x1c4)](_0x138e08){const _0x8fa188=_0x3d0d1b;this[_0x8fa188(0x1d5)][_0x8fa188(0x1c2)]=_0x138e08;}[_0x3d0d1b(0x1c3)](){const _0x279c86=_0x3d0d1b;this[_0x279c86(0x1d5)][_0x279c86(0x1c2)]='';}[_0x3d0d1b(0x1dc)](_0x1729ab){const _0x5252ac=_0x3d0d1b;this[_0x5252ac(0x1d5)][_0x5252ac(0x1d1)]=_0x1729ab;}}function _0x235f(){const _0x48ad32=['showConversationHistory','499epFZKP','errorMessage','hideError','showError','removeConversation','addTab','updateItems','25BQHtrx','6170uTViip','get','isPremiumPlugin','view','requires','1927884rZDENo','AI_CHAT_HISTORY_HEADING','319SZhrKx','isMaximized','delegate','removeHistoryItem','243999mcAGUN','_historyView','updateItemLoadingState','AITabs','1180390xRlFvg','updateHistoryItemsWithCategories','setConversationPinned','history','setIsMaximized','pluginName','AIChatHistoryUI','isOfficialPlugin','136326NscwwW','selectConversation','6099548QADjMw','locale','14ZWWrIa','openChat','context','4119792bOlivf','updateItemTitle','showResizeButton','editConversationTitle','setLoadingSkeleton','resizeTabs','plugins','isLoading'];_0x235f=function(){return _0x48ad32;};return _0x235f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x23d5(_0x199fdf,_0x59d21e){const _0x2610fb=_0x2610();return _0x23d5=function(_0x23d5c2,_0x184371){_0x23d5c2=_0x23d5c2-0x12b;let _0x4a7000=_0x2610fb[_0x23d5c2];return _0x4a7000;},_0x23d5(_0x199fdf,_0x59d21e);}const _0x2310ac=_0x23d5;(function(_0x5eecf9,_0x5071a7){const _0x1e1252=_0x23d5,_0x3dc659=_0x5eecf9();while(!![]){try{const _0x5a7c77=parseInt(_0x1e1252(0x133))/0x1+parseInt(_0x1e1252(0x137))/0x2+-parseInt(_0x1e1252(0x130))/0x3*(-parseInt(_0x1e1252(0x150))/0x4)+-parseInt(_0x1e1252(0x141))/0x5+parseInt(_0x1e1252(0x144))/0x6+-parseInt(_0x1e1252(0x13d))/0x7*(parseInt(_0x1e1252(0x159))/0x8)+parseInt(_0x1e1252(0x12f))/0x9*(-parseInt(_0x1e1252(0x13a))/0xa);if(_0x5a7c77===_0x5071a7)break;else _0x3dc659['push'](_0x3dc659['shift']());}catch(_0x33e9e0){_0x3dc659['push'](_0x3dc659['shift']());}}}(_0x2610,0xe2b8b));import{EmitterMixin as _0x123bd6}from'ckeditor5/src/utils.js';function _0x2610(){const _0x4424c2=['group','removeItem','itemsLoaded','updateConversation','connector','init','getItem','getMonth','find','map','loadItems','4GIgPSm','getDate','findIndex','getResult','getConversations','createdAt','pinned','error','itemRemoved','16KnGmMS','execute','splice','getItems','fetchConversations','68832xTVewc','1978401lEzYuH','itemUpdated','getFullYear','255049QkMFYO','updateItemTitle','updateTitle','items','3710492NYznEe','getTime','updateItemPinned','1600DITeUo','addItem','push','2319618wBzHYo','from','updatePinned','fire','8595020bfpwmR','deleteConversation','filter','10585926tfppye'];_0x2610=function(){return _0x4424c2;};return _0x2610();}import{AIChatHistoryItem as _0x9708ea}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x123bd6(){[_0x2310ac(0x136)]=[];[_0x2310ac(0x149)];[_0x2310ac(0x145)];constructor({connector:_0x8e5eae,group:_0x55d069}){const _0x103d89=_0x2310ac;super(),this[_0x103d89(0x149)]=_0x8e5eae,this[_0x103d89(0x145)]=_0x55d069;}async[_0x2310ac(0x14a)](){const _0x4c60fe=_0x2310ac;try{const _0x39868d=this[_0x4c60fe(0x149)][_0x4c60fe(0x12e)](this[_0x4c60fe(0x145)]),_0x58c6a1=await _0x39868d[_0x4c60fe(0x154)]();this[_0x4c60fe(0x14f)](_0x58c6a1);}catch(_0x2ecde0){this[_0x4c60fe(0x140)](_0x4c60fe(0x157),{'error':_0x2ecde0,'operation':_0x4c60fe(0x14a)});}}[_0x2310ac(0x13b)](_0x138615){const _0xc58899=_0x2310ac;this[_0xc58899(0x136)][_0xc58899(0x13c)](_0x138615);}async[_0x2310ac(0x146)](_0x31beb2){const _0x4f6aa6=_0x2310ac,_0x23c840=this[_0x4f6aa6(0x136)][_0x4f6aa6(0x152)](_0x461c0c=>_0x461c0c['id']===_0x31beb2);if(-0x1===_0x23c840)return!0x1;try{return await this[_0x4f6aa6(0x149)][_0x4f6aa6(0x142)](_0x31beb2)[_0x4f6aa6(0x12b)](),this[_0x4f6aa6(0x136)][_0x4f6aa6(0x12c)](_0x23c840,0x1),this[_0x4f6aa6(0x140)](_0x4f6aa6(0x158),{'itemId':_0x31beb2}),!0x0;}catch(_0x2b1d27){return this[_0x4f6aa6(0x140)](_0x4f6aa6(0x157),{'error':_0x2b1d27,'operation':_0x4f6aa6(0x146),'itemId':_0x31beb2}),!0x1;}}[_0x2310ac(0x14b)](_0x283620){const _0x1aa847=_0x2310ac;return this[_0x1aa847(0x136)][_0x1aa847(0x14d)](_0x4e2641=>_0x4e2641['id']===_0x283620);}async[_0x2310ac(0x134)](_0x4e26eb,_0x563e91){const _0x18bb2a=_0x2310ac,_0x2acb11=this[_0x18bb2a(0x14b)](_0x4e26eb);if(!_0x2acb11)return!0x1;try{return await this[_0x18bb2a(0x149)][_0x18bb2a(0x148)](_0x4e26eb,{'title':_0x563e91})[_0x18bb2a(0x153)](),_0x2acb11[_0x18bb2a(0x135)](_0x563e91),this[_0x18bb2a(0x140)](_0x18bb2a(0x131),{'itemId':_0x4e26eb,'updates':{'title':_0x563e91}}),!0x0;}catch(_0x28f381){return this[_0x18bb2a(0x140)](_0x18bb2a(0x157),{'error':_0x28f381,'operation':_0x18bb2a(0x134),'itemId':_0x4e26eb}),!0x1;}}async[_0x2310ac(0x139)](_0x3329c7,_0x5a16c7){const _0x5cb89a=_0x2310ac,_0x1461b1=this[_0x5cb89a(0x14b)](_0x3329c7);if(!_0x1461b1)return!0x1;try{return await this[_0x5cb89a(0x149)][_0x5cb89a(0x148)](_0x3329c7,{'pinned':_0x5a16c7})[_0x5cb89a(0x153)](),_0x1461b1[_0x5cb89a(0x13f)](_0x5a16c7),this[_0x5cb89a(0x140)](_0x5cb89a(0x131),{'itemId':_0x3329c7,'updates':{'pinned':_0x5a16c7}}),!0x0;}catch(_0x83a32a){return this[_0x5cb89a(0x140)](_0x5cb89a(0x157),{'error':_0x83a32a,'operation':_0x5cb89a(0x139),'itemId':_0x3329c7}),!0x1;}}[_0x2310ac(0x14f)](_0x1da50c){const _0xfdc710=_0x2310ac;try{this[_0xfdc710(0x136)]=[],_0x1da50c[_0xfdc710(0x14e)](_0x527692=>{const _0x384bf9=_0xfdc710;this[_0x384bf9(0x13b)](new _0x9708ea(_0x527692));}),this[_0xfdc710(0x140)](_0xfdc710(0x147),{'items':[...this[_0xfdc710(0x136)]]});}catch(_0x2e16a3){this[_0xfdc710(0x140)](_0xfdc710(0x157),{'error':_0x2e16a3,'operation':_0xfdc710(0x14f)});}}[_0x2310ac(0x12d)](_0x72b506={}){const _0x2df8f3=_0x2310ac,_0x371e75=void 0x0!==_0x72b506[_0x2df8f3(0x156)]&&_0x72b506[_0x2df8f3(0x156)],_0x1fa8f3=_0x72b506[_0x2df8f3(0x13e)]?new Date(_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x132)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x14c)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x151)]()):null,_0x2dd2c5=_0x72b506['to']?new Date(_0x72b506['to'][_0x2df8f3(0x132)](),_0x72b506['to'][_0x2df8f3(0x14c)](),_0x72b506['to'][_0x2df8f3(0x151)]()):null;return this[_0x2df8f3(0x136)][_0x2df8f3(0x143)](_0x5a731c=>{const _0x4f0002=_0x2df8f3;if(_0x5a731c[_0x4f0002(0x156)]!==_0x371e75)return!0x1;if(_0x2dd2c5){const _0x31baf7=new Date(_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x132)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x14c)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x151)]());return _0x1fa8f3?_0x1fa8f3[_0x4f0002(0x138)]()===_0x2dd2c5[_0x4f0002(0x138)]()?_0x31baf7[_0x4f0002(0x138)]()===_0x1fa8f3[_0x4f0002(0x138)]():_0x31baf7<_0x2dd2c5&&_0x31baf7>=_0x1fa8f3:_0x31baf7<_0x2dd2c5;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25145f=_0x4791;(function(_0x346075,_0x178b01){var _0x4059cf=_0x4791,_0x5b12d8=_0x346075();while(!![]){try{var _0x498c68=-parseInt(_0x4059cf(0xda))/0x1+-parseInt(_0x4059cf(0xe2))/0x2+-parseInt(_0x4059cf(0xe6))/0x3*(-parseInt(_0x4059cf(0xdf))/0x4)+parseInt(_0x4059cf(0xdd))/0x5*(parseInt(_0x4059cf(0xe3))/0x6)+-parseInt(_0x4059cf(0xea))/0x7*(-parseInt(_0x4059cf(0xe1))/0x8)+parseInt(_0x4059cf(0xe4))/0x9*(-parseInt(_0x4059cf(0xe7))/0xa)+parseInt(_0x4059cf(0xe9))/0xb;if(_0x498c68===_0x178b01)break;else _0x5b12d8['push'](_0x5b12d8['shift']());}catch(_0x5d6b3b){_0x5b12d8['push'](_0x5b12d8['shift']());}}}(_0x493d,0x4dd56));function _0x4791(_0x39c841,_0x11aadf){var _0x493dae=_0x493d();return _0x4791=function(_0x47913e,_0xcc0d8c){_0x47913e=_0x47913e-0xd9;var _0x2ed3fa=_0x493dae[_0x47913e];return _0x2ed3fa;},_0x4791(_0x39c841,_0x11aadf);}import{ObservableMixin as _0x487228}from'ckeditor5/src/utils.js';function _0x493d(){var _0x11eb8c=['46313CtyKwC','title','updatedAt','4075qsltzu','set','64508eMuedp','updatePinned','16776keeSYe','504298YiGhag','1464jxEqnm','54ESoQAo','updateTitle','15mrtuip','666310rvqaQa','pinned','5967918nLYaFx','651VBzIuO','createdAt'];_0x493d=function(){return _0x11eb8c;};return _0x493d();}import{escape as _0x2673cf}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x487228(){['id'];[_0x25145f(0xd9)];constructor({id:_0x40a1e3,title:_0x25ff1c,createdAt:_0x6f263a,updatedAt:_0x239613,pinned:_0x4c7238}){var _0x49efb0=_0x25145f;super(),this['id']=_0x40a1e3,this[_0x49efb0(0xd9)]=new Date(_0x6f263a),this[_0x49efb0(0xde)](_0x49efb0(0xdb),_0x25ff1c),this[_0x49efb0(0xde)](_0x49efb0(0xdc),_0x239613?new Date(_0x239613):null),this[_0x49efb0(0xde)](_0x49efb0(0xe8),_0x4c7238||!0x1);}[_0x25145f(0xe5)](_0x33019b){var _0x3c0646=_0x25145f;this[_0x3c0646(0xde)](_0x3c0646(0xdb),_0x2673cf(_0x33019b)),this[_0x3c0646(0xdc)]=new Date();}[_0x25145f(0xe0)](_0x312c0e){var _0x597a05=_0x25145f;this[_0x597a05(0xde)](_0x597a05(0xe8),_0x312c0e),this[_0x597a05(0xdc)]=new Date();}}
|