@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- 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 +5 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +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 +4 -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.js +1 -1
- package/src/aicore/model/aireply.d.ts +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +2 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -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.d.ts +3 -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.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +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 +4 -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/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f5d60=_0x46dd;(function(_0x51d919,_0x4d244e){const _0x48f69a=_0x46dd,_0xde0494=_0x51d919();while(!![]){try{const _0x5bddb1=-parseInt(_0x48f69a(0x9d))/0x1+parseInt(_0x48f69a(0xa3))/0x2*(parseInt(_0x48f69a(0x91))/0x3)+-parseInt(_0x48f69a(0x95))/0x4*(parseInt(_0x48f69a(0xa6))/0x5)+parseInt(_0x48f69a(0xad))/0x6+parseInt(_0x48f69a(0x99))/0x7*(-parseInt(_0x48f69a(0xaf))/0x8)+parseInt(_0x48f69a(0xab))/0x9*(parseInt(_0x48f69a(0xa8))/0xa)+parseInt(_0x48f69a(0xa2))/0xb;if(_0x5bddb1===_0x4d244e)break;else _0xde0494['push'](_0xde0494['shift']());}catch(_0x2ec889){_0xde0494['push'](_0xde0494['shift']());}}}(_0x315d,0xba061));import{View as _0xe97038}from'ckeditor5/src/ui.js';function _0x46dd(_0x208054,_0x5d144d){const _0x315dbf=_0x315d();return _0x46dd=function(_0x46dd7a,_0x368a1d){_0x46dd7a=_0x46dd7a-0x8b;let _0x4c4ed1=_0x315dbf[_0x46dd7a];return _0x4c4ed1;},_0x46dd(_0x208054,_0x5d144d);}function _0x315d(){const _0x3ec3eb=['data-id','3693BHDLNd','bindTemplate','ck-hidden','removeAttribute','4585144PRejdc','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-ai-chat__feed__item_done','querySelectorAll','2068535FbyzTg','isVisible','markAsDone','forEach','1151152fcPWCx','htmlStreamer','set','[data-id]','div','31552851mEwuHj','66IupCJj','isDone','cleanUpAnimations','5aNoMxo','options','8413090PLLOtP','ck-ai-chat__feed__text-item','ck-ai-chat__feed__item','9zwgXne','content','2946228JUUybF','createCollection','32xisPvU','stream','streamIntoElement','children','setTemplate','element'];_0x315d=function(){return _0x3ec3eb;};return _0x315d();}import{HTMLStreamer as _0x2a379f}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0xe97038{[_0x2f5d60(0xa7)];[_0x2f5d60(0xac)]='';[_0x2f5d60(0x9e)];[_0x2f5d60(0x8d)];constructor(_0x513e88){const _0x235b5f=_0x2f5d60;super();const _0x4caaba=this[_0x235b5f(0x92)];this[_0x235b5f(0x9f)](_0x235b5f(0xa4),!0x1),this[_0x235b5f(0x9f)](_0x235b5f(0x9a),!0x0),this[_0x235b5f(0x9e)]=new _0x2a379f({'textNodeStyle':_0x235b5f(0x96),'delay':0x14}),this[_0x235b5f(0xa7)]=_0x513e88,this[_0x235b5f(0x8d)]=this[_0x235b5f(0xae)](),this[_0x235b5f(0x8e)]({'tag':_0x235b5f(0xa1),'attributes':{'class':['ck',_0x235b5f(0xaa),_0x4caaba['if'](_0x235b5f(0xa4),_0x235b5f(0x97)),_0x4caaba['if'](_0x235b5f(0x9a),_0x235b5f(0x93),_0x4a839e=>!_0x4a839e),_0x235b5f(0xa9)],'data-cke-ai-id':this[_0x235b5f(0xa7)]['id']},'children':this[_0x235b5f(0x8d)]});}[_0x2f5d60(0x9b)](){const _0x13b195=_0x2f5d60;this[_0x13b195(0x9e)][_0x13b195(0xa5)]({'targetElement':this[_0x13b195(0x8f)]}),this[_0x13b195(0x8f)][_0x13b195(0x98)](_0x13b195(0xa0))[_0x13b195(0x9c)](_0x4ea740=>{const _0x1cc0d2=_0x13b195;_0x4ea740[_0x1cc0d2(0x94)](_0x1cc0d2(0x90));}),this[_0x13b195(0xa4)]=!0x0;}async[_0x2f5d60(0x8c)](_0x4e2a3b,_0x4b05de,_0x2169a0){const _0x5f49ef=_0x2f5d60;await this[_0x5f49ef(0x9e)][_0x5f49ef(0x8b)]({'document':_0x4e2a3b,'targetElement':_0x4b05de,'abortSignal':_0x2169a0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1823ec=_0x5a58;(function(_0x2a4d3d,_0x30d644){const _0x151843=_0x5a58,_0x5882a8=_0x2a4d3d();while(!![]){try{const _0x322f10=-parseInt(_0x151843(0x149))/0x1*(-parseInt(_0x151843(0x156))/0x2)+-parseInt(_0x151843(0x14c))/0x3+parseInt(_0x151843(0x14f))/0x4+parseInt(_0x151843(0x13a))/0x5+parseInt(_0x151843(0x138))/0x6*(-parseInt(_0x151843(0x151))/0x7)+parseInt(_0x151843(0x145))/0x8+-parseInt(_0x151843(0x142))/0x9*(parseInt(_0x151843(0x153))/0xa);if(_0x322f10===_0x30d644)break;else _0x5882a8['push'](_0x5882a8['shift']());}catch(_0x1424e3){_0x5882a8['push'](_0x5882a8['shift']());}}}(_0xca0d,0xacfed));import{AIChatFeedItemView as _0xca63f3}from'./aichatfeeditemview.js';import{parse as _0x2637a4,render as _0x42450d}from'../../../aicore/utils/htmlparser.js';import{View as _0x32a7c7}from'ckeditor5/src/ui.js';function _0xca0d(){const _0x3163f2=['701248sTSWIS','setTemplate','14Cofkes','ck-reset_all-excluded','10MQdlOp','add','innerHTML','1390Xinmpf','streamIntoElement','replyContainer','div','1233786QxpMjS','markAsDone','1119415mcXLrX','updateContent','isVisible','extendTemplate','ck-ai-chat__feed__ai-reply-container','initialContent','streaming','updateSources','8889966NWqoiE','render','options','9467544kzKFWm','children','ck-ai-chat__feed__ai-reply','element','1277yYJrBH','addMany','locale','1087584QCgWGu','map','static'];_0xca0d=function(){return _0x3163f2;};return _0xca0d();}function _0x5a58(_0x2abbc2,_0x4579b5){const _0x5a583b=_0xca0d();return _0x5a58=function(_0x5b69a8,_0x23d178){_0x5b69a8=_0x5b69a8-0x138;let _0x58626f=_0x5a583b[_0x5b69a8];return _0x58626f;},_0x5a58(_0x2abbc2,_0x4579b5);}import{AIWebSourcesView as _0x457e09,AIWebSourceView as _0x5e83bc}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0xca63f3{[_0x1823ec(0x158)];constructor(_0x14dc69,_0x3f3b27){const _0x2310f0=_0x1823ec;super(_0x3f3b27),this[_0x2310f0(0x14b)]=_0x14dc69,this[_0x2310f0(0x13d)]({'attributes':{'class':[_0x2310f0(0x147)]}}),this[_0x2310f0(0x158)]=new _0x32a7c7(),this[_0x2310f0(0x158)][_0x2310f0(0x150)]({'tag':_0x2310f0(0x159),'attributes':{'class':['ck',_0x2310f0(0x152),_0x2310f0(0x13e)]}}),this[_0x2310f0(0x146)][_0x2310f0(0x154)](this[_0x2310f0(0x158)]);}async[_0x1823ec(0x143)](){const _0x171280=_0x1823ec;super[_0x171280(0x143)](),this[_0x171280(0x144)][_0x171280(0x13f)]&&(await this[_0x171280(0x13b)]({'parsedContent':_0x2637a4(this[_0x171280(0x144)][_0x171280(0x13f)]),'renderingStrategy':_0x171280(0x14e)}),this[_0x171280(0x139)]());}async[_0x1823ec(0x13b)]({parsedContent:_0x2d7c27,renderingStrategy:_0xd30ce1,abortSignal:_0x27f637}){const _0x741824=_0x1823ec;_0x741824(0x140)===_0xd30ce1?await this[_0x741824(0x157)](_0x2d7c27,this[_0x741824(0x158)][_0x741824(0x148)],_0x27f637):this[_0x741824(0x158)][_0x741824(0x148)][_0x741824(0x155)]=_0x42450d(_0x2d7c27);}[_0x1823ec(0x141)](_0x18911b){const _0x190fd1=_0x1823ec,_0x1f6032=new _0x457e09(this[_0x190fd1(0x14b)]);_0x1f6032[_0x190fd1(0x146)][_0x190fd1(0x14a)](_0x18911b[_0x190fd1(0x14d)](_0x55881b=>new _0x5e83bc(this[_0x190fd1(0x14b)],_0x55881b))),_0x1f6032[_0x190fd1(0x13c)]=!0x0,this[_0x190fd1(0x146)][_0x190fd1(0x154)](_0x1f6032);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e8998=_0x29ee;function _0x599b(){const _0x3d4654=['7655212XraHAv','insertSuggestion','ck-hidden','_createActionsButton','actionsButton','2688090PWaCot','esc','createCollection','_firstRender','isEnabled','keys','element','slice','listenTo','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','content','unbind','label','detachFromDom','ltr','div','_setUpKeystrokes','has','listView','isVisible','uiLanguageDirection','ck-ai-button-primary','balloonPanelClass','left','tooltip','arrowless','attachToDom','add','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','updateLabels','showChangeInText','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','listItemModels','hide','bindTemplate','button','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','applySuggestion','showChangeInTextModel','_partsCount','bottom','_dropdownCurrentConfig','isTrackChangesOn','bodyCollection','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','bind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_setUpList','focus','actionName','9292473wXrpUq','set','applySuggestionModel','delegate','_createActionsDropdown','open','2516097YUDYhd','children','setTemplate','1843223gCjNTc','32Wqizvl','length','6412332HnmDLO','map','fire','change:isTrackChangesOn','filter','destroy','remove','balloonPanelView','pin','_updateDropdownActions','execute','ck-ai-chat__feed__ai-suggestion__actions__balloon','_createActionsDropdownOrButton','width','insertSuggestionModel','ck-ai-chat__feed__ai-suggestion__actions\x20','arrowView','ck-ai-chat__feed__ai-suggestion__actions','items','2erMVhl','32704UZSimi','class','_dropdownOriginalConfig','locale','ck-ai-chat__feed__ai-suggestion__actions--no-animation','source','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','keystrokeHandler'];_0x599b=function(){return _0x3d4654;};return _0x599b();}(function(_0x164c27,_0x447738){const _0x240a7c=_0x29ee,_0xddd144=_0x164c27();while(!![]){try{const _0x274393=parseInt(_0x240a7c(0x16e))/0x1+parseInt(_0x240a7c(0x184))/0x2*(parseInt(_0x240a7c(0x16b))/0x3)+parseInt(_0x240a7c(0x12e))/0x4+-parseInt(_0x240a7c(0x133))/0x5+parseInt(_0x240a7c(0x171))/0x6+-parseInt(_0x240a7c(0x185))/0x7+parseInt(_0x240a7c(0x16f))/0x8*(-parseInt(_0x240a7c(0x165))/0x9);if(_0x274393===_0x447738)break;else _0xddd144['push'](_0xddd144['shift']());}catch(_0x4563b6){_0xddd144['push'](_0xddd144['shift']());}}}(_0x599b,0xf23a9));import{KeystrokeHandler as _0x51393d}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x5bcd99,BodyCollection as _0x31b909,ButtonView as _0x2fe4ec,clickOutsideHandler as _0x463ab3,ListItemButtonView as _0x28fff5,ListItemView as _0x1c8293,ListView as _0x50d3fd,SplitButtonView as _0x180d4c,UIModel as _0x39e8c4,View as _0x2b1cf3}from'ckeditor5/src/ui.js';import{IconCheck as _0x4523aa,IconAddComment as _0x59f735,IconDocumentWithLoupe as _0x4f9b9d}from'ckeditor5/src/icons.js';import{getTranslation as _0x21ad58}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x3e8998(0x158),_0x3e8998(0x12f),_0x3e8998(0x151)];export class AIChatFeedSuggestionItemActionsView extends _0x2b1cf3{[_0x3e8998(0x132)];[_0x3e8998(0x16c)];[_0x3e8998(0x167)];[_0x3e8998(0x159)];[_0x3e8998(0x17f)];[_0x3e8998(0x15a)]=0x1;[_0x3e8998(0x187)];[_0x3e8998(0x15c)];[_0x3e8998(0x136)]=!0x0;constructor(_0x1e2939,_0x257950){const _0x137d78=_0x3e8998;super(_0x1e2939),this[_0x137d78(0x187)]=_0x257950||[...ACTIONS],this[_0x137d78(0x15c)]=[...this[_0x137d78(0x187)]];const _0x8d861c=this[_0x137d78(0x155)];this[_0x137d78(0x166)](_0x137d78(0x137),!0x0),this[_0x137d78(0x166)](_0x137d78(0x146),!0x0),this[_0x137d78(0x167)]=new _0x39e8c4({'label':Ln(_0x137d78(0x158),_0x1e2939,this[_0x137d78(0x15a)]),'icon':_0x4523aa,'withText':!0x0,'type':_0x137d78(0x156),'actionName':_0x137d78(0x158)}),this[_0x137d78(0x159)]=new _0x39e8c4({'label':Ln(_0x137d78(0x151),_0x1e2939,this[_0x137d78(0x15a)]),'icon':_0x4f9b9d,'withText':!0x0,'type':_0x137d78(0x156),'actionName':_0x137d78(0x151)}),this[_0x137d78(0x17f)]=new _0x39e8c4({'label':Ln(_0x137d78(0x12f),_0x1e2939,this[_0x137d78(0x15a)]),'icon':_0x59f735,'withText':!0x0,'type':_0x137d78(0x156),'actionName':_0x137d78(0x12f)}),this[_0x137d78(0x132)]=this[_0x137d78(0x17d)](_0x1e2939),this[_0x137d78(0x16c)]=this[_0x137d78(0x135)]([this[_0x137d78(0x132)]]),this[_0x137d78(0x16d)]({'tag':_0x137d78(0x142),'attributes':{'class':['ck',_0x137d78(0x182),_0x8d861c['if'](_0x137d78(0x146),_0x137d78(0x130),_0x4323b8=>!_0x4323b8)]},'children':this[_0x137d78(0x16c)]}),this[_0x137d78(0x13b)](this,_0x137d78(0x174),()=>{const _0x1940d3=_0x137d78;this[_0x1940d3(0x15c)]=this[_0x1940d3(0x15d)]?this[_0x1940d3(0x187)][_0x1940d3(0x175)](_0x469405=>_0x1940d3(0x158)!==_0x469405):[...this[_0x1940d3(0x187)]],this[_0x1940d3(0x17a)](_0x1e2939);});}[_0x3e8998(0x17a)](_0x4ca3aa){const _0x2a48a6=_0x3e8998;this[_0x2a48a6(0x16c)][_0x2a48a6(0x144)](this[_0x2a48a6(0x132)])&&(this[_0x2a48a6(0x16c)][_0x2a48a6(0x177)](this[_0x2a48a6(0x132)]),this[_0x2a48a6(0x132)][_0x2a48a6(0x176)]()),0x0!=this[_0x2a48a6(0x15c)][_0x2a48a6(0x170)]&&(this[_0x2a48a6(0x132)]=this[_0x2a48a6(0x17d)](_0x4ca3aa),this[_0x2a48a6(0x16c)][_0x2a48a6(0x14e)](this[_0x2a48a6(0x132)]));}[_0x3e8998(0x17d)](_0x5cb6be){const _0x503276=_0x3e8998,_0x46ad29=0x1===this[_0x503276(0x15c)][_0x503276(0x170)]?this[_0x503276(0x131)](_0x5cb6be):this[_0x503276(0x169)](_0x5cb6be),_0x4c07ef=this[_0x503276(0x136)]?'':_0x503276(0x12a);_0x46ad29[_0x503276(0x166)]({'label':Ln(this[_0x503276(0x15c)][0x0],_0x5cb6be,this[_0x503276(0x15a)]),'tooltip':jn(this[_0x503276(0x15c)][0x0],_0x5cb6be,this[_0x503276(0x15a)]),'withText':!0x0,'class':_0x503276(0x180)+_0x4c07ef});for(const _0x572035 of this[_0x503276(0x15c)])_0x46ad29['on'](_0x572035,()=>{const _0x47daa2=_0x503276;this[_0x47daa2(0x173)](_0x572035);});return this[_0x503276(0x136)]=!0x1,_0x46ad29;}[_0x3e8998(0x131)](_0x1a09a3){const _0x53cfb8=_0x3e8998,_0x20cd57=new _0x2fe4ec(_0x1a09a3);return _0x20cd57[_0x53cfb8(0x166)]({'class':_0x53cfb8(0x148),'withText':!0x0}),_0x20cd57['on'](_0x53cfb8(0x17b),()=>{const _0x3d5ec3=_0x53cfb8;_0x20cd57[_0x3d5ec3(0x173)](this[_0x3d5ec3(0x15c)][0x0]);}),_0x20cd57;}[_0x3e8998(0x169)](_0x28e793){const _0x52b63f=_0x3e8998,_0x360cb2=new Pn(_0x28e793,{'listItemModels':this[_0x52b63f(0x15c)][_0x52b63f(0x172)](_0xe9c36d=>{const _0x54f01f=_0x52b63f;switch(_0xe9c36d){case _0x54f01f(0x158):return this[_0x54f01f(0x167)];case _0x54f01f(0x151):return this[_0x54f01f(0x159)];case _0x54f01f(0x12f):return this[_0x54f01f(0x17f)];}})});return _0x360cb2[_0x52b63f(0x166)]({'label':Ln(this[_0x52b63f(0x15c)][0x0],_0x28e793,this[_0x52b63f(0x15a)]),'tooltip':jn(this[_0x52b63f(0x15c)][0x0],_0x28e793,this[_0x52b63f(0x15a)]),'withText':!0x0,'class':_0x52b63f(0x182),'balloonPanelClass':_0x52b63f(0x17c)}),_0x360cb2[_0x52b63f(0x160)](_0x52b63f(0x137))['to'](this),_0x360cb2;}[_0x3e8998(0x150)](_0x225821){const _0x5c2a2e=_0x3e8998,_0x32fee9=this[_0x5c2a2e(0x129)];this[_0x5c2a2e(0x15a)]=_0x225821||this[_0x5c2a2e(0x15a)],this[_0x5c2a2e(0x132)][_0x5c2a2e(0x166)]({'label':Ln(this[_0x5c2a2e(0x15c)][0x0],_0x32fee9,this[_0x5c2a2e(0x15a)]),'tooltip':jn(this[_0x5c2a2e(0x15c)][0x0],_0x32fee9,this[_0x5c2a2e(0x15a)])}),this[_0x5c2a2e(0x167)][_0x5c2a2e(0x13f)]=Ln(_0x5c2a2e(0x158),_0x32fee9,this[_0x5c2a2e(0x15a)]),this[_0x5c2a2e(0x159)][_0x5c2a2e(0x13f)]=Ln(_0x5c2a2e(0x151),_0x32fee9,this[_0x5c2a2e(0x15a)]),this[_0x5c2a2e(0x17f)][_0x5c2a2e(0x13f)]=Ln(_0x5c2a2e(0x12f),_0x32fee9,this[_0x5c2a2e(0x15a)]);}}class Pn extends _0x180d4c{[_0x3e8998(0x15e)];[_0x3e8998(0x178)];[_0x3e8998(0x145)];[_0x3e8998(0x12d)];constructor(_0x20a642,_0x590c8d){const _0x386def=_0x3e8998;super(_0x20a642),this[_0x386def(0x178)]=new _0x5bcd99(this[_0x386def(0x129)]),this[_0x386def(0x15e)]=new _0x31b909(this[_0x386def(0x129)]),this[_0x386def(0x15e)][_0x386def(0x14d)](),this[_0x386def(0x166)](_0x386def(0x149),''),this[_0x386def(0x178)][_0x386def(0x160)](_0x386def(0x186))['to'](this,_0x386def(0x149)),this[_0x386def(0x145)]=this[_0x386def(0x162)](_0x590c8d[_0x386def(0x153)][_0x386def(0x13a)](0x1)),this[_0x386def(0x15e)][_0x386def(0x14e)](this[_0x386def(0x178)]),this[_0x386def(0x178)][_0x386def(0x13d)][_0x386def(0x14e)](this[_0x386def(0x145)]),this[_0x386def(0x181)][_0x386def(0x13e)](_0x386def(0x14b)),this[_0x386def(0x181)][_0x386def(0x166)](_0x386def(0x14b),_0x21ad58(this[_0x386def(0x129)],_0x386def(0x157))),this[_0x386def(0x143)](),this['on'](_0x386def(0x17b),()=>{const _0x2d55c0=_0x386def,_0xe47400=_0x590c8d[_0x2d55c0(0x153)][0x0][_0x2d55c0(0x164)];this[_0x2d55c0(0x173)](_0xe47400),this[_0x2d55c0(0x178)][_0x2d55c0(0x154)](),this[_0x2d55c0(0x181)][_0x2d55c0(0x163)]();}),this['on'](_0x386def(0x16a),()=>{const _0x4c7af1=_0x386def;this[_0x4c7af1(0x178)][_0x4c7af1(0x146)]?(this[_0x4c7af1(0x178)][_0x4c7af1(0x154)](),this[_0x4c7af1(0x181)][_0x4c7af1(0x163)]()):(this[_0x4c7af1(0x178)][_0x4c7af1(0x179)]({'target':this[_0x4c7af1(0x139)],'positions':[_0x4c7af1(0x141)===this[_0x4c7af1(0x129)][_0x4c7af1(0x147)]?Hn:Un]}),this[_0x4c7af1(0x145)][_0x4c7af1(0x163)]());}),_0x463ab3({'emitter':this[_0x386def(0x178)],'callback':()=>{const _0xe912e2=_0x386def;this[_0xe912e2(0x178)][_0xe912e2(0x154)]();},'activator':()=>this[_0x386def(0x178)][_0x386def(0x146)],'contextElements':()=>[this[_0x386def(0x139)],this[_0x386def(0x178)][_0x386def(0x139)]]});}[_0x3e8998(0x162)](_0x4a2bf1){const _0x267bc0=_0x3e8998,_0x3ef806=this[_0x267bc0(0x129)],_0x8deb4a=new _0x50d3fd(_0x3ef806);for(const _0x59d3e7 of _0x4a2bf1){const _0x587041=new _0x1c8293(_0x3ef806),_0x6d362=new _0x28fff5(_0x3ef806);_0x6d362[_0x267bc0(0x160)](...Object[_0x267bc0(0x138)](_0x59d3e7))['to'](_0x59d3e7),_0x6d362[_0x267bc0(0x168)](_0x267bc0(0x17b))['to'](_0x8deb4a),_0x587041[_0x267bc0(0x16c)][_0x267bc0(0x14e)](_0x6d362),_0x8deb4a[_0x267bc0(0x183)][_0x267bc0(0x14e)](_0x587041);}return _0x8deb4a[_0x267bc0(0x183)][_0x267bc0(0x168)](_0x267bc0(0x17b))['to'](this),_0x8deb4a['on'](_0x267bc0(0x17b),_0x2be377=>{const _0x3645ef=_0x267bc0,_0x4b45b2=_0x2be377[_0x3645ef(0x12b)];this[_0x3645ef(0x173)](_0x4b45b2[_0x3645ef(0x164)]),this[_0x3645ef(0x178)][_0x3645ef(0x154)](),this[_0x3645ef(0x181)][_0x3645ef(0x163)]();}),_0x8deb4a;}[_0x3e8998(0x143)](){const _0x1b7300=_0x3e8998;this[_0x1b7300(0x12d)]=new _0x51393d(),this[_0x1b7300(0x12d)][_0x1b7300(0x13b)](this[_0x1b7300(0x178)][_0x1b7300(0x139)]),this[_0x1b7300(0x12d)][_0x1b7300(0x166)](_0x1b7300(0x134),(_0x22406f,_0x56ce7a)=>{const _0x5a803a=_0x1b7300;this[_0x5a803a(0x178)][_0x5a803a(0x154)](),this[_0x5a803a(0x181)][_0x5a803a(0x163)](),_0x56ce7a();});}[_0x3e8998(0x176)](){const _0xbfa2be=_0x3e8998;super[_0xbfa2be(0x176)](),this[_0xbfa2be(0x12d)][_0xbfa2be(0x176)](),this[_0xbfa2be(0x178)][_0xbfa2be(0x176)](),this[_0xbfa2be(0x15e)][_0xbfa2be(0x140)]();}}function Hn(_0x5e4c61){const _0x4387f3=_0x3e8998;return{'top':_0x5e4c61[_0x4387f3(0x15b)],'left':_0x5e4c61[_0x4387f3(0x14a)],'name':_0x4387f3(0x14c),'config':{'withArrow':!0x1}};}function Un(_0x3b8dfc,_0x40c094){const _0x7ce3de=_0x3e8998;return{'top':_0x3b8dfc[_0x7ce3de(0x15b)],'left':_0x3b8dfc[_0x7ce3de(0x14a)]-(_0x40c094[_0x7ce3de(0x17e)]-_0x3b8dfc[_0x7ce3de(0x17e)]),'name':_0x7ce3de(0x14c),'config':{'withArrow':!0x1}};}function Ln(_0x4bf522,_0x37749c,_0x4a6926){const _0x33ee5d=_0x3e8998;switch(_0x4bf522){case _0x33ee5d(0x158):return _0x21ad58(_0x37749c,_0x33ee5d(0x12c),_0x4a6926);case _0x33ee5d(0x151):return _0x21ad58(_0x37749c,_0x33ee5d(0x13c),_0x4a6926);case _0x33ee5d(0x12f):return _0x21ad58(_0x37749c,_0x33ee5d(0x152),_0x4a6926);}}function _0x29ee(_0x29b9ae,_0x26e8e2){const _0x599b85=_0x599b();return _0x29ee=function(_0x29ee58,_0xb6a041){_0x29ee58=_0x29ee58-0x129;let _0x3f2a3b=_0x599b85[_0x29ee58];return _0x3f2a3b;},_0x29ee(_0x29b9ae,_0x26e8e2);}function jn(_0x4172ec,_0xe0c2b8,_0x5a764a){const _0x509920=_0x3e8998;switch(_0x4172ec){case _0x509920(0x158):return _0x21ad58(_0xe0c2b8,_0x509920(0x14f),_0x5a764a);case _0x509920(0x151):return _0x21ad58(_0xe0c2b8,_0x509920(0x15f),_0x5a764a);case _0x509920(0x12f):return _0x21ad58(_0xe0c2b8,_0x509920(0x161),_0x5a764a);}}
|
|
23
|
+
function _0x45f6(){const _0x6d0fef=['open','keys','class','showChangeInText','24984XTSajT','applySuggestionModel','insertSuggestion','579030pqEuef','filter','listenTo','_createActionsDropdown','ck-ai-chat__feed__ai-suggestion__actions\x20','unbind','destroy','bodyCollection','showChangeInTextModel','execute','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','4Bdapzl','applySuggestion','bindTemplate','actionName','element','3142256nPIfhg','items','hide','detachFromDom','ck-ai-button-primary','setTemplate','_updateDropdownActions','has','_firstRender','remove','add','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','3vtxggt','esc','focus','arrowView','186764EyBKYN','_setUpKeystrokes','updateLabels','attachToDom','isTrackChangesOn','balloonPanelClass','1505019lSWsRC','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','locale','_createActionsDropdownOrButton','281890CAcUaN','balloonPanelView','insertSuggestionModel','isVisible','_setUpList','_createActionsButton','ck-ai-chat__feed__ai-suggestion__actions','createCollection','tooltip','map','length','pin','source','_dropdownOriginalConfig','left','listItemModels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','label','ck-hidden','ck-ai-chat__feed__ai-suggestion__actions__balloon','_dropdownCurrentConfig','ck-ai-chat__feed__ai-suggestion__actions--no-animation','content','div','set','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','isEnabled','uiLanguageDirection','fire','listView','bind','arrowless','children','slice','bottom','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','width','2956655bIRsmH','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','54jOpxNb','_partsCount','keystrokeHandler','delegate','button','ltr','change:isTrackChangesOn','actionsButton'];_0x45f6=function(){return _0x6d0fef;};return _0x45f6();}const _0x471f74=_0x2f91;(function(_0x5646e9,_0x1dfe53){const _0xb8c79=_0x2f91,_0x1aea38=_0x5646e9();while(!![]){try{const _0x276ac7=-parseInt(_0xb8c79(0xeb))/0x1*(-parseInt(_0xb8c79(0xef))/0x2)+parseInt(_0xb8c79(0x95))/0x3*(-parseInt(_0xb8c79(0xda))/0x4)+parseInt(_0xb8c79(0xbe))/0x5+-parseInt(_0xb8c79(0xcc))/0x6+-parseInt(_0xb8c79(0x99))/0x7+parseInt(_0xb8c79(0xdf))/0x8+-parseInt(_0xb8c79(0xc0))/0x9*(parseInt(_0xb8c79(0xcf))/0xa);if(_0x276ac7===_0x1dfe53)break;else _0x1aea38['push'](_0x1aea38['shift']());}catch(_0x311c13){_0x1aea38['push'](_0x1aea38['shift']());}}}(_0x45f6,0x5a82e));import{KeystrokeHandler as _0x8b8402}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x265226,BodyCollection as _0x1eb74d,ButtonView as _0x4a0cb3,clickOutsideHandler as _0x4a3f7d,ListItemButtonView as _0x3ea928,ListItemView as _0x27a438,ListView as _0xdbbe0d,SplitButtonView as _0x496a23,UIModel as _0x2e5304,View as _0x213425}from'ckeditor5/src/ui.js';import{IconCheck as _0x4d2557,IconAddComment as _0x4bc811,IconDocumentWithLoupe as _0x432969}from'ckeditor5/src/icons.js';import{getTranslation as _0x27c079}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x471f74(0xdb),_0x471f74(0xce),_0x471f74(0xcb)];export class AIChatFeedSuggestionItemActionsView extends _0x213425{[_0x471f74(0xc7)];[_0x471f74(0xb9)];[_0x471f74(0xcd)];[_0x471f74(0xd7)];[_0x471f74(0x9b)];[_0x471f74(0xc1)]=0x1;[_0x471f74(0xa6)];[_0x471f74(0xad)];[_0x471f74(0xe7)]=!0x0;constructor(_0x2bdfb7,_0x24e04f){const _0x33c67c=_0x471f74;super(_0x2bdfb7),this[_0x33c67c(0xa6)]=_0x24e04f||[...ACTIONS],this[_0x33c67c(0xad)]=[...this[_0x33c67c(0xa6)]];const _0x2b3940=this[_0x33c67c(0xdc)];this[_0x33c67c(0xb1)](_0x33c67c(0xb3),!0x0),this[_0x33c67c(0xb1)](_0x33c67c(0x9c),!0x0),this[_0x33c67c(0xcd)]=new _0x2e5304({'label':Un(_0x33c67c(0xdb),_0x2bdfb7,this[_0x33c67c(0xc1)]),'icon':_0x4d2557,'withText':!0x0,'type':_0x33c67c(0xc4),'actionName':_0x33c67c(0xdb)}),this[_0x33c67c(0xd7)]=new _0x2e5304({'label':Un(_0x33c67c(0xcb),_0x2bdfb7,this[_0x33c67c(0xc1)]),'icon':_0x432969,'withText':!0x0,'type':_0x33c67c(0xc4),'actionName':_0x33c67c(0xcb)}),this[_0x33c67c(0x9b)]=new _0x2e5304({'label':Un(_0x33c67c(0xce),_0x2bdfb7,this[_0x33c67c(0xc1)]),'icon':_0x4bc811,'withText':!0x0,'type':_0x33c67c(0xc4),'actionName':_0x33c67c(0xce)}),this[_0x33c67c(0xc7)]=this[_0x33c67c(0x98)](_0x2bdfb7),this[_0x33c67c(0xb9)]=this[_0x33c67c(0xa0)]([this[_0x33c67c(0xc7)]]),this[_0x33c67c(0xe4)]({'tag':_0x33c67c(0xb0),'attributes':{'class':['ck',_0x33c67c(0x9f),_0x2b3940['if'](_0x33c67c(0x9c),_0x33c67c(0xab),_0x3c57c0=>!_0x3c57c0)]},'children':this[_0x33c67c(0xb9)]}),this[_0x33c67c(0xd1)](this,_0x33c67c(0xc6),()=>{const _0x17c100=_0x33c67c;this[_0x17c100(0xad)]=this[_0x17c100(0xf3)]?this[_0x17c100(0xa6)][_0x17c100(0xd0)](_0x3b4aef=>_0x17c100(0xdb)!==_0x3b4aef):[...this[_0x17c100(0xa6)]],this[_0x17c100(0xe5)](_0x2bdfb7);});}[_0x471f74(0xe5)](_0x245a99){const _0x144673=_0x471f74;this[_0x144673(0xb9)][_0x144673(0xe6)](this[_0x144673(0xc7)])&&(this[_0x144673(0xb9)][_0x144673(0xe8)](this[_0x144673(0xc7)]),this[_0x144673(0xc7)][_0x144673(0xd5)]()),0x0!=this[_0x144673(0xad)][_0x144673(0xa3)]&&(this[_0x144673(0xc7)]=this[_0x144673(0x98)](_0x245a99),this[_0x144673(0xb9)][_0x144673(0xe9)](this[_0x144673(0xc7)]));}[_0x471f74(0x98)](_0x56bda9){const _0x37ac3b=_0x471f74,_0x5c44ba=0x1===this[_0x37ac3b(0xad)][_0x37ac3b(0xa3)]?this[_0x37ac3b(0x9e)](_0x56bda9):this[_0x37ac3b(0xd2)](_0x56bda9),_0x71313e=this[_0x37ac3b(0xe7)]?'':_0x37ac3b(0xae);_0x5c44ba[_0x37ac3b(0xb1)]({'label':Un(this[_0x37ac3b(0xad)][0x0],_0x56bda9,this[_0x37ac3b(0xc1)]),'tooltip':Ln(this[_0x37ac3b(0xad)][0x0],_0x56bda9,this[_0x37ac3b(0xc1)]),'withText':!0x0,'class':_0x37ac3b(0xd3)+_0x71313e});for(const _0x5364fa of this[_0x37ac3b(0xad)])_0x5c44ba['on'](_0x5364fa,()=>{const _0x5cd48e=_0x37ac3b;this[_0x5cd48e(0xb5)](_0x5364fa);});return this[_0x37ac3b(0xe7)]=!0x1,_0x5c44ba;}[_0x471f74(0x9e)](_0x2025dd){const _0x1f94bc=_0x471f74,_0x2534a1=new _0x4a0cb3(_0x2025dd);return _0x2534a1[_0x1f94bc(0xb1)]({'class':_0x1f94bc(0xe3),'withText':!0x0}),_0x2534a1['on'](_0x1f94bc(0xd8),()=>{const _0x28d526=_0x1f94bc;_0x2534a1[_0x28d526(0xb5)](this[_0x28d526(0xad)][0x0]);}),_0x2534a1;}[_0x471f74(0xd2)](_0x5e366a){const _0x288e4f=_0x471f74,_0x130840=new yn(_0x5e366a,{'listItemModels':this[_0x288e4f(0xad)][_0x288e4f(0xa2)](_0x1f7b30=>{const _0x399f9d=_0x288e4f;switch(_0x1f7b30){case _0x399f9d(0xdb):return this[_0x399f9d(0xcd)];case _0x399f9d(0xcb):return this[_0x399f9d(0xd7)];case _0x399f9d(0xce):return this[_0x399f9d(0x9b)];}})});return _0x130840[_0x288e4f(0xb1)]({'label':Un(this[_0x288e4f(0xad)][0x0],_0x5e366a,this[_0x288e4f(0xc1)]),'tooltip':Ln(this[_0x288e4f(0xad)][0x0],_0x5e366a,this[_0x288e4f(0xc1)]),'withText':!0x0,'class':_0x288e4f(0x9f),'balloonPanelClass':_0x288e4f(0xac)}),_0x130840[_0x288e4f(0xb7)](_0x288e4f(0xb3))['to'](this),_0x130840;}[_0x471f74(0xf1)](_0x170cf3){const _0x2c914a=_0x471f74,_0x5f2f66=this[_0x2c914a(0x97)];this[_0x2c914a(0xc1)]=_0x170cf3||this[_0x2c914a(0xc1)],this[_0x2c914a(0xc7)][_0x2c914a(0xb1)]({'label':Un(this[_0x2c914a(0xad)][0x0],_0x5f2f66,this[_0x2c914a(0xc1)]),'tooltip':Ln(this[_0x2c914a(0xad)][0x0],_0x5f2f66,this[_0x2c914a(0xc1)])}),this[_0x2c914a(0xcd)][_0x2c914a(0xaa)]=Un(_0x2c914a(0xdb),_0x5f2f66,this[_0x2c914a(0xc1)]),this[_0x2c914a(0xd7)][_0x2c914a(0xaa)]=Un(_0x2c914a(0xcb),_0x5f2f66,this[_0x2c914a(0xc1)]),this[_0x2c914a(0x9b)][_0x2c914a(0xaa)]=Un(_0x2c914a(0xce),_0x5f2f66,this[_0x2c914a(0xc1)]);}}class yn extends _0x496a23{[_0x471f74(0xd6)];[_0x471f74(0x9a)];[_0x471f74(0xb6)];[_0x471f74(0xc2)];constructor(_0x2636ec,_0x2cac93){const _0x146ad2=_0x471f74;super(_0x2636ec),this[_0x146ad2(0x9a)]=new _0x265226(this[_0x146ad2(0x97)]),this[_0x146ad2(0xd6)]=new _0x1eb74d(this[_0x146ad2(0x97)]),this[_0x146ad2(0xd6)][_0x146ad2(0xf2)](),this[_0x146ad2(0xb1)](_0x146ad2(0x94),''),this[_0x146ad2(0x9a)][_0x146ad2(0xb7)](_0x146ad2(0xca))['to'](this,_0x146ad2(0x94)),this[_0x146ad2(0xb6)]=this[_0x146ad2(0x9d)](_0x2cac93[_0x146ad2(0xa8)][_0x146ad2(0xba)](0x1)),this[_0x146ad2(0xd6)][_0x146ad2(0xe9)](this[_0x146ad2(0x9a)]),this[_0x146ad2(0x9a)][_0x146ad2(0xaf)][_0x146ad2(0xe9)](this[_0x146ad2(0xb6)]),this[_0x146ad2(0xee)][_0x146ad2(0xd4)](_0x146ad2(0xa1)),this[_0x146ad2(0xee)][_0x146ad2(0xb1)](_0x146ad2(0xa1),_0x27c079(this[_0x146ad2(0x97)],_0x146ad2(0xbc))),this[_0x146ad2(0xf0)](),this['on'](_0x146ad2(0xd8),()=>{const _0x420647=_0x146ad2,_0x4776f2=_0x2cac93[_0x420647(0xa8)][0x0][_0x420647(0xdd)];this[_0x420647(0xb5)](_0x4776f2),this[_0x420647(0x9a)][_0x420647(0xe1)](),this[_0x420647(0xee)][_0x420647(0xed)]();}),this['on'](_0x146ad2(0xc8),()=>{const _0x4a7fe7=_0x146ad2;this[_0x4a7fe7(0x9a)][_0x4a7fe7(0x9c)]?(this[_0x4a7fe7(0x9a)][_0x4a7fe7(0xe1)](),this[_0x4a7fe7(0xee)][_0x4a7fe7(0xed)]()):(this[_0x4a7fe7(0x9a)][_0x4a7fe7(0xa4)]({'target':this[_0x4a7fe7(0xde)],'positions':[_0x4a7fe7(0xc5)===this[_0x4a7fe7(0x97)][_0x4a7fe7(0xb4)]?Pn:Hn]}),this[_0x4a7fe7(0xb6)][_0x4a7fe7(0xed)]());}),_0x4a3f7d({'emitter':this[_0x146ad2(0x9a)],'callback':()=>{const _0x4f6df8=_0x146ad2;this[_0x4f6df8(0x9a)][_0x4f6df8(0xe1)]();},'activator':()=>this[_0x146ad2(0x9a)][_0x146ad2(0x9c)],'contextElements':()=>[this[_0x146ad2(0xde)],this[_0x146ad2(0x9a)][_0x146ad2(0xde)]]});}[_0x471f74(0x9d)](_0xa03043){const _0x238239=_0x471f74,_0x28c40d=this[_0x238239(0x97)],_0x19354c=new _0xdbbe0d(_0x28c40d);for(const _0x2dd77b of _0xa03043){const _0x826c1=new _0x27a438(_0x28c40d),_0x13945c=new _0x3ea928(_0x28c40d);_0x13945c[_0x238239(0xb7)](...Object[_0x238239(0xc9)](_0x2dd77b))['to'](_0x2dd77b),_0x13945c[_0x238239(0xc3)](_0x238239(0xd8))['to'](_0x19354c),_0x826c1[_0x238239(0xb9)][_0x238239(0xe9)](_0x13945c),_0x19354c[_0x238239(0xe0)][_0x238239(0xe9)](_0x826c1);}return _0x19354c[_0x238239(0xe0)][_0x238239(0xc3)](_0x238239(0xd8))['to'](this),_0x19354c['on'](_0x238239(0xd8),_0x3d56bb=>{const _0x2e4693=_0x238239,_0x5e2de5=_0x3d56bb[_0x2e4693(0xa5)];this[_0x2e4693(0xb5)](_0x5e2de5[_0x2e4693(0xdd)]),this[_0x2e4693(0x9a)][_0x2e4693(0xe1)](),this[_0x2e4693(0xee)][_0x2e4693(0xed)]();}),_0x19354c;}[_0x471f74(0xf0)](){const _0x2c5ca5=_0x471f74;this[_0x2c5ca5(0xc2)]=new _0x8b8402(),this[_0x2c5ca5(0xc2)][_0x2c5ca5(0xd1)](this[_0x2c5ca5(0x9a)][_0x2c5ca5(0xde)]),this[_0x2c5ca5(0xc2)][_0x2c5ca5(0xb1)](_0x2c5ca5(0xec),(_0x2594a5,_0x223a6a)=>{const _0x16f64a=_0x2c5ca5;this[_0x16f64a(0x9a)][_0x16f64a(0xe1)](),this[_0x16f64a(0xee)][_0x16f64a(0xed)](),_0x223a6a();});}[_0x471f74(0xd5)](){const _0x2a9c2c=_0x471f74;super[_0x2a9c2c(0xd5)](),this[_0x2a9c2c(0xc2)][_0x2a9c2c(0xd5)](),this[_0x2a9c2c(0x9a)][_0x2a9c2c(0xd5)](),this[_0x2a9c2c(0xd6)][_0x2a9c2c(0xe2)]();}}function Pn(_0x1f4de6){const _0x40be10=_0x471f74;return{'top':_0x1f4de6[_0x40be10(0xbb)],'left':_0x1f4de6[_0x40be10(0xa7)],'name':_0x40be10(0xb8),'config':{'withArrow':!0x1}};}function Hn(_0x5eabd4,_0x5aec1a){const _0x4700cb=_0x471f74;return{'top':_0x5eabd4[_0x4700cb(0xbb)],'left':_0x5eabd4[_0x4700cb(0xa7)]-(_0x5aec1a[_0x4700cb(0xbd)]-_0x5eabd4[_0x4700cb(0xbd)]),'name':_0x4700cb(0xb8),'config':{'withArrow':!0x1}};}function _0x2f91(_0x37463d,_0x3131f6){const _0x45f61f=_0x45f6();return _0x2f91=function(_0x2f91ab,_0x3b932f){_0x2f91ab=_0x2f91ab-0x94;let _0x2154b8=_0x45f61f[_0x2f91ab];return _0x2154b8;},_0x2f91(_0x37463d,_0x3131f6);}function Un(_0x3bdcc0,_0x28728a,_0x36d67e){const _0x1930c1=_0x471f74;switch(_0x3bdcc0){case _0x1930c1(0xdb):return _0x27c079(_0x28728a,_0x1930c1(0xd9),_0x36d67e);case _0x1930c1(0xcb):return _0x27c079(_0x28728a,_0x1930c1(0x96),_0x36d67e);case _0x1930c1(0xce):return _0x27c079(_0x28728a,_0x1930c1(0xbf),_0x36d67e);}}function Ln(_0x55e69d,_0x38d501,_0x39b2d2){const _0x320d66=_0x471f74;switch(_0x55e69d){case _0x320d66(0xdb):return _0x27c079(_0x38d501,_0x320d66(0xb2),_0x39b2d2);case _0x320d66(0xcb):return _0x27c079(_0x38d501,_0x320d66(0xea),_0x39b2d2);case _0x320d66(0xce):return _0x27c079(_0x38d501,_0x320d66(0xa9),_0x39b2d2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5876(_0x160b30,_0x1c99bb){var _0x460f8d=_0x460f();return _0x5876=function(_0x58762a,_0x137580){_0x58762a=_0x58762a-0xc9;var _0x1fbeba=_0x460f8d[_0x58762a];return _0x1fbeba;},_0x5876(_0x160b30,_0x1c99bb);}var _0x2fb74f=_0x5876;(function(_0x201115,_0x45ad26){var _0x1ac054=_0x5876,_0x75543b=_0x201115();while(!![]){try{var _0x583630=-parseInt(_0x1ac054(0xed))/0x1+-parseInt(_0x1ac054(0xcb))/0x2+-parseInt(_0x1ac054(0xe8))/0x3+-parseInt(_0x1ac054(0xd0))/0x4+parseInt(_0x1ac054(0xd6))/0x5*(-parseInt(_0x1ac054(0xec))/0x6)+-parseInt(_0x1ac054(0xd3))/0x7+parseInt(_0x1ac054(0xd9))/0x8*(parseInt(_0x1ac054(0xdc))/0x9);if(_0x583630===_0x45ad26)break;else _0x75543b['push'](_0x75543b['shift']());}catch(_0x3649c9){_0x75543b['push'](_0x75543b['shift']());}}}(_0x460f,0xec821));import{AIChatFeedItemView as _0xd1537}from'./aichatfeeditemview.js';function _0x460f(){var _0x840d7a=['like','20WUFcJY','addMany','hasPendingParts','676960HpeYtj','showDiff','fire','684Szydlz','rejectSuggestion','dislike','toggleSuggestionDisplayMode','insertSuggestion','mouseOverSuggestion','partsCount','bodyView','getPartView','markAsDone','actionsView','applySuggestion','1084584sSuQGi','containerView','isVisible','updateLabels','593436HRSpkB','1468469DHHbxU','options','bind','dropdownConfig','updateContent','updatePartState','isEnabled','extendTemplate','updateSources','1360648NCWvKb','showChangeInText','children','hasNonEmptyParts','ck-ai-chat__feed__ai-suggestion','6934156djrIxX','areActionsDisabled','mouseLeaveSuggestion','5760293WFzHDD','isTrackChangesOn'];_0x460f=function(){return _0x840d7a;};return _0x460f();}import{AISuggestionContainerView as _0x325482}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x20afef}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0xd1537{[_0x2fb74f(0xe9)];[_0x2fb74f(0xe6)];constructor(_0x2b9417,_0xce8b5d){var _0x5101a8=_0x2fb74f;super(_0xce8b5d),this[_0x5101a8(0xe9)]=new _0x325482(_0x2b9417,{'showDiff':_0xce8b5d[_0x5101a8(0xda)],'areActionsDisabled':_0xce8b5d[_0x5101a8(0xd1)]}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xdf),(_0x26eeb9,_0x5e2f8f)=>{var _0xa224f9=_0x5101a8;this[_0xa224f9(0xdb)](_0xa224f9(0xdf),{'replyId':this[_0xa224f9(0xee)]['id'],'showDiff':_0x5e2f8f[_0xa224f9(0xda)]});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xd5),()=>{var _0x3cd7c0=_0x5101a8;this[_0x3cd7c0(0xdb)](_0x3cd7c0(0xd5),{'replyId':this[_0x3cd7c0(0xee)]['id']});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xde),()=>{var _0x58863b=_0x5101a8;this[_0x58863b(0xdb)](_0x58863b(0xde),{'replyId':this[_0x58863b(0xee)]['id']});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xcc),(_0xa972d4,{index:_0x285d8a})=>{var _0x2d9e09=_0x5101a8;this[_0x2d9e09(0xdb)](_0x2d9e09(0xcc),{'replyId':this[_0x2d9e09(0xee)]['id'],'partIndex':_0x285d8a});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xe0),(_0x4bcf24,{index:_0x3d6acd})=>{var _0x1187c3=_0x5101a8;this[_0x1187c3(0xdb)](_0x1187c3(0xe0),{'replyId':this[_0x1187c3(0xee)]['id'],'partIndex':_0x3d6acd});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xdd),(_0x4e0c2f,{index:_0x1f189b})=>{var _0x3d8adc=_0x5101a8;this[_0x3d8adc(0xdb)](_0x3d8adc(0xdd),{'replyId':this[_0x3d8adc(0xee)]['id'],'partIndex':_0x1f189b});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xe1),(_0x4f08bf,{index:_0x34f7c8})=>{var _0x575fae=_0x5101a8;this[_0x575fae(0xdb)](_0x575fae(0xe1),{'replyId':this[_0x575fae(0xee)]['id'],'partIndex':_0x34f7c8});}),this[_0x5101a8(0xe9)]['on'](_0x5101a8(0xd2),(_0x4def0e,{index:_0x458ddb})=>{var _0x304b59=_0x5101a8;this[_0x304b59(0xdb)](_0x304b59(0xd2),{'replyId':this[_0x304b59(0xee)]['id'],'partIndex':_0x458ddb});}),this[_0x5101a8(0xe6)]=new _0x20afef(_0x2b9417,this[_0x5101a8(0xee)][_0x5101a8(0xf0)]),this[_0x5101a8(0xe6)][_0x5101a8(0xef)](_0x5101a8(0xd4))['to'](this,_0x5101a8(0xd4)),this[_0x5101a8(0xe6)]['on'](_0x5101a8(0xcc),()=>{var _0x14f660=_0x5101a8;this[_0x14f660(0xdb)](_0x14f660(0xcc),{'replyId':this[_0x14f660(0xee)]['id']});}),this[_0x5101a8(0xe6)]['on'](_0x5101a8(0xe0),()=>{var _0x16190a=_0x5101a8;this[_0x16190a(0xdb)](_0x16190a(0xe0),{'replyId':this[_0x16190a(0xee)]['id']});}),this[_0x5101a8(0xe6)]['on'](_0x5101a8(0xe7),()=>{var _0x29bf9b=_0x5101a8;this[_0x29bf9b(0xdb)](_0x29bf9b(0xe7),{'replyId':this[_0x29bf9b(0xee)]['id']});}),_0xce8b5d[_0x5101a8(0xd1)]?this[_0x5101a8(0xe6)][_0x5101a8(0xf3)]=!0x1:this[_0x5101a8(0xe6)][_0x5101a8(0xef)](_0x5101a8(0xf3))['to'](this[_0x5101a8(0xe9)][_0x5101a8(0xe3)],_0x5101a8(0xd8)),this[_0x5101a8(0xcd)][_0x5101a8(0xd7)]([this[_0x5101a8(0xe9)],this[_0x5101a8(0xe6)]]),this[_0x5101a8(0xc9)]({'attributes':{'class':[_0x5101a8(0xcf)]}});}async[_0x2fb74f(0xf1)](_0x343406){var _0xbd4359=_0x2fb74f;await this[_0xbd4359(0xe9)][_0xbd4359(0xf1)](_0x343406),this[_0xbd4359(0xe6)][_0xbd4359(0xeb)](this[_0xbd4359(0xe9)][_0xbd4359(0xe3)][_0xbd4359(0xe2)]);}[_0x2fb74f(0xf2)](_0x1e81ec,_0x6e31a3){var _0x41acc4=_0x2fb74f;this[_0x41acc4(0xe9)][_0x41acc4(0xe3)][_0x41acc4(0xf2)](_0x1e81ec,_0x6e31a3);}[_0x2fb74f(0xca)](_0x41c0e4){var _0x4eec0=_0x2fb74f;this[_0x4eec0(0xe9)][_0x4eec0(0xca)](_0x41c0e4);}[_0x2fb74f(0xe4)](_0x47cf2f){var _0x1a129f=_0x2fb74f;return this[_0x1a129f(0xe9)][_0x1a129f(0xe3)][_0x1a129f(0xe4)](_0x47cf2f);}[_0x2fb74f(0xe5)](){var _0x2f95ed=_0x2fb74f;super[_0x2f95ed(0xe5)](),this[_0x2f95ed(0xe9)][_0x2f95ed(0xe5)](),this[_0x2f95ed(0xe6)][_0x2f95ed(0xea)]=this[_0x2f95ed(0xe9)][_0x2f95ed(0xe3)][_0x2f95ed(0xce)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x305066=_0x9b8e;function _0x175e(){var _0x565f36=['children','52OmTsHN','filter','24PqVvgz','ck-ai-chat__feed__user-message','1911990HxjeHk','innerHTML','ck-ai-chat__feed__message-content','element','render','ck-ai-chat__feed__context-chips','962469WizBaZ','2667721omQPdu','_bodyCollection','options','6825570KJQxil','extendTemplate','133505gcLkeZ','_createContextChipsView','markAsDone','length','_contextChipsView','div','initialContent','10XBKAFs','_messageContentView','15519447ZdtnNq','setTemplate','contextItems','3569361xvxpfs','_createMessageContentView','_locale','add','hidden'];_0x175e=function(){return _0x565f36;};return _0x175e();}(function(_0xdee67a,_0x3bfcc2){var _0x45c330=_0x9b8e,_0x1145b1=_0xdee67a();while(!![]){try{var _0x38d353=-parseInt(_0x45c330(0x1e0))/0x1+parseInt(_0x45c330(0x1da))/0x2+-parseInt(_0x45c330(0x1d0))/0x3+-parseInt(_0x45c330(0x1d6))/0x4*(-parseInt(_0x45c330(0x1c4))/0x5)+parseInt(_0x45c330(0x1e4))/0x6+parseInt(_0x45c330(0x1e1))/0x7*(-parseInt(_0x45c330(0x1d8))/0x8)+parseInt(_0x45c330(0x1cd))/0x9*(parseInt(_0x45c330(0x1cb))/0xa);if(_0x38d353===_0x3bfcc2)break;else _0x1145b1['push'](_0x1145b1['shift']());}catch(_0x2ac638){_0x1145b1['push'](_0x1145b1['shift']());}}}(_0x175e,0xd4491));function _0x9b8e(_0x40a8cb,_0xdff807){var _0x175ecb=_0x175e();return _0x9b8e=function(_0x9b8ee7,_0x4fcad0){_0x9b8ee7=_0x9b8ee7-0x1c3;var _0x3c131d=_0x175ecb[_0x9b8ee7];return _0x3c131d;},_0x9b8e(_0x40a8cb,_0xdff807);}import{AIChatFeedItemView as _0x1ea297}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x47bd8f}from'./aichatfeedcontextchipsview.js';import{View as _0x117c6f}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x1ea297{[_0x305066(0x1c8)]=null;[_0x305066(0x1d2)];[_0x305066(0x1e2)];[_0x305066(0x1cc)];constructor(_0xf69005,_0x1b8441,_0x2b19e9){var _0x43ab75=_0x305066;super(_0x1b8441),this[_0x43ab75(0x1d2)]=_0xf69005,this[_0x43ab75(0x1e2)]=_0x2b19e9,this[_0x43ab75(0x1c5)](),this[_0x43ab75(0x1d1)](),this[_0x43ab75(0x1c3)]({'attributes':{'class':[_0x43ab75(0x1d9)]}});}[_0x305066(0x1c5)](){var _0x1f0099=_0x305066;this[_0x1f0099(0x1e3)][_0x1f0099(0x1cf)]&&this[_0x1f0099(0x1e3)][_0x1f0099(0x1cf)][_0x1f0099(0x1c7)]>0x0&&(this[_0x1f0099(0x1c8)]=new _0x47bd8f(this[_0x1f0099(0x1d2)],this[_0x1f0099(0x1e3)][_0x1f0099(0x1cf)][_0x1f0099(0x1d7)](_0x8a5ec5=>!_0x8a5ec5[_0x1f0099(0x1d4)]),this[_0x1f0099(0x1e2)]),this[_0x1f0099(0x1c8)][_0x1f0099(0x1c3)]({'attributes':{'class':_0x1f0099(0x1df)}}),this[_0x1f0099(0x1d5)][_0x1f0099(0x1d3)](this[_0x1f0099(0x1c8)]));}[_0x305066(0x1d1)](){var _0x17887b=_0x305066;this[_0x17887b(0x1cc)]=new _0x117c6f(this[_0x17887b(0x1d2)]),this[_0x17887b(0x1cc)][_0x17887b(0x1ce)]({'tag':_0x17887b(0x1c9),'attributes':{'class':_0x17887b(0x1dc)}}),this[_0x17887b(0x1d5)][_0x17887b(0x1d3)](this[_0x17887b(0x1cc)]);}[_0x305066(0x1de)](){var _0x589682=_0x305066;super[_0x589682(0x1de)](),this[_0x589682(0x1cc)][_0x589682(0x1dd)][_0x589682(0x1db)]=this[_0x589682(0x1e3)][_0x589682(0x1ca)],this[_0x589682(0x1c6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4cd551=_0x2b0c;function _0xc08e(){const _0x25ce34=['1043682OYfFWP','addFileToContext','toggleReasoning','addUrlToContext','loadSourceResources','selectModel','removeContextItem','601974rzjDsh','toggleWebSearch','1365164sfFBVu','8344345xFZARO','resizeTabs','startConversation','sendUserMessage','37156392eUWwmm','abortPromptStream','1665047nRgncR','addDocumentToContext','1598152TjGwGl','addResourceToContext'];_0xc08e=function(){return _0x25ce34;};return _0xc08e();}(function(_0x4904f9,_0x2c0ce7){const _0x1672c4=_0x2b0c,_0x574275=_0x4904f9();while(!![]){try{const _0x394056=-parseInt(_0x1672c4(0x15c))/0x1+-parseInt(_0x1672c4(0x155))/0x2+parseInt(_0x1672c4(0x153))/0x3+-parseInt(_0x1672c4(0x15e))/0x4+-parseInt(_0x1672c4(0x156))/0x5+-parseInt(_0x1672c4(0x160))/0x6+parseInt(_0x1672c4(0x15a))/0x7;if(_0x394056===_0x2c0ce7)break;else _0x574275['push'](_0x574275['shift']());}catch(_0xe1ac0){_0x574275['push'](_0x574275['shift']());}}}(_0xc08e,0xe04cb));function _0x2b0c(_0x157f54,_0x4520be){const _0xc08ee5=_0xc08e();return _0x2b0c=function(_0x2b0c81,_0x1d62a2){_0x2b0c81=_0x2b0c81-0x14e;let _0x28f622=_0xc08ee5[_0x2b0c81];return _0x28f622;},_0x2b0c(_0x157f54,_0x4520be);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x377b7e}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x377b7e,_0x4cd551(0x158),_0x4cd551(0x157),_0x4cd551(0x159),_0x4cd551(0x15b),_0x4cd551(0x15d),_0x4cd551(0x161),_0x4cd551(0x14f),_0x4cd551(0x15f),_0x4cd551(0x152),_0x4cd551(0x150),_0x4cd551(0x154),_0x4cd551(0x14e),_0x4cd551(0x151)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xdc19a=_0x48c0;(function(_0x40a783,_0x4e99a0){const _0x535f81=_0x48c0,_0x4833bf=_0x40a783();while(!![]){try{const _0x13a366=-parseInt(_0x535f81(0x1e1))/0x1+-parseInt(_0x535f81(0x1db))/0x2*(parseInt(_0x535f81(0x1d8))/0x3)+parseInt(_0x535f81(0x1e8))/0x4*(-parseInt(_0x535f81(0x1e9))/0x5)+parseInt(_0x535f81(0x1d6))/0x6*(-parseInt(_0x535f81(0x1ea))/0x7)+-parseInt(_0x535f81(0x1d2))/0x8+-parseInt(_0x535f81(0x1e0))/0x9*(-parseInt(_0x535f81(0x1e4))/0xa)+parseInt(_0x535f81(0x1d3))/0xb*(parseInt(_0x535f81(0x1e3))/0xc);if(_0x13a366===_0x4e99a0)break;else _0x4833bf['push'](_0x4833bf['shift']());}catch(_0x488076){_0x4833bf['push'](_0x4833bf['shift']());}}}(_0x14a0,0x7cd21));function _0x48c0(_0x4bb995,_0x3dc948){const _0x14a07b=_0x14a0();return _0x48c0=function(_0x48c0c6,_0xd80d58){_0x48c0c6=_0x48c0c6-0x1d0;let _0xe422b3=_0x14a07b[_0x48c0c6];return _0xe422b3;},_0x48c0(_0x4bb995,_0x3dc948);}import{EmitterMixin as _0x33340a}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x33340a(){[_0xdc19a(0x1d1)]=[];[_0xdc19a(0x1d0)]=!0x1;[_0xdc19a(0x1dd)];async[_0xdc19a(0x1ed)](_0x1ba557){const _0x5f286a=_0xdc19a,_0x527ef8=this[_0x5f286a(0x1d7)](_0x1ba557);return this[_0x5f286a(0x1d1)][_0x5f286a(0x1e6)](_0x527ef8),this[_0x5f286a(0x1de)](),_0x527ef8[_0x5f286a(0x1d4)];}[_0xdc19a(0x1da)](){const _0x33a559=_0xdc19a;this[_0x33a559(0x1d0)]&&(this[_0x33a559(0x1dd)][_0x33a559(0x1da)](),this[_0x33a559(0x1dd)]=void 0x0,this[_0x33a559(0x1d1)]=[],this[_0x33a559(0x1ee)](_0x33a559(0x1d9)),this[_0x33a559(0x1d0)]=!0x1);}get[_0xdc19a(0x1dc)](){const _0x1685aa=_0xdc19a;return this[_0x1685aa(0x1d1)][_0x1685aa(0x1ec)]||this[_0x1685aa(0x1d0)]?new Promise(_0x544c0b=>{const _0x1d9c77=_0x1685aa;this[_0x1d9c77(0x1df)](_0x1d9c77(0x1d9),()=>{_0x544c0b();});}):Promise[_0x1685aa(0x1e5)]();}async[_0xdc19a(0x1de)](){const _0x1c4062=_0xdc19a;if(!this[_0x1c4062(0x1d0)]){this[_0x1c4062(0x1dd)]=new AbortController(),this[_0x1c4062(0x1d0)]=!0x0;try{for(;this[_0x1c4062(0x1d1)][_0x1c4062(0x1ec)]&&this[_0x1c4062(0x1d0)];){const _0x1d8cfb=this[_0x1c4062(0x1d1)][_0x1c4062(0x1eb)]();try{await _0x1d8cfb[_0x1c4062(0x1d5)](this[_0x1c4062(0x1dd)][_0x1c4062(0x1e2)]),_0x1d8cfb[_0x1c4062(0x1e5)]();}catch(_0x374dcc){_0x1d8cfb[_0x1c4062(0x1e7)](_0x374dcc);}}}finally{this[_0x1c4062(0x1d0)]=!0x1,this[_0x1c4062(0x1dd)]=void 0x0;}this[_0x1c4062(0x1ee)](_0x1c4062(0x1d9));}}[_0xdc19a(0x1d7)](_0x4e4e49){let _0x1591b5,_0x186ed9;const _0x5f4f4f=new Promise((_0x605b15,_0x198769)=>{_0x1591b5=_0x605b15,_0x186ed9=_0x198769;});return{'callback':_0x4e4e49,'resolve':_0x1591b5,'reject':_0x186ed9,'completePromise':_0x5f4f4f};}}function _0x14a0(){const _0x1cfca0=['once','81ZMuBKR','944170bgWgoM','signal','21490416PMVLZW','466660HgEJHM','resolve','push','reject','14844coVbEe','430eCkVCY','245nzcqYV','shift','length','enqueue','fire','isProcessing','queue','7600720YCRXAD','22fpdesV','completePromise','callback','134838kqtjUm','createTask','38724ZQzKWJ','_queueEmpty','abort','76WidznZ','queueEmptyPromise','_abortController','_processQueue'];_0x14a0=function(){return _0x1cfca0;};return _0x14a0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43c3b2=_0x18b0;function _0x221b(){const _0x46087e=['isRunning','PageDown','start','ArrowUp','1957730aNsQFs','74943IGmMCC','touchstart','isUserPaused','addEventListener','type','scrollTo','436612miMhJu','auto','82114ELxlpZ','key','PageUp','_stop','signal','wheel','animationFrameId','pointerdown','_rafUpdate','keydown','abort','destroy','scrollHeight','abortController','Home','4557445iKYiHC','deltaY','includes','60ASqIRk','End','156hUedZs','7104qmRbnf','11wcgQlp','ArrowDown','bind','521164fDlegb','486qcfJCq','48ZIYRJD','_onUserEvent','element','_isAtBottom','stop'];_0x221b=function(){return _0x46087e;};return _0x221b();}(function(_0x45780a,_0x380deb){const _0x3f96a4=_0x18b0,_0x4c2ad2=_0x45780a();while(!![]){try{const _0x22a7be=-parseInt(_0x3f96a4(0xb8))/0x1*(parseInt(_0x3f96a4(0xcf))/0x2)+-parseInt(_0x3f96a4(0xc7))/0x3*(parseInt(_0x3f96a4(0xe3))/0x4)+parseInt(_0x3f96a4(0xde))/0x5+parseInt(_0x3f96a4(0xbd))/0x6*(parseInt(_0x3f96a4(0xbb))/0x7)+-parseInt(_0x3f96a4(0xb7))/0x8*(-parseInt(_0x3f96a4(0xbc))/0x9)+parseInt(_0x3f96a4(0xc6))/0xa+parseInt(_0x3f96a4(0xcd))/0xb*(parseInt(_0x3f96a4(0xe1))/0xc);if(_0x22a7be===_0x380deb)break;else _0x4c2ad2['push'](_0x4c2ad2['shift']());}catch(_0x26d2ff){_0x4c2ad2['push'](_0x4c2ad2['shift']());}}}(_0x221b,0x7fc8c));const os=[_0x43c3b2(0xd4),_0x43c3b2(0xc8),_0x43c3b2(0xd6),_0x43c3b2(0xd8)],rs=[_0x43c3b2(0xc5),_0x43c3b2(0xb9),_0x43c3b2(0xd1),_0x43c3b2(0xc3),_0x43c3b2(0xdd),_0x43c3b2(0xe2),'\x20'];function _0x18b0(_0xf568c6,_0x3e5eb8){const _0x221b89=_0x221b();return _0x18b0=function(_0x18b09c,_0x7ba1ab){_0x18b09c=_0x18b09c-0xb7;let _0xa37af1=_0x221b89[_0x18b09c];return _0xa37af1;},_0x18b0(_0xf568c6,_0x3e5eb8);}export class ScrollManager{[_0x43c3b2(0xbf)];[_0x43c3b2(0xd5)];[_0x43c3b2(0xc2)];[_0x43c3b2(0xdc)];[_0x43c3b2(0xc9)];constructor(_0x68acc7){const _0x32eb03=_0x43c3b2;this[_0x32eb03(0xbf)]=_0x68acc7,this[_0x32eb03(0xd5)]=null,this[_0x32eb03(0xc2)]=!0x1,this[_0x32eb03(0xdc)]=new AbortController(),this[_0x32eb03(0xc9)]=!0x1;for(const _0x393a21 of os){const _0x1c6453=_0x32eb03(0xd8)!==_0x393a21;this[_0x32eb03(0xbf)][_0x32eb03(0xca)](_0x393a21,this[_0x32eb03(0xbe)][_0x32eb03(0xba)](this),{'passive':_0x1c6453,'signal':this[_0x32eb03(0xdc)][_0x32eb03(0xd3)]});}}[_0x43c3b2(0xc4)](){const _0x176afe=_0x43c3b2;this[_0x176afe(0xc2)]||(this[_0x176afe(0xc2)]=!0x0,this[_0x176afe(0xc9)]=!0x1,this[_0x176afe(0xd5)]=requestAnimationFrame(this[_0x176afe(0xd7)][_0x176afe(0xba)](this)));}[_0x43c3b2(0xc1)](){requestAnimationFrame(()=>{const _0x1bca9f=_0x18b0;this[_0x1bca9f(0xd2)]();});}[_0x43c3b2(0xda)](){const _0x157c8f=_0x43c3b2;this[_0x157c8f(0xd2)](),this[_0x157c8f(0xdc)][_0x157c8f(0xd9)]();}[_0x43c3b2(0xd2)](){const _0x5b8edc=_0x43c3b2;null!==this[_0x5b8edc(0xd5)]&&(cancelAnimationFrame(this[_0x5b8edc(0xd5)]),this[_0x5b8edc(0xd5)]=null),this[_0x5b8edc(0xc2)]&&(this[_0x5b8edc(0xc2)]=!0x1),this[_0x5b8edc(0xc9)]=!0x1;}[_0x43c3b2(0xbe)](_0x2a2557){const _0x577cff=_0x43c3b2;if(this[_0x577cff(0xc2)]){if(_0x577cff(0xd8)===_0x2a2557[_0x577cff(0xcb)]){const _0x1ca3de=_0x2a2557[_0x577cff(0xd0)];if(!rs[_0x577cff(0xe0)](_0x1ca3de))return;}_0x2a2557 instanceof WheelEvent?_0x2a2557[_0x577cff(0xdf)]<0x0?this[_0x577cff(0xc9)]=!0x0:this[_0x577cff(0xc9)]=!this[_0x577cff(0xc0)]():this[_0x577cff(0xc9)]=!0x0;}}[_0x43c3b2(0xc0)](){const _0x4eb840=_0x43c3b2,{scrollTop:_0x529d0a,scrollHeight:_0x272252,clientHeight:_0x6c2dbf}=this[_0x4eb840(0xbf)];return _0x272252-_0x529d0a-_0x6c2dbf<=0x5;}[_0x43c3b2(0xd7)](){const _0x10b217=_0x43c3b2;this[_0x10b217(0xc2)]&&(this[_0x10b217(0xc9)]||this[_0x10b217(0xbf)][_0x10b217(0xcc)]({'top':this[_0x10b217(0xbf)][_0x10b217(0xdb)],'behavior':_0x10b217(0xce)}),this[_0x10b217(0xd5)]=requestAnimationFrame(this[_0x10b217(0xd7)][_0x10b217(0xba)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c495f=_0x10c9;function _0x10c9(_0x2e3f83,_0xa91257){var _0x3693d3=_0x3693();return _0x10c9=function(_0x10c986,_0x2fffa5){_0x10c986=_0x10c986-0xb7;var _0x24046a=_0x3693d3[_0x10c986];return _0x24046a;},_0x10c9(_0x2e3f83,_0xa91257);}(function(_0x2aec39,_0x4ea670){var _0x2ef8db=_0x10c9,_0x2da501=_0x2aec39();while(!![]){try{var _0x24b848=-parseInt(_0x2ef8db(0xbf))/0x1*(parseInt(_0x2ef8db(0xb8))/0x2)+parseInt(_0x2ef8db(0xc5))/0x3+parseInt(_0x2ef8db(0xbd))/0x4*(parseInt(_0x2ef8db(0xb7))/0x5)+-parseInt(_0x2ef8db(0xb9))/0x6+parseInt(_0x2ef8db(0xba))/0x7+-parseInt(_0x2ef8db(0xbb))/0x8+-parseInt(_0x2ef8db(0xc2))/0x9*(-parseInt(_0x2ef8db(0xc3))/0xa);if(_0x24b848===_0x4ea670)break;else _0x2da501['push'](_0x2da501['shift']());}catch(_0x112ff0){_0x2da501['push'](_0x2da501['shift']());}}}(_0x3693,0xb7a20));import{ContextPlugin as _0x486123}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x57280b}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x2a77c3}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x486123{static get[_0x5c495f(0xbe)](){return[_0x57280b,_0x2a77c3];}static get[_0x5c495f(0xc0)](){var _0x1c4e34=_0x5c495f;return _0x1c4e34(0xc1);}static get[_0x5c495f(0xbc)](){return!0x0;}static get[_0x5c495f(0xc4)](){return!0x0;}}function _0x3693(){var _0x77d8ca=['1270944BBfnTS','isOfficialPlugin','20ZcyZkx','requires','812459zrobpS','pluginName','AIChatHistory','27uEsXaD','3091640TEalHm','isPremiumPlugin','3250530SzKZoZ','408635gGaddF','2gCwGrb','7963380DnXnpl','4417560SXhGCo'];_0x3693=function(){return _0x77d8ca;};return _0x3693();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x55af39=_0x20b2;(function(_0x1e2e4a,_0x5a0a45){const _0x263f25=_0x20b2,_0x5e14b4=_0x1e2e4a();while(!![]){try{const _0x18bdd3=parseInt(_0x263f25(0x1af))/0x1+parseInt(_0x263f25(0x176))/0x2+-parseInt(_0x263f25(0x195))/0x3*(parseInt(_0x263f25(0x18f))/0x4)+-parseInt(_0x263f25(0x17c))/0x5*(parseInt(_0x263f25(0x1b7))/0x6)+parseInt(_0x263f25(0x1b8))/0x7+-parseInt(_0x263f25(0x1b2))/0x8+-parseInt(_0x263f25(0x186))/0x9;if(_0x18bdd3===_0x5a0a45)break;else _0x5e14b4['push'](_0x5e14b4['shift']());}catch(_0x8f286e){_0x5e14b4['push'](_0x5e14b4['shift']());}}}(_0x3507,0x56383));function _0x3507(){const _0xf1d08d=['_showConversationHistory','locale','AIChatHistoryController','1735COeWWn','updateItems','setIsMaximized','loadConversation','isPremiumPlugin','setDate','handleRemovedConversation','openChat','_setItemLoading','remove','685890vvSQRg','context','AI_CHAT_HISTORY_ERROR_GENERIC','createdAt','showError','_handleTogglePin','_aiConnector','selectConversation','itemRemoved','4eAflyk','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','init','AI_CHAT_HISTORY_UNPIN_ACTION','getDate','getGroupId','1397793PNDOqj','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_PINNED','getItem','getMonth','_handleEditTitle','updateItemTitle','updates','getFullYear','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','error','plugins','_aiChatHistoryUi','history','removeHistoryItem','_setIsMaximized','_clearItemLoading','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','activeConversation','change:activeConversation','map','activateTab:history','rename','push','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','440833cEmzwE','title','_handleRemove','1937224pQKjiw','resizedTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleHistoryErrorUI','_handleSelectConversation','11226OAKKnJ','4903626uwOnoa','updateItemPinned','operation','chat','length','itemsLoaded','requires','pluginName','_generateErrorMessage','editConversationTitle','pinned','AI_CHAT_HISTORY_CATEGORY_TODAY','activateTab','AI_CHAT_HISTORY_PIN_ACTION','itemId','updateItemLoadingState','view','getItems','_aiChatController','listenTo','get','removeConversation','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_LATER','removeItem','toLocaleDateString','itemUpdated','resize','loadItems','isOfficialPlugin','_updateHistoryItemsUI','pin','resizeTabs','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','1290670tZUEzP','items','unpin'];_0x3507=function(){return _0xf1d08d;};return _0x3507();}import{ContextPlugin as _0x4b19aa}from'ckeditor5/src/core.js';import{AIConnector as _0x520eef}from'../aicore/aiconnector.js';function _0x20b2(_0x47f18f,_0x40dfdf){const _0x3507c4=_0x3507();return _0x20b2=function(_0x20b294,_0x4c89e5){_0x20b294=_0x20b294-0x172;let _0x505ee9=_0x3507c4[_0x20b294];return _0x505ee9;},_0x20b2(_0x47f18f,_0x40dfdf);}import{AIChatController as _0x54d777}from'../aichat/aichatcontroller.js';import{AITabs as _0x395059}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4bbe15}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2c82d1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3c438e}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4b19aa{[_0x55af39(0x18c)];[_0x55af39(0x1a1)];[_0x55af39(0x1ca)];static get[_0x55af39(0x1be)](){return[_0x520eef,_0x54d777,_0x4bbe15,_0x395059];}static get[_0x55af39(0x1bf)](){const _0x5cf960=_0x55af39;return _0x5cf960(0x17b);}static get[_0x55af39(0x1d5)](){return!0x0;}static get[_0x55af39(0x180)](){return!0x0;}[_0x55af39(0x191)](){const _0x2cd2ce=_0x55af39;this[_0x2cd2ce(0x18c)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x520eef),this[_0x2cd2ce(0x1a1)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x4bbe15),this[_0x2cd2ce(0x1ca)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x54d777);const _0x2c081f=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x395059),_0xdb6f27=this[_0x2cd2ce(0x1ca)][_0x2cd2ce(0x194)]();this[_0x2cd2ce(0x1a2)]=new _0x2c82d1({'connector':this[_0x2cd2ce(0x18c)],'group':_0xdb6f27}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1cd),(_0x5a49c0,_0xc4593b)=>{const _0x508dd3=_0x2cd2ce;this[_0x508dd3(0x184)](_0xc4593b['id'],_0x508dd3(0x185)),this[_0x508dd3(0x1b1)](_0xc4593b['id']);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1c1),(_0x1f2d7d,_0x181f57)=>{const _0x117d87=_0x2cd2ce;this[_0x117d87(0x184)](_0x181f57['id'],_0x117d87(0x1ac)),this[_0x117d87(0x19a)](_0x181f57['id'],_0x181f57[_0x117d87(0x1b0)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x1d2),(_0x3626f3,_0x2e5f92)=>{const _0x1babc3=_0x2cd2ce;void 0x0!==_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1b0)]&&this[_0x1babc3(0x1a1)][_0x1babc3(0x19b)](_0x2e5f92[_0x1babc3(0x1c6)],_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1b0)]),void 0x0!==_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1c2)]&&this[_0x1babc3(0x1d6)](),this[_0x1babc3(0x1a5)](_0x2e5f92[_0x1babc3(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x18e),(_0x2b122f,_0x40f6e5)=>{const _0x15701d=_0x2cd2ce;this[_0x15701d(0x1ca)][_0x15701d(0x182)](_0x40f6e5[_0x15701d(0x1c6)]),this[_0x15701d(0x1a1)][_0x15701d(0x1a3)](_0x40f6e5[_0x15701d(0x1c6)]),this[_0x15701d(0x1a5)](_0x40f6e5[_0x15701d(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x1bd),()=>{const _0x583e06=_0x2cd2ce;this[_0x583e06(0x1d6)]();}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x19f),(_0x46b751,_0x69c75b)=>{const _0x37765c=_0x2cd2ce;this[_0x37765c(0x1b5)](_0x69c75b[_0x37765c(0x19f)],_0x69c75b[_0x37765c(0x1ba)],_0x69c75b[_0x37765c(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x18d),(_0x14fc85,_0x1991e0)=>{const _0x433905=_0x2cd2ce;this[_0x433905(0x1b6)](_0x1991e0['id']);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1a6),(_0xb1bd02,_0x1fc81d)=>{const _0x36d11a=_0x2cd2ce,_0x512780=_0x1fc81d[_0x36d11a(0x1c2)]?_0x36d11a(0x172):_0x36d11a(0x178);this[_0x36d11a(0x184)](_0x1fc81d['id'],_0x512780),this[_0x36d11a(0x18b)](_0x1fc81d['id'],_0x1fc81d[_0x36d11a(0x1c2)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x183),()=>{const _0x6248bd=_0x2cd2ce;_0x2c081f[_0x6248bd(0x1c8)][_0x6248bd(0x1c4)](_0x6248bd(0x1bb));}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1ca)],_0x2cd2ce(0x1a9),()=>{const _0x3b0f5f=_0x2cd2ce;this[_0x3b0f5f(0x1d6)]();}),_0x2c081f[_0x2cd2ce(0x1c8)]['on'](_0x2cd2ce(0x1ab),()=>{const _0x4bb598=_0x2cd2ce;this[_0x4bb598(0x179)]();}),this[_0x2cd2ce(0x1cb)](_0x2c081f,_0x2cd2ce(0x1b3),(_0x3fa33b,_0x4a3270)=>{const _0x4b848e=_0x2cd2ce;this[_0x4b848e(0x1a4)](_0x4a3270);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x173),()=>{const _0x58cb25=_0x2cd2ce;_0x2c081f[_0x58cb25(0x1d3)]();});}async[_0x55af39(0x19a)](_0x3f6890,_0x577b69){const _0x284477=_0x55af39;await this[_0x284477(0x1a2)][_0x284477(0x19b)](_0x3f6890,_0x577b69);}async[_0x55af39(0x18b)](_0x1b6b6b,_0x4bbda3){const _0x50d415=_0x55af39;await this[_0x50d415(0x1a2)][_0x50d415(0x1b9)](_0x1b6b6b,_0x4bbda3);}async[_0x55af39(0x1b1)](_0x468467){const _0x585135=_0x55af39;await this[_0x585135(0x1a2)][_0x585135(0x1d0)](_0x468467);}async[_0x55af39(0x1b6)](_0x57a566){const _0x95bc12=_0x55af39;await this[_0x95bc12(0x1ca)][_0x95bc12(0x17f)](_0x57a566);}async[_0x55af39(0x179)](){const _0x578053=_0x55af39;this[_0x578053(0x1a1)][_0x578053(0x18a)](''),this[_0x578053(0x1a1)][_0x578053(0x1ce)](!0x0),await this[_0x578053(0x1a2)][_0x578053(0x191)](),this[_0x578053(0x1a1)][_0x578053(0x1ce)](!0x1);}[_0x55af39(0x1d6)](){const _0xcd54a=_0x55af39,_0x5864f8=this[_0xcd54a(0x1ca)][_0xcd54a(0x1a8)]?.['id'],_0x41d575=this[_0xcd54a(0x174)]()[_0xcd54a(0x1aa)](_0x277ddf=>({'title':_0x277ddf[_0xcd54a(0x1b0)],'items':_0x277ddf[_0xcd54a(0x177)][_0xcd54a(0x1aa)](_0x100961=>({'id':_0x100961['id'],'title':_0x100961[_0xcd54a(0x1b0)]||_0x3c438e(this[_0xcd54a(0x187)][_0xcd54a(0x17a)],_0xcd54a(0x196)),'createdAt':new Date(_0x100961[_0xcd54a(0x189)])[_0xcd54a(0x1d1)](),'active':_0x100961['id']===_0x5864f8,'pinned':_0x100961[_0xcd54a(0x1c2)]}))}));this[_0xcd54a(0x1a1)][_0xcd54a(0x17d)](_0x41d575);}[_0x55af39(0x184)](_0x210395,_0x355e27){const _0x1fd298=_0x55af39;this[_0x1fd298(0x1a1)][_0x1fd298(0x1c7)](_0x210395,_0x355e27,!0x0);}[_0x55af39(0x1a5)](_0x5ce857){const _0x4f04df=_0x55af39;this[_0x4f04df(0x1a1)][_0x4f04df(0x1c7)](_0x5ce857,null,!0x1);}[_0x55af39(0x1b5)](_0x235d19,_0x5b7f5b,_0x181323){const _0x461c74=_0x55af39,_0x1de15d=this[_0x461c74(0x1c0)](_0x5b7f5b,_0x181323);this[_0x461c74(0x1a1)][_0x461c74(0x18a)](_0x1de15d),_0x181323&&this[_0x461c74(0x1a5)](_0x181323),this[_0x461c74(0x1a1)][_0x461c74(0x1ce)](!0x1);}[_0x55af39(0x1c0)](_0xa472f1,_0x2d89bb){const _0xdc61d9=_0x55af39,_0x454797=_0x2d89bb?this[_0xdc61d9(0x1a2)][_0xdc61d9(0x198)](_0x2d89bb):null,_0x169200=_0x454797?.[_0xdc61d9(0x1b0)]||_0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x196));switch(_0xa472f1){case _0xdc61d9(0x19b):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x1ae),_0x169200);case _0xdc61d9(0x1b9):{const _0x1a03ad=_0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0x454797?.[_0xdc61d9(0x1c2)]?_0xdc61d9(0x192):_0xdc61d9(0x1c5));return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x19e),[_0x1a03ad,_0x169200]);}case _0xdc61d9(0x1d0):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x1b4),_0x169200);case _0xdc61d9(0x191):case _0xdc61d9(0x1d4):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x175));default:return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x188));}}[_0x55af39(0x174)](){const _0x12bfcb=_0x55af39,_0x5e7dc4=new Date(),_0x320759=new Date(_0x5e7dc4[_0x12bfcb(0x19d)](),_0x5e7dc4[_0x12bfcb(0x199)](),_0x5e7dc4[_0x12bfcb(0x193)]()),_0x26fa23=new Date(_0x320759);_0x26fa23[_0x12bfcb(0x181)](_0x26fa23[_0x12bfcb(0x193)]()-0x1);const _0x330458=new Date(_0x320759);_0x330458[_0x12bfcb(0x181)](_0x330458[_0x12bfcb(0x193)]()-0xe);const _0x15565d=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'pinned':!0x0}),_0x68ce4d=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x320759,'to':_0x320759}),_0xccce0a=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x26fa23,'to':_0x26fa23}),_0x41fbb0=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x330458,'to':_0x26fa23}),_0x2dcfbd=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'to':_0x330458}),_0x11d326=[];return _0x15565d[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x197)),'items':_0x15565d}),_0x68ce4d[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1c3)),'items':_0x68ce4d}),_0xccce0a[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x190)),'items':_0xccce0a}),_0x41fbb0[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1a7)),'items':_0x41fbb0}),_0x2dcfbd[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1cf)),'items':_0x2dcfbd}),_0x11d326;}[_0x55af39(0x1a4)](_0x252442){const _0x2e7c6f=_0x55af39;this[_0x2e7c6f(0x1a1)][_0x2e7c6f(0x17e)](_0x252442);}}
|
|
23
|
+
const _0x1dcb41=_0x77e5;(function(_0x28ef01,_0x4d5c8a){const _0x1a4e48=_0x77e5,_0x2fbd4a=_0x28ef01();while(!![]){try{const _0x337e6e=-parseInt(_0x1a4e48(0x9d))/0x1+-parseInt(_0x1a4e48(0xc5))/0x2+-parseInt(_0x1a4e48(0x9c))/0x3*(-parseInt(_0x1a4e48(0xab))/0x4)+parseInt(_0x1a4e48(0xa9))/0x5*(parseInt(_0x1a4e48(0x9a))/0x6)+-parseInt(_0x1a4e48(0xbe))/0x7+parseInt(_0x1a4e48(0xb4))/0x8*(-parseInt(_0x1a4e48(0x9f))/0x9)+parseInt(_0x1a4e48(0xae))/0xa;if(_0x337e6e===_0x4d5c8a)break;else _0x2fbd4a['push'](_0x2fbd4a['shift']());}catch(_0x11c7ce){_0x2fbd4a['push'](_0x2fbd4a['shift']());}}}(_0x3bde,0x6c384));import{ContextPlugin as _0x1e5935}from'ckeditor5/src/core.js';import{AIConnector as _0x4f6d4c}from'../aicore/aiconnector.js';import{AIChatController as _0xda986e}from'../aichat/aichatcontroller.js';import{AITabs as _0x506d86}from'../aitabs/aitabs.js';function _0x77e5(_0x43838f,_0x2ceb6b){const _0x3bde61=_0x3bde();return _0x77e5=function(_0x77e500,_0x46d6f9){_0x77e500=_0x77e500-0x64;let _0x54950e=_0x3bde61[_0x77e500];return _0x54950e;},_0x77e5(_0x43838f,_0x2ceb6b);}import{AIChatHistoryUI as _0x596bd3}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x560d00}from'./model/aichathistoryconversations.js';import{getTranslation as _0x4de554}from'../aicore/utils/common-translations.js';function _0x3bde(){const _0x35c72b=['_handleTogglePin','toLocaleDateString','getItems','context','unpin','8DMppeG','getItem','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','get','AI_CHAT_HISTORY_CATEGORY_LATER','init','itemId','removeItem','showError','5752817mmkLpN','pin','title','itemsLoaded','items','updateItemTitle','change:activeConversation','791976PuubWa','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_setIsMaximized','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','openChat','getMonth','updateItemPinned','setDate','_setItemLoading','_generateErrorMessage','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','AI_CHAT_HISTORY_CATEGORY_PINNED','loadConversation','_aiConnector','activateTab:history','push','requires','chat','length','AI_CHAT_UNTITLED_CONVERSATION','activateTab','isPremiumPlugin','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','locale','setIsMaximized','resize','createdAt','removeConversation','getFullYear','_handleSelectConversation','itemRemoved','updateItems','pinned','rename','itemUpdated','pluginName','_showConversationHistory','view','_aiChatController','getDate','updates','setLoadingSkeleton','loadItems','operation','AI_CHAT_HISTORY_ERROR_GENERIC','map','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','selectConversation','listenTo','AIChatHistoryController','_aiChatHistoryUi','editConversationTitle','_updateHistoryItemsUI','history','plugins','removeHistoryItem','resizedTabs','6bbsCFP','activeConversation','226080sdgXrI','445917FouWEq','_handleRemove','4426479QMjOev','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','resizeTabs','_handleHistoryErrorUI','AI_CHAT_HISTORY_UNPIN_ACTION','setConversationPinned','getGroupId','AI_CHAT_HISTORY_CATEGORY_TODAY','updateItemLoadingState','3648860xhFkBn','_clearItemLoading','36sXkZBr','_handleEditTitle','error','11908230ZXMsWT'];_0x3bde=function(){return _0x35c72b;};return _0x3bde();}export class AIChatHistoryController extends _0x1e5935{[_0x1dcb41(0x6d)];[_0x1dcb41(0x93)];[_0x1dcb41(0x86)];static get[_0x1dcb41(0x70)](){return[_0x4f6d4c,_0xda986e,_0x596bd3,_0x506d86];}static get[_0x1dcb41(0x83)](){const _0x31999e=_0x1dcb41;return _0x31999e(0x92);}static get[_0x1dcb41(0xa0)](){return!0x0;}static get[_0x1dcb41(0x75)](){return!0x0;}[_0x1dcb41(0xba)](){const _0x255065=_0x1dcb41;this[_0x255065(0x6d)]=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0x4f6d4c),this[_0x255065(0x93)]=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0x596bd3),this[_0x255065(0x86)]=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0xda986e);const _0x595d8a=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0x506d86),_0x379d80=this[_0x255065(0x86)][_0x255065(0xa6)]();this[_0x255065(0x96)]=new _0x560d00({'connector':this[_0x255065(0x6d)],'group':_0x379d80}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0x7b),(_0x3ca76d,_0x1139b1)=>{const _0x52a7ef=_0x255065;this[_0x52a7ef(0x67)](_0x1139b1['id'],_0x52a7ef(0x6a)),this[_0x52a7ef(0x9e)](_0x1139b1['id']);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0x94),(_0x40f7a5,_0x38aca0)=>{const _0x393f23=_0x255065;this[_0x393f23(0x67)](_0x38aca0['id'],_0x393f23(0x81)),this[_0x393f23(0xac)](_0x38aca0['id'],_0x38aca0[_0x393f23(0xc0)]);}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0x82),(_0x525dcd,_0x13f656)=>{const _0x55f188=_0x255065;void 0x0!==_0x13f656[_0x55f188(0x88)][_0x55f188(0xc0)]&&this[_0x55f188(0x93)][_0x55f188(0xc3)](_0x13f656[_0x55f188(0xbb)],_0x13f656[_0x55f188(0x88)][_0x55f188(0xc0)]),void 0x0!==_0x13f656[_0x55f188(0x88)][_0x55f188(0x80)]&&this[_0x55f188(0x95)](),this[_0x55f188(0xaa)](_0x13f656[_0x55f188(0xbb)]);}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0x7e),(_0x53ec68,_0x77f5d8)=>{const _0x3623c1=_0x255065;this[_0x3623c1(0x86)][_0x3623c1(0xb6)](_0x77f5d8[_0x3623c1(0xbb)]),this[_0x3623c1(0x93)][_0x3623c1(0x98)](_0x77f5d8[_0x3623c1(0xbb)]),this[_0x3623c1(0xaa)](_0x77f5d8[_0x3623c1(0xbb)]);}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0xc1),()=>{const _0x1df753=_0x255065;this[_0x1df753(0x95)]();}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0xad),(_0x440e3e,_0x5c5c78)=>{const _0xf2384e=_0x255065;this[_0xf2384e(0xa3)](_0x5c5c78[_0xf2384e(0xad)],_0x5c5c78[_0xf2384e(0x8b)],_0x5c5c78[_0xf2384e(0xbb)]);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0x90),(_0x11ae5a,_0x65996d)=>{const _0x187855=_0x255065;this[_0x187855(0x7d)](_0x65996d['id']);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0xa5),(_0x2d501a,_0x4fb523)=>{const _0x28057b=_0x255065,_0xa379da=_0x4fb523[_0x28057b(0x80)]?_0x28057b(0xbf):_0x28057b(0xb3);this[_0x28057b(0x67)](_0x4fb523['id'],_0xa379da),this[_0x28057b(0xaf)](_0x4fb523['id'],_0x4fb523[_0x28057b(0x80)]);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0xc9),()=>{const _0x8af3ba=_0x255065;_0x595d8a[_0x8af3ba(0x85)][_0x8af3ba(0x74)](_0x8af3ba(0x71));}),this[_0x255065(0x91)](this[_0x255065(0x86)],_0x255065(0xc4),()=>{const _0x4d2174=_0x255065;this[_0x4d2174(0x95)]();}),_0x595d8a[_0x255065(0x85)]['on'](_0x255065(0x6e),()=>{const _0x1bab0f=_0x255065;this[_0x1bab0f(0x84)]();}),this[_0x255065(0x91)](_0x595d8a,_0x255065(0x99),(_0x51911f,_0x4fa005)=>{const _0x5498f1=_0x255065;this[_0x5498f1(0xc7)](_0x4fa005);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0xa2),()=>{const _0x67da47=_0x255065;_0x595d8a[_0x67da47(0x79)]();});}async[_0x1dcb41(0xac)](_0x270add,_0x499891){const _0x22f041=_0x1dcb41;await this[_0x22f041(0x96)][_0x22f041(0xc3)](_0x270add,_0x499891);}async[_0x1dcb41(0xaf)](_0x46e7a0,_0x24aa1e){const _0x5b4fa6=_0x1dcb41;await this[_0x5b4fa6(0x96)][_0x5b4fa6(0x65)](_0x46e7a0,_0x24aa1e);}async[_0x1dcb41(0x9e)](_0x4d7941){const _0x2b3874=_0x1dcb41;await this[_0x2b3874(0x96)][_0x2b3874(0xbc)](_0x4d7941);}async[_0x1dcb41(0x7d)](_0x4b74ec){const _0x2983cd=_0x1dcb41;await this[_0x2983cd(0x86)][_0x2983cd(0x6c)](_0x4b74ec);}async[_0x1dcb41(0x84)](){const _0x5d79d6=_0x1dcb41;this[_0x5d79d6(0x93)][_0x5d79d6(0xbd)](''),this[_0x5d79d6(0x93)][_0x5d79d6(0x89)](!0x0),await this[_0x5d79d6(0x96)][_0x5d79d6(0xba)](),this[_0x5d79d6(0x93)][_0x5d79d6(0x89)](!0x1);}[_0x1dcb41(0x95)](){const _0x28d8fb=_0x1dcb41,_0x40c5c5=this[_0x28d8fb(0x86)][_0x28d8fb(0x9b)]?.['id'],_0x42b255=this[_0x28d8fb(0x8e)]()[_0x28d8fb(0x8d)](_0x1de72e=>({'title':_0x1de72e[_0x28d8fb(0xc0)],'items':_0x1de72e[_0x28d8fb(0xc2)][_0x28d8fb(0x8d)](_0x56a2e7=>({'id':_0x56a2e7['id'],'title':_0x56a2e7[_0x28d8fb(0xc0)]||_0x4de554(this[_0x28d8fb(0xb2)][_0x28d8fb(0x77)],_0x28d8fb(0x73)),'createdAt':new Date(_0x56a2e7[_0x28d8fb(0x7a)])[_0x28d8fb(0xb0)](),'active':_0x56a2e7['id']===_0x40c5c5,'pinned':_0x56a2e7[_0x28d8fb(0x80)]}))}));this[_0x28d8fb(0x93)][_0x28d8fb(0x7f)](_0x42b255);}[_0x1dcb41(0x67)](_0x2a8517,_0x58d5f6){const _0x12b0dc=_0x1dcb41;this[_0x12b0dc(0x93)][_0x12b0dc(0xa8)](_0x2a8517,_0x58d5f6,!0x0);}[_0x1dcb41(0xaa)](_0x535df4){const _0x201658=_0x1dcb41;this[_0x201658(0x93)][_0x201658(0xa8)](_0x535df4,null,!0x1);}[_0x1dcb41(0xa3)](_0x4b2818,_0x58f44f,_0x418a64){const _0xc94259=_0x1dcb41,_0x385cca=this[_0xc94259(0x68)](_0x58f44f,_0x418a64);this[_0xc94259(0x93)][_0xc94259(0xbd)](_0x385cca),_0x418a64&&this[_0xc94259(0xaa)](_0x418a64),this[_0xc94259(0x93)][_0xc94259(0x89)](!0x1);}[_0x1dcb41(0x68)](_0x306d82,_0xa0e2df){const _0x5bf0ff=_0x1dcb41,_0x47eb20=_0xa0e2df?this[_0x5bf0ff(0x96)][_0x5bf0ff(0xb5)](_0xa0e2df):null,_0x33f532=_0x47eb20?.[_0x5bf0ff(0xc0)]||_0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x73));switch(_0x306d82){case _0x5bf0ff(0xc3):return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0xb7),_0x33f532);case _0x5bf0ff(0x65):{const _0x34c684=_0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x47eb20?.[_0x5bf0ff(0x80)]?_0x5bf0ff(0xa4):_0x5bf0ff(0xa1));return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x8f),[_0x34c684,_0x33f532]);}case _0x5bf0ff(0xbc):return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x76),_0x33f532);case _0x5bf0ff(0xba):case _0x5bf0ff(0x8a):return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0xc8));default:return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x8c));}}[_0x1dcb41(0x8e)](){const _0x1c6907=_0x1dcb41,_0x18e3a7=new Date(),_0x3aea96=new Date(_0x18e3a7[_0x1c6907(0x7c)](),_0x18e3a7[_0x1c6907(0x64)](),_0x18e3a7[_0x1c6907(0x87)]()),_0x43d0ff=new Date(_0x3aea96);_0x43d0ff[_0x1c6907(0x66)](_0x43d0ff[_0x1c6907(0x87)]()-0x1);const _0x2ffe3b=new Date(_0x3aea96);_0x2ffe3b[_0x1c6907(0x66)](_0x2ffe3b[_0x1c6907(0x87)]()-0xe);const _0x441345=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'pinned':!0x0}),_0x25ffcd=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'from':_0x3aea96,'to':_0x3aea96}),_0x56b115=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'from':_0x43d0ff,'to':_0x43d0ff}),_0x202c51=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'from':_0x2ffe3b,'to':_0x43d0ff}),_0x3c9772=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'to':_0x2ffe3b}),_0x510d7e=[];return _0x441345[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0x6b)),'items':_0x441345}),_0x25ffcd[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0xa7)),'items':_0x25ffcd}),_0x56b115[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0x69)),'items':_0x56b115}),_0x202c51[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0xc6)),'items':_0x202c51}),_0x3c9772[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0xb9)),'items':_0x3c9772}),_0x510d7e;}[_0x1dcb41(0xc7)](_0x5abef9){const _0x105f25=_0x1dcb41;this[_0x105f25(0x93)][_0x105f25(0x78)](_0x5abef9);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d28ac=_0x3bf2;(function(_0x54516a,_0x4da318){const _0x1264ab=_0x3bf2,_0x3cc644=_0x54516a();while(!![]){try{const _0x3a7578=-parseInt(_0x1264ab(0x8e))/0x1*(-parseInt(_0x1264ab(0x86))/0x2)+parseInt(_0x1264ab(0x77))/0x3*(-parseInt(_0x1264ab(0x99))/0x4)+parseInt(_0x1264ab(0x81))/0x5*(parseInt(_0x1264ab(0x7c))/0x6)+-parseInt(_0x1264ab(0x76))/0x7*(-parseInt(_0x1264ab(0x7d))/0x8)+-parseInt(_0x1264ab(0x94))/0x9*(parseInt(_0x1264ab(0x9b))/0xa)+-parseInt(_0x1264ab(0x90))/0xb+parseInt(_0x1264ab(0x7b))/0xc*(parseInt(_0x1264ab(0xa2))/0xd);if(_0x3a7578===_0x4da318)break;else _0x3cc644['push'](_0x3cc644['shift']());}catch(_0x5212bc){_0x3cc644['push'](_0x3cc644['shift']());}}}(_0x2dd8,0x82713));import{ContextPlugin as _0x5edbc5}from'ckeditor5/src/core.js';import{AITabs as _0x3fc1a2}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1bda54}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x89a72f}from'./ui/aichathistoryview.js';function _0x3bf2(_0x77caa3,_0x535057){const _0x2dd8a4=_0x2dd8();return _0x3bf2=function(_0x3bf287,_0x5d2cb3){_0x3bf287=_0x3bf287-0x75;let _0x428dc3=_0x2dd8a4[_0x3bf287];return _0x428dc3;},_0x3bf2(_0x77caa3,_0x535057);}function _0x2dd8(){const _0xfd0e82=['openChat','showConversationHistory','resizeTabs','requires','52787WQZTvw','315GbqRQk','get','delegate','errorMessage','12XlwfsX','1092PsQNpR','728JCiVct','pluginName','updateHistoryItemsWithCategories','setConversationPinned','17215Dgieoi','setLoadingSkeleton','locale','hideError','plugins','6dFrhpQ','editConversationTitle','removeHistoryItem','isPremiumPlugin','updateItemTitle','updateItemLoadingState','setIsMaximized','AITabs','104767HVnbSR','showError','9877351VhSinL','updateItems','removeConversation','isOfficialPlugin','165213LVstRJ','_historyView','isLoading','context','view','11820HGjSIb','addTab','270sOvBxp','isMaximized','selectConversation','history','AIChatHistoryUI','AI_CHAT_HISTORY_HEADING','showResizeButton','7942844BCzQIb'];_0x2dd8=function(){return _0xfd0e82;};return _0x2dd8();}import{getTranslation as _0x510a65}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x5d28ac(0xa4),_0x5d28ac(0x92),_0x5d28ac(0x87),_0x5d28ac(0x80),_0x5d28ac(0x9d),_0x5d28ac(0xa3),_0x5d28ac(0xa5)];export class AIChatHistoryUI extends _0x5edbc5{static get[_0x5d28ac(0x75)](){return[_0x3fc1a2];}[_0x5d28ac(0x95)];static get[_0x5d28ac(0x7e)](){const _0x1fca27=_0x5d28ac;return _0x1fca27(0x9f);}static get[_0x5d28ac(0x93)](){return!0x0;}static get[_0x5d28ac(0x89)](){return!0x0;}constructor(_0x287eba){const _0x2ddf72=_0x5d28ac;super(_0x287eba);const _0x1eade2=this[_0x2ddf72(0x97)][_0x2ddf72(0x85)][_0x2ddf72(0x78)](_0x2ddf72(0x8d));this[_0x2ddf72(0x95)]=new _0x89a72f(this[_0x2ddf72(0x97)][_0x2ddf72(0x83)],_0x1eade2[_0x2ddf72(0xa1)]),this[_0x2ddf72(0x95)][_0x2ddf72(0x79)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1eade2[_0x2ddf72(0x98)][_0x2ddf72(0x9a)]({'id':_0x2ddf72(0x9e),'buttonLabel':_0x510a65(this[_0x2ddf72(0x97)][_0x2ddf72(0x83)],_0x2ddf72(0xa0)),'buttonIcon':_0x1bda54,'order':0x0,'content':this[_0x2ddf72(0x95)]});}[_0x5d28ac(0x88)](_0x8f483f){const _0x5c5885=_0x5d28ac;this[_0x5c5885(0x95)][_0x5c5885(0x88)](_0x8f483f);}[_0x5d28ac(0x91)](_0x15d17f){const _0x3ef6f0=_0x5d28ac;this[_0x3ef6f0(0x95)][_0x3ef6f0(0x7f)](_0x15d17f);}[_0x5d28ac(0x8a)](_0x1dc700,_0x1e47b6){const _0x40005a=_0x5d28ac;this[_0x40005a(0x95)][_0x40005a(0x8a)](_0x1dc700,_0x1e47b6);}[_0x5d28ac(0x8b)](_0x50b237,_0x3a75bb,_0xc1d6dd){const _0x3668ea=_0x5d28ac;this[_0x3668ea(0x95)][_0x3668ea(0x8b)](_0x50b237,_0x3a75bb,_0xc1d6dd);}[_0x5d28ac(0x82)](_0x2090e9){const _0x34399c=_0x5d28ac;this[_0x34399c(0x95)][_0x34399c(0x96)]=_0x2090e9;}[_0x5d28ac(0x8f)](_0x3944a6){const _0x8a2d46=_0x5d28ac;this[_0x8a2d46(0x95)][_0x8a2d46(0x7a)]=_0x3944a6;}[_0x5d28ac(0x84)](){const _0x5e287f=_0x5d28ac;this[_0x5e287f(0x95)][_0x5e287f(0x7a)]='';}[_0x5d28ac(0x8c)](_0x45b653){const _0xa94624=_0x5d28ac;this[_0xa94624(0x95)][_0xa94624(0x9c)]=_0x45b653;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd68a82=_0x1171;(function(_0x5183f1,_0x1d3eca){const _0x597e78=_0x1171,_0x520d1c=_0x5183f1();while(!![]){try{const _0x297726=-parseInt(_0x597e78(0x121))/0x1+parseInt(_0x597e78(0x10a))/0x2*(-parseInt(_0x597e78(0x107))/0x3)+-parseInt(_0x597e78(0xfe))/0x4+parseInt(_0x597e78(0x101))/0x5+parseInt(_0x597e78(0x114))/0x6*(-parseInt(_0x597e78(0x128))/0x7)+parseInt(_0x597e78(0x115))/0x8+-parseInt(_0x597e78(0x102))/0x9*(-parseInt(_0x597e78(0x10c))/0xa);if(_0x297726===_0x1d3eca)break;else _0x520d1c['push'](_0x520d1c['shift']());}catch(_0x19bd36){_0x520d1c['push'](_0x520d1c['shift']());}}}(_0x4933,0x8e1bd));function _0x1171(_0x5b37ac,_0x74ce3b){const _0x49333e=_0x4933();return _0x1171=function(_0x117131,_0x4c1811){_0x117131=_0x117131-0xfe;let _0xc779f2=_0x49333e[_0x117131];return _0xc779f2;},_0x1171(_0x5b37ac,_0x74ce3b);}import{EmitterMixin as _0x3a18ad}from'ckeditor5/src/utils.js';function _0x4933(){const _0x257bf7=['filter','items','getItem','createdAt','updateItemPinned','push','connector','fetchConversations','execute','fire','itemsLoaded','491827bfmihG','addItem','find','getFullYear','getItems','splice','updateConversation','203GDONdn','removeItem','loadItems','updateItemTitle','getDate','3435200rZJnkH','error','init','4158620oubxPt','5188356pnjsKz','from','group','getResult','getTime','33582SDBBPL','updatePinned','map','34ZJLUho','updateTitle','40qfOOWA','pinned','findIndex','getMonth','itemRemoved','itemUpdated','deleteConversation','getConversations','227928PUhwLe','695952dYFAuu'];_0x4933=function(){return _0x257bf7;};return _0x4933();}import{AIChatHistoryItem as _0x18fb97}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3a18ad(){[_0xd68a82(0x117)]=[];[_0xd68a82(0x11c)];[_0xd68a82(0x104)];constructor({connector:_0x5bb214,group:_0x4dc6b0}){const _0x16842e=_0xd68a82;super(),this[_0x16842e(0x11c)]=_0x5bb214,this[_0x16842e(0x104)]=_0x4dc6b0;}async[_0xd68a82(0x100)](){const _0x37c8aa=_0xd68a82;try{const _0x326de3=this[_0x37c8aa(0x11c)][_0x37c8aa(0x11d)](this[_0x37c8aa(0x104)]),_0x47fa4f=await _0x326de3[_0x37c8aa(0x113)]();this[_0x37c8aa(0x12a)](_0x47fa4f);}catch(_0x294726){this[_0x37c8aa(0x11f)](_0x37c8aa(0xff),{'error':_0x294726,'operation':_0x37c8aa(0x100)});}}[_0xd68a82(0x122)](_0x3025fc){const _0x444b15=_0xd68a82;this[_0x444b15(0x117)][_0x444b15(0x11b)](_0x3025fc);}async[_0xd68a82(0x129)](_0x58e302){const _0x2b35a3=_0xd68a82,_0x47b402=this[_0x2b35a3(0x117)][_0x2b35a3(0x10e)](_0xd83ffa=>_0xd83ffa['id']===_0x58e302);if(-0x1===_0x47b402)return!0x1;try{return await this[_0x2b35a3(0x11c)][_0x2b35a3(0x112)](_0x58e302)[_0x2b35a3(0x11e)](),this[_0x2b35a3(0x117)][_0x2b35a3(0x126)](_0x47b402,0x1),this[_0x2b35a3(0x11f)](_0x2b35a3(0x110),{'itemId':_0x58e302}),!0x0;}catch(_0x50c24a){return this[_0x2b35a3(0x11f)](_0x2b35a3(0xff),{'error':_0x50c24a,'operation':_0x2b35a3(0x129),'itemId':_0x58e302}),!0x1;}}[_0xd68a82(0x118)](_0x2a3967){const _0x643878=_0xd68a82;return this[_0x643878(0x117)][_0x643878(0x123)](_0xf052cd=>_0xf052cd['id']===_0x2a3967);}async[_0xd68a82(0x12b)](_0x49116b,_0x2e8857){const _0x5bb8ac=_0xd68a82,_0x3e7952=this[_0x5bb8ac(0x118)](_0x49116b);if(!_0x3e7952)return!0x1;try{return await this[_0x5bb8ac(0x11c)][_0x5bb8ac(0x127)](_0x49116b,{'title':_0x2e8857})[_0x5bb8ac(0x105)](),_0x3e7952[_0x5bb8ac(0x10b)](_0x2e8857),this[_0x5bb8ac(0x11f)](_0x5bb8ac(0x111),{'itemId':_0x49116b,'updates':{'title':_0x2e8857}}),!0x0;}catch(_0x5a0c62){return this[_0x5bb8ac(0x11f)](_0x5bb8ac(0xff),{'error':_0x5a0c62,'operation':_0x5bb8ac(0x12b),'itemId':_0x49116b}),!0x1;}}async[_0xd68a82(0x11a)](_0x262755,_0x284a9a){const _0x16ad81=_0xd68a82,_0x34b398=this[_0x16ad81(0x118)](_0x262755);if(!_0x34b398)return!0x1;try{return await this[_0x16ad81(0x11c)][_0x16ad81(0x127)](_0x262755,{'pinned':_0x284a9a})[_0x16ad81(0x105)](),_0x34b398[_0x16ad81(0x108)](_0x284a9a),this[_0x16ad81(0x11f)](_0x16ad81(0x111),{'itemId':_0x262755,'updates':{'pinned':_0x284a9a}}),!0x0;}catch(_0xc080e5){return this[_0x16ad81(0x11f)](_0x16ad81(0xff),{'error':_0xc080e5,'operation':_0x16ad81(0x11a),'itemId':_0x262755}),!0x1;}}[_0xd68a82(0x12a)](_0x3f1343){const _0x3a9a88=_0xd68a82;try{this[_0x3a9a88(0x117)]=[],_0x3f1343[_0x3a9a88(0x109)](_0x453f78=>{const _0x4f8f5e=_0x3a9a88;this[_0x4f8f5e(0x122)](new _0x18fb97(_0x453f78));}),this[_0x3a9a88(0x11f)](_0x3a9a88(0x120),{'items':[...this[_0x3a9a88(0x117)]]});}catch(_0x3f92ee){this[_0x3a9a88(0x11f)](_0x3a9a88(0xff),{'error':_0x3f92ee,'operation':_0x3a9a88(0x12a)});}}[_0xd68a82(0x125)](_0x3e87f3={}){const _0x1317ac=_0xd68a82,_0x1ae354=void 0x0!==_0x3e87f3[_0x1317ac(0x10d)]&&_0x3e87f3[_0x1317ac(0x10d)],_0x1396e0=_0x3e87f3[_0x1317ac(0x103)]?new Date(_0x3e87f3[_0x1317ac(0x103)][_0x1317ac(0x124)](),_0x3e87f3[_0x1317ac(0x103)][_0x1317ac(0x10f)](),_0x3e87f3[_0x1317ac(0x103)][_0x1317ac(0x12c)]()):null,_0x2f8d53=_0x3e87f3['to']?new Date(_0x3e87f3['to'][_0x1317ac(0x124)](),_0x3e87f3['to'][_0x1317ac(0x10f)](),_0x3e87f3['to'][_0x1317ac(0x12c)]()):null;return this[_0x1317ac(0x117)][_0x1317ac(0x116)](_0x1e41e8=>{const _0x7d41cb=_0x1317ac;if(_0x1e41e8[_0x7d41cb(0x10d)]!==_0x1ae354)return!0x1;if(_0x2f8d53){const _0x196bd3=new Date(_0x1e41e8[_0x7d41cb(0x119)][_0x7d41cb(0x124)](),_0x1e41e8[_0x7d41cb(0x119)][_0x7d41cb(0x10f)](),_0x1e41e8[_0x7d41cb(0x119)][_0x7d41cb(0x12c)]());return _0x1396e0?_0x1396e0[_0x7d41cb(0x106)]()===_0x2f8d53[_0x7d41cb(0x106)]()?_0x196bd3[_0x7d41cb(0x106)]()===_0x1396e0[_0x7d41cb(0x106)]():_0x196bd3<_0x2f8d53&&_0x196bd3>=_0x1396e0:_0x196bd3<_0x2f8d53;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x6496a=_0xd51f;(function(_0xde426b,_0x4305a8){var _0x432376=_0xd51f,_0x427d55=_0xde426b();while(!![]){try{var _0x391041=parseInt(_0x432376(0x1d4))/0x1+-parseInt(_0x432376(0x1d8))/0x2+parseInt(_0x432376(0x1d9))/0x3*(-parseInt(_0x432376(0x1d6))/0x4)+parseInt(_0x432376(0x1d2))/0x5*(parseInt(_0x432376(0x1cf))/0x6)+parseInt(_0x432376(0x1ce))/0x7*(parseInt(_0x432376(0x1c8))/0x8)+-parseInt(_0x432376(0x1d0))/0x9+-parseInt(_0x432376(0x1d3))/0xa*(-parseInt(_0x432376(0x1c9))/0xb);if(_0x391041===_0x4305a8)break;else _0x427d55['push'](_0x427d55['shift']());}catch(_0x578bac){_0x427d55['push'](_0x427d55['shift']());}}}(_0x561b,0x5fb51));function _0x561b(){var _0x364e43=['set','33112AplXXG','pinned','341900RMRmoo','186mhjMzv','4704808kBRXvv','11ZffAtQ','title','updateTitle','createdAt','updatePinned','7agbSOz','6Jwriqa','5113089oXOtcQ','updatedAt','2387355CAWHgw','5026810RFnAvC','76071ZVYGVW'];_0x561b=function(){return _0x364e43;};return _0x561b();}import{ObservableMixin as _0x3b714a}from'ckeditor5/src/utils.js';import{escape as _0x3190e9}from'es-toolkit/compat';function _0xd51f(_0x45b13e,_0xfe8701){var _0x561b35=_0x561b();return _0xd51f=function(_0xd51f69,_0x48a0c4){_0xd51f69=_0xd51f69-0x1c8;var _0x1e95b9=_0x561b35[_0xd51f69];return _0x1e95b9;},_0xd51f(_0x45b13e,_0xfe8701);}export class AIChatHistoryItem extends _0x3b714a(){['id'];[_0x6496a(0x1cc)];constructor({id:_0x346d94,title:_0x454d39,createdAt:_0x27b79f,updatedAt:_0x6c3aff,pinned:_0x2eadc5}){var _0x15c7c1=_0x6496a;super(),this['id']=_0x346d94,this[_0x15c7c1(0x1cc)]=new Date(_0x27b79f),this[_0x15c7c1(0x1d5)](_0x15c7c1(0x1ca),_0x454d39),this[_0x15c7c1(0x1d5)](_0x15c7c1(0x1d1),_0x6c3aff?new Date(_0x6c3aff):null),this[_0x15c7c1(0x1d5)](_0x15c7c1(0x1d7),_0x2eadc5||!0x1);}[_0x6496a(0x1cb)](_0x128d62){var _0x27f2d3=_0x6496a;this[_0x27f2d3(0x1d5)](_0x27f2d3(0x1ca),_0x3190e9(_0x128d62)),this[_0x27f2d3(0x1d1)]=new Date();}[_0x6496a(0x1cd)](_0x1ed46e){var _0x2de692=_0x6496a;this[_0x2de692(0x1d5)](_0x2de692(0x1d7),_0x1ed46e),this[_0x2de692(0x1d1)]=new Date();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x40ce(_0x3aef7f,_0x2408a4){const _0x205a35=_0x205a();return _0x40ce=function(_0x40ce7a,_0x241c59){_0x40ce7a=_0x40ce7a-0x1a9;let _0x252a9d=_0x205a35[_0x40ce7a];return _0x252a9d;},_0x40ce(_0x3aef7f,_0x2408a4);}const _0x1aa884=_0x40ce;(function(_0x44353a,_0x24a0f3){const _0x439368=_0x40ce,_0x2610d3=_0x44353a();while(!![]){try{const _0x27aebd=parseInt(_0x439368(0x1b7))/0x1*(parseInt(_0x439368(0x1cf))/0x2)+parseInt(_0x439368(0x1fa))/0x3+-parseInt(_0x439368(0x1e4))/0x4*(-parseInt(_0x439368(0x1dc))/0x5)+-parseInt(_0x439368(0x200))/0x6+parseInt(_0x439368(0x1ec))/0x7+-parseInt(_0x439368(0x1ca))/0x8*(-parseInt(_0x439368(0x204))/0x9)+parseInt(_0x439368(0x1e5))/0xa*(-parseInt(_0x439368(0x1f8))/0xb);if(_0x27aebd===_0x24a0f3)break;else _0x2610d3['push'](_0x2610d3['shift']());}catch(_0x5486b5){_0x2610d3['push'](_0x2610d3['shift']());}}}(_0x205a,0x51f9f));import{ListItemView as _0x24c960,HighlightedTextView as _0x50ec94,ButtonView as _0x33fd9f,ListView as _0x390921,IconView as _0x5433a7,createDropdown as _0x4cfbe7,InputTextView as _0xb0c0f2}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x48dbc8,IconPin as _0x350140,IconCheck as _0x17814b,IconCancel as _0x44a0de}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2754f0,ConfirmMixin as _0x197093}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x52731b}from'es-toolkit/compat';import{AISpinnerView as _0x3a3a7d}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x404df8}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x197093(_0x24c960){['id'];static [_0x1aa884(0x1b6)]={'remove':_0x1aa884(0x1d2),'rename':_0x1aa884(0x1de),'pin':_0x1aa884(0x1be),'unpin':_0x1aa884(0x1fb)};[_0x1aa884(0x1ff)];[_0x1aa884(0x1a9)];[_0x1aa884(0x1d0)];constructor(_0x11bda4,_0x38faa5){const _0x26c7ea=_0x1aa884;super(_0x11bda4);const _0x571163=this[_0x26c7ea(0x206)];this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1f6),!0x1),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1ab),!0x0),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1d7),!!_0x38faa5[_0x26c7ea(0x1d7)]),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1c0),null),this['id']=_0x38faa5['id'];const {title:_0x1f4d22,createdAt:_0x3b61ed,active:_0x37fd08=!0x1}=_0x38faa5;this[_0x26c7ea(0x1d0)]=new _0x50ec94(),this[_0x26c7ea(0x1d0)][_0x26c7ea(0x1c2)]=_0x1f4d22,this[_0x26c7ea(0x1d0)][_0x26c7ea(0x1c1)]({'attributes':{'class':[_0x26c7ea(0x1d8)]}});const _0x5463b0=this[_0x26c7ea(0x1fd)](),_0x51c2c0=this[_0x26c7ea(0x1f4)](_0x11bda4),_0x1bed2a=this[_0x26c7ea(0x208)](),_0x5d0c4b=this[_0x26c7ea(0x1aa)](_0x11bda4,_0x1f4d22),_0x3c7c08=this[_0x26c7ea(0x1e7)](_0x11bda4,_0x5d0c4b),_0x57f840=this[_0x26c7ea(0x1b9)](_0x11bda4,_0x5d0c4b);this[_0x26c7ea(0x1ff)]=this[_0x26c7ea(0x1bd)](),this[_0x26c7ea(0x1a9)]=this[_0x26c7ea(0x1bd)](),this[_0x26c7ea(0x1a9)][_0x26c7ea(0x207)](this[_0x26c7ea(0x1d0)]),this[_0x26c7ea(0x1ff)][_0x26c7ea(0x207)](_0x51c2c0),this[_0x26c7ea(0x1ff)][_0x26c7ea(0x207)](_0x1bed2a),this['on'](_0x26c7ea(0x1b3),(_0x5b0993,_0x59e67f,_0x373f5d)=>{const _0x84c227=_0x26c7ea;this[_0x84c227(0x1ff)][_0x84c227(0x1cb)](),this[_0x84c227(0x1a9)][_0x84c227(0x1cb)](),_0x373f5d?(this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x3c7c08),this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x57f840),this[_0x84c227(0x1a9)][_0x84c227(0x207)](_0x5d0c4b),_0x5d0c4b[_0x84c227(0x1e3)][_0x84c227(0x1f3)]()):(this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x51c2c0),this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x1bed2a),this[_0x84c227(0x1a9)][_0x84c227(0x207)](this[_0x84c227(0x1d0)]));}),this[_0x26c7ea(0x1dd)]({'tag':'li','attributes':{'class':[_0x26c7ea(0x1f7),_0x37fd08?_0x26c7ea(0x202):'',_0x571163['if'](_0x26c7ea(0x1ab),_0x26c7ea(0x1ad),_0x559ca9=>!_0x559ca9),_0x571163['if'](_0x26c7ea(0x1f6),_0x26c7ea(0x1d9))],'role':_0x26c7ea(0x1df)},'children':[{'tag':_0x26c7ea(0x1f5),'attributes':{'class':[_0x26c7ea(0x1b1)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1ed),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x57c75a=>!!_0x57c75a)]},'children':_0x37fd08?[_0x5463b0]:[]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1fe),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x3bc532=>!_0x3bc532)]},'children':[this[_0x26c7ea(0x1ee)]()]}]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1bc)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d6)]},'on':{'click':this[_0x26c7ea(0x206)]['to'](_0x26c7ea(0x1ac))},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1db)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d8),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x192bce=>!!_0x192bce)]},'children':this[_0x26c7ea(0x1a9)]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1eb),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0xe40de4=>!_0xe40de4)]},'children':[{'text':_0x571163['to'](_0x26c7ea(0x1c0),_0x46de6a=>_0x46de6a?_0x404df8(this[_0x26c7ea(0x1f0)],AIChatHistoryListItemView[_0x26c7ea(0x1b6)][_0x46de6a]):'')}]}]},{'tag':_0x26c7ea(0x1f5),'attributes':{'class':[_0x26c7ea(0x1f9)]},'children':[_0x3b61ed]}]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d5)]},'children':this[_0x26c7ea(0x1ff)]}]}]}),this['on'](_0x26c7ea(0x1ac),()=>{const _0x2943bd=_0x26c7ea;this[_0x2943bd(0x1f6)]||this[_0x2943bd(0x205)](_0x2943bd(0x1e8),{'id':this['id']});});}[_0x1aa884(0x20a)](_0x4bb7aa){const _0x5cba8e=_0x1aa884;this[_0x5cba8e(0x1d0)][_0x5cba8e(0x1c2)]=_0x52731b(_0x4bb7aa);}[_0x1aa884(0x1c7)](_0x2df4e8,_0xf61899){const _0x47abc3=_0x1aa884;this[_0x47abc3(0x1c5)](_0x47abc3(0x1c0),_0xf61899?_0x2df4e8:null);}[_0x1aa884(0x1fd)](){const _0x1418b4=_0x1aa884,_0x9f816c=new _0x5433a7();return _0x9f816c[_0x1418b4(0x1c5)]({'content':_0x17814b}),_0x9f816c;}[_0x1aa884(0x1f4)](_0x2cd519){const _0x170a9a=_0x1aa884,_0x436e7e=new _0x33fd9f(_0x2cd519);return _0x436e7e[_0x170a9a(0x1c5)]({'label':_0x404df8(_0x2cd519,_0x170a9a(0x1b8)),'icon':_0x350140,'withText':!0x1,'tooltip':!0x0}),_0x436e7e[_0x170a9a(0x1cd)](_0x170a9a(0x1d3))['to'](this,_0x170a9a(0x1d7)),_0x436e7e['on'](_0x170a9a(0x1b2),()=>{const _0xf27f24=_0x170a9a,_0x22565f=!this[_0xf27f24(0x1d7)];this[_0xf27f24(0x205)](_0xf27f24(0x1da),{'id':this['id'],'pinned':_0x22565f});}),_0x436e7e;}[_0x1aa884(0x208)](){const _0x1cd5e9=_0x1aa884,_0x514b90=_0x4cfbe7(this[_0x1cd5e9(0x1f0)],_0x2754f0),_0xcee5cd=_0x514b90[_0x1cd5e9(0x1bb)][_0x1cd5e9(0x1ba)];_0x514b90[_0x1cd5e9(0x1b5)][_0x1cd5e9(0x1c5)]({'label':_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1e1)),'icon':_0x48dbc8}),_0x514b90[_0x1cd5e9(0x1bf)]='sw';const _0x1bce7b=new _0x33fd9f(this[_0x1cd5e9(0x1f0)]);_0x1bce7b[_0x1cd5e9(0x1c9)]=_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1e0)),_0x1bce7b[_0x1cd5e9(0x20b)]=!0x0,_0x1bce7b['on'](_0x1cd5e9(0x1b2),()=>{const _0x57cee2=_0x1cd5e9;this[_0x57cee2(0x1f6)]=!0x0;});const _0x156d3d=new _0x33fd9f(this[_0x1cd5e9(0x1f0)]);_0x156d3d[_0x1cd5e9(0x1c9)]=_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1c3)),_0x156d3d[_0x1cd5e9(0x20b)]=!0x0,_0x156d3d['on'](_0x1cd5e9(0x1b2),()=>{const _0x20239b=_0x1cd5e9;this[_0x20239b(0x1d4)](_0x404df8(this[_0x20239b(0x1f0)],_0x20239b(0x1b0)),this[_0x20239b(0x1e3)])[_0x20239b(0x1e2)](()=>{const _0x356269=_0x20239b;this[_0x356269(0x205)](_0x356269(0x1ce),{'id':this['id']});});});const _0xc87a74=new _0x390921(this[_0x1cd5e9(0x1f0)]),_0x5cd91c=new _0x24c960(this[_0x1cd5e9(0x1f0)]);_0x5cd91c[_0x1cd5e9(0x1ba)][_0x1cd5e9(0x207)](_0x1bce7b);const _0x255076=new _0x24c960(this[_0x1cd5e9(0x1f0)]);return _0x255076[_0x1cd5e9(0x1ba)][_0x1cd5e9(0x207)](_0x156d3d),_0xc87a74[_0x1cd5e9(0x1ea)][_0x1cd5e9(0x1f1)]([_0x5cd91c,_0x255076]),_0xcee5cd[_0x1cd5e9(0x207)](_0xc87a74),_0x514b90;}[_0x1aa884(0x1aa)](_0x2dc809,_0x4166cd){const _0x43cc5d=_0x1aa884,_0x5741ac=new _0xb0c0f2(_0x2dc809),_0xe6d5e7=_0x5741ac[_0x43cc5d(0x206)];return _0x5741ac[_0x43cc5d(0x201)]=_0x4166cd,_0x5741ac[_0x43cc5d(0x1c1)]({'on':{'keydown':_0xe6d5e7['to'](_0x32be4a=>{const _0x41f727=_0x43cc5d;_0x41f727(0x1c8)==_0x32be4a[_0x41f727(0x1d1)]&&this[_0x41f727(0x1af)](_0x5741ac);})}}),_0x5741ac;}[_0x1aa884(0x1e7)](_0x4a37d8,_0x5f40a0){const _0x5dc659=_0x1aa884,_0x42a933=new _0x33fd9f(_0x4a37d8);return _0x42a933[_0x5dc659(0x1c5)]({'icon':_0x17814b,'withText':!0x1,'tooltip':_0x404df8(_0x4a37d8,_0x5dc659(0x1c4))}),_0x42a933[_0x5dc659(0x1c1)]({'attributes':{'class':[_0x5dc659(0x1f2)]}}),_0x42a933['on'](_0x5dc659(0x1b2),()=>{const _0x52ba00=_0x5dc659;this[_0x52ba00(0x1af)](_0x5f40a0);}),_0x42a933;}[_0x1aa884(0x1af)](_0xc291fd){const _0x2f44ca=_0x1aa884,_0x25ba40=_0xc291fd[_0x2f44ca(0x1e3)][_0x2f44ca(0x201)]||'';this[_0x2f44ca(0x1d0)][_0x2f44ca(0x1c2)]=_0x25ba40,this[_0x2f44ca(0x1f6)]=!0x1,this[_0x2f44ca(0x205)](_0x2f44ca(0x1e9),{'id':this['id'],'title':_0x25ba40});}[_0x1aa884(0x1b9)](_0x483454,_0x39110b){const _0x3825d4=_0x1aa884,_0xd71df2=new _0x33fd9f(_0x483454);return _0xd71df2[_0x3825d4(0x1c5)]({'icon':_0x44a0de,'withText':!0x1,'tooltip':_0x404df8(_0x483454,_0x3825d4(0x1fc))}),_0xd71df2[_0x3825d4(0x1c1)]({'attributes':{'class':[_0x3825d4(0x1cc)]}}),_0xd71df2['on'](_0x3825d4(0x1b2),()=>{const _0x576d53=_0x3825d4;this[_0x576d53(0x1f6)]=!0x1,_0x39110b[_0x576d53(0x201)]=this[_0x576d53(0x1d0)][_0x576d53(0x1c2)]||'',this[_0x576d53(0x205)](_0x576d53(0x1ae));}),_0xd71df2;}[_0x1aa884(0x1ee)](){const _0x53a979=_0x1aa884,_0x308e05=new _0x3a3a7d(_0x53a979(0x1b4));return _0x308e05[_0x53a979(0x1ab)]=!0x0,_0x308e05;}[_0x1aa884(0x1e6)](_0x443e94){const _0x522fee=_0x1aa884;return this[_0x522fee(0x1d0)]&&_0x522fee(0x1ef)==typeof this[_0x522fee(0x1d0)][_0x522fee(0x1c2)]&&this[_0x522fee(0x1d0)][_0x522fee(0x1c2)][_0x522fee(0x209)](_0x443e94)?{'title':!0x0}:null;}[_0x1aa884(0x203)](_0x12e40e){const _0x2ab86c=_0x1aa884;this[_0x2ab86c(0x1d0)][_0x2ab86c(0x203)](_0x12e40e);}}function _0x205a(){const _0x5ae45a=['ck-ai-chat-history__item-actions','ck-ai-chat-history__item-content','pinned','ck-ai-chat-history__item-title','ck-ai-chat-history__item--edit','setConversationPinned','ck-ai-chat-history__item-main-content','1987985GLSmwz','setTemplate','AI_CHAT_HISTORY_LOADING_RENAMING','listitem','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','element','4WZzlhA','13882980obVBml','isMatching','_createAcceptEditButtonView','selectConversation','editConversationTitle','items','ck-ai-loader__text','1313802lqILSR','ck-ai-chat-history__item-check','_createSpinnerView','string','locale','addMany','ck-confirm-view-submit','focus','_createPinButtonView','span','isEdit','ck-ai-chat-history__item','11lxXKMu','ck-ai-chat-history__item-date','1966911yxnwsk','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_CANCEL','_createCheckView','ck-ai-loader','actions','1530648lBmVMc','value','ck-ai-chat-history__item--active','highlightText','18rdBmht','fire','bindTemplate','add','_createMenuDropdownView','match','updateTitle','withText','mainContent','_createEditInputView','isVisible','click','ck-hidden','edit:cancel','_commitEditInputValue','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-check-container','execute','change:isEdit','tiny','buttonView','LOADING_LABELS','121ilugfb','AI_CHAT_HISTORY_PIN_BUTTON','_createCancelEditButtonView','children','panelView','ck-ai-chat-history__item-row','createCollection','AI_CHAT_HISTORY_LOADING_PINNING','panelPosition','loadingState','extendTemplate','text','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_ACCEPT','set','div','updateLoadingState','Enter','label','1695128qclqaV','clear','ck-confirm-view-cancel','bind','removeConversation','5198DyEjkR','_titleView','key','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','showConfirm'];_0x205a=function(){return _0x5ae45a;};return _0x205a();}
|
|
23
|
+
const _0x37b60a=_0x1cab;(function(_0x3428c6,_0x54559a){const _0x1e4385=_0x1cab,_0x5af66e=_0x3428c6();while(!![]){try{const _0x1067d2=parseInt(_0x1e4385(0x1dc))/0x1*(-parseInt(_0x1e4385(0x1d2))/0x2)+parseInt(_0x1e4385(0x1c7))/0x3*(-parseInt(_0x1e4385(0x1d4))/0x4)+-parseInt(_0x1e4385(0x1a0))/0x5*(-parseInt(_0x1e4385(0x1ec))/0x6)+parseInt(_0x1e4385(0x1ba))/0x7*(-parseInt(_0x1e4385(0x1c4))/0x8)+parseInt(_0x1e4385(0x19f))/0x9+parseInt(_0x1e4385(0x1aa))/0xa*(parseInt(_0x1e4385(0x19e))/0xb)+parseInt(_0x1e4385(0x1c1))/0xc*(parseInt(_0x1e4385(0x1cb))/0xd);if(_0x1067d2===_0x54559a)break;else _0x5af66e['push'](_0x5af66e['shift']());}catch(_0x1184d5){_0x5af66e['push'](_0x5af66e['shift']());}}}(_0x39d3,0xd6f7f));import{ListItemView as _0x537c4e,HighlightedTextView as _0x61aa71,ButtonView as _0x17ebc1,ListView as _0x295738,IconView as _0x51a1cc,createDropdown as _0x273f3a,InputTextView as _0x14bac9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1b16d9,IconPin as _0x2433ba,IconCheck as _0x1d6ea9,IconCancel as _0x27deff}from'ckeditor5/src/icons.js';function _0x39d3(){const _0x353c78=['selectConversation','add','_commitEditInputValue','span','withText','execute','pinned','removeConversation','locale','panelView','edit:cancel','AI_CHAT_HISTORY_LOADING_REMOVING','1439368NwSJnu','tiny','ck-ai-chat-history__item','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-title','ck-ai-chat-history__item-main-content','_createCheckView','6816aqqaoY','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','isEdit','56kAnsyO','set','change:isEdit','87SjDIPn','isMatching','ck-ai-chat-history__item-check-container','text','10504thMfKf','ck-ai-chat-history__item-content','LOADING_LABELS','_createCancelEditButtonView','buttonView','bindTemplate','ck-ai-chat-history__item-check','474pbixCg','div','51820RZCWAN','editConversationTitle','ck-ai-loader','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_LOADING_PINNING','highlightText','then','match','1934Bnouya','actions','key','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_RENAMING','ck-confirm-view-cancel','_createAcceptEditButtonView','listitem','_createMenuDropdownView','ck-hidden','_titleView','AI_CHAT_HISTORY_ACCEPT','updateTitle','children','isOn','isVisible','4509876YyAfKF','AI_CHAT_HISTORY_REMOVE','value','focus','items','bind','label','string','ck-confirm-view-submit','setConversationPinned','addMany','_createPinButtonView','ck-ai-chat-history__item-row','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_UNPINNING','setTemplate','showConfirm','AI_CHAT_HISTORY_CANCEL','createCollection','updateLoadingState','click','AI_CHAT_HISTORY_PIN_BUTTON','panelPosition','14995013ybRKWh','5221431PqYkiO','5ocJybc','loadingState','Enter','_createSpinnerView','AI_CHAT_HISTORY_EDIT_NAME','element','ck-ai-chat-history__item--active','mainContent','_createEditInputView','clear','10OsCdtF','extendTemplate','AI_CHAT_HISTORY_REMOVE_CONFIRM','fire'];_0x39d3=function(){return _0x353c78;};return _0x39d3();}function _0x1cab(_0x43904e,_0x31ef0f){const _0x39d363=_0x39d3();return _0x1cab=function(_0x1cabb6,_0x1a1717){_0x1cabb6=_0x1cabb6-0x199;let _0x547ae7=_0x39d363[_0x1cabb6];return _0x547ae7;},_0x1cab(_0x43904e,_0x31ef0f);}import{LateFocusDropdownButtonView as _0x1a371b,ConfirmMixin as _0x2dc784}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2154a3}from'es-toolkit/compat';import{AISpinnerView as _0xf58759}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1a3352}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x2dc784(_0x537c4e){['id'];static [_0x37b60a(0x1cd)]={'remove':_0x37b60a(0x1b9),'rename':_0x37b60a(0x1e0),'pin':_0x37b60a(0x1d8),'unpin':_0x37b60a(0x1fa)};[_0x37b60a(0x1dd)];[_0x37b60a(0x1a7)];[_0x37b60a(0x1e6)];constructor(_0x3109cc,_0x1124ae){const _0x168cf1=_0x37b60a;super(_0x3109cc);const _0x5d3fad=this[_0x168cf1(0x1d0)];this[_0x168cf1(0x1c5)](_0x168cf1(0x1c3),!0x1),this[_0x168cf1(0x1c5)](_0x168cf1(0x1eb),!0x0),this[_0x168cf1(0x1c5)](_0x168cf1(0x1b4),!!_0x1124ae[_0x168cf1(0x1b4)]),this[_0x168cf1(0x1c5)](_0x168cf1(0x1a1),null),this['id']=_0x1124ae['id'];const {title:_0x13bd75,createdAt:_0x32c106,active:_0xfe0e79=!0x1}=_0x1124ae;this[_0x168cf1(0x1e6)]=new _0x61aa71(),this[_0x168cf1(0x1e6)][_0x168cf1(0x1ca)]=_0x13bd75,this[_0x168cf1(0x1e6)][_0x168cf1(0x1ab)]({'attributes':{'class':[_0x168cf1(0x1be)]}});const _0x58ead2=this[_0x168cf1(0x1c0)](),_0x188bbf=this[_0x168cf1(0x1f7)](_0x3109cc),_0x2982b2=this[_0x168cf1(0x1e4)](),_0x1e843c=this[_0x168cf1(0x1a8)](_0x3109cc,_0x13bd75),_0x21e613=this[_0x168cf1(0x1e2)](_0x3109cc,_0x1e843c),_0x49d87c=this[_0x168cf1(0x1ce)](_0x3109cc,_0x1e843c);this[_0x168cf1(0x1dd)]=this[_0x168cf1(0x199)](),this[_0x168cf1(0x1a7)]=this[_0x168cf1(0x199)](),this[_0x168cf1(0x1a7)][_0x168cf1(0x1af)](this[_0x168cf1(0x1e6)]),this[_0x168cf1(0x1dd)][_0x168cf1(0x1af)](_0x188bbf),this[_0x168cf1(0x1dd)][_0x168cf1(0x1af)](_0x2982b2),this['on'](_0x168cf1(0x1c6),(_0x4b0a77,_0x3b3a9c,_0x4fb97d)=>{const _0x594bf6=_0x168cf1;this[_0x594bf6(0x1dd)][_0x594bf6(0x1a9)](),this[_0x594bf6(0x1a7)][_0x594bf6(0x1a9)](),_0x4fb97d?(this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x21e613),this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x49d87c),this[_0x594bf6(0x1a7)][_0x594bf6(0x1af)](_0x1e843c),_0x1e843c[_0x594bf6(0x1a5)][_0x594bf6(0x1ef)]()):(this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x188bbf),this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x2982b2),this[_0x594bf6(0x1a7)][_0x594bf6(0x1af)](this[_0x594bf6(0x1e6)]));}),this[_0x168cf1(0x1fb)]({'tag':'li','attributes':{'class':[_0x168cf1(0x1bc),_0xfe0e79?_0x168cf1(0x1a6):'',_0x5d3fad['if'](_0x168cf1(0x1eb),_0x168cf1(0x1e5),_0x41ae3b=>!_0x41ae3b),_0x5d3fad['if'](_0x168cf1(0x1c3),_0x168cf1(0x1bd))],'role':_0x168cf1(0x1e3)},'children':[{'tag':_0x168cf1(0x1b1),'attributes':{'class':[_0x168cf1(0x1c9)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1d1),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x307f6b=>!!_0x307f6b)]},'children':_0xfe0e79?[_0x58ead2]:[]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1d6),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x4e311f=>!_0x4e311f)]},'children':[this[_0x168cf1(0x1a3)]()]}]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1f8)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1cc)]},'on':{'click':this[_0x168cf1(0x1d0)]['to'](_0x168cf1(0x19b))},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1bf)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1be),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x48dced=>!!_0x48dced)]},'children':this[_0x168cf1(0x1a7)]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1df),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x2f354a=>!_0x2f354a)]},'children':[{'text':_0x5d3fad['to'](_0x168cf1(0x1a1),_0x3d2eaa=>_0x3d2eaa?_0x1a3352(this[_0x168cf1(0x1b6)],AIChatHistoryListItemView[_0x168cf1(0x1cd)][_0x3d2eaa]):'')}]}]},{'tag':_0x168cf1(0x1b1),'attributes':{'class':[_0x168cf1(0x1d7)]},'children':[_0x32c106]}]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1f9)]},'children':this[_0x168cf1(0x1dd)]}]}]}),this['on'](_0x168cf1(0x19b),()=>{const _0x258c00=_0x168cf1;this[_0x258c00(0x1c3)]||this[_0x258c00(0x1ad)](_0x258c00(0x1ae),{'id':this['id']});});}[_0x37b60a(0x1e8)](_0x550a2d){const _0x58858c=_0x37b60a;this[_0x58858c(0x1e6)][_0x58858c(0x1ca)]=_0x2154a3(_0x550a2d);}[_0x37b60a(0x19a)](_0x1146d5,_0x5dcf6c){const _0x19ebaa=_0x37b60a;this[_0x19ebaa(0x1c5)](_0x19ebaa(0x1a1),_0x5dcf6c?_0x1146d5:null);}[_0x37b60a(0x1c0)](){const _0xed3bc4=_0x37b60a,_0x330c70=new _0x51a1cc();return _0x330c70[_0xed3bc4(0x1c5)]({'content':_0x1d6ea9}),_0x330c70;}[_0x37b60a(0x1f7)](_0x5163d0){const _0x2f08ca=_0x37b60a,_0x218ec2=new _0x17ebc1(_0x5163d0);return _0x218ec2[_0x2f08ca(0x1c5)]({'label':_0x1a3352(_0x5163d0,_0x2f08ca(0x19c)),'icon':_0x2433ba,'withText':!0x1,'tooltip':!0x0}),_0x218ec2[_0x2f08ca(0x1f1)](_0x2f08ca(0x1ea))['to'](this,_0x2f08ca(0x1b4)),_0x218ec2['on'](_0x2f08ca(0x1b3),()=>{const _0x23cca6=_0x2f08ca,_0x124b26=!this[_0x23cca6(0x1b4)];this[_0x23cca6(0x1ad)](_0x23cca6(0x1f5),{'id':this['id'],'pinned':_0x124b26});}),_0x218ec2;}[_0x37b60a(0x1e4)](){const _0x4813f0=_0x37b60a,_0x5256a6=_0x273f3a(this[_0x4813f0(0x1b6)],_0x1a371b),_0x3d6a97=_0x5256a6[_0x4813f0(0x1b7)][_0x4813f0(0x1e9)];_0x5256a6[_0x4813f0(0x1cf)][_0x4813f0(0x1c5)]({'label':_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1c2)),'icon':_0x1b16d9}),_0x5256a6[_0x4813f0(0x19d)]='sw';const _0xa18ed0=new _0x17ebc1(this[_0x4813f0(0x1b6)]);_0xa18ed0[_0x4813f0(0x1f2)]=_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1a4)),_0xa18ed0[_0x4813f0(0x1b2)]=!0x0,_0xa18ed0['on'](_0x4813f0(0x1b3),()=>{const _0x5dbeef=_0x4813f0;this[_0x5dbeef(0x1c3)]=!0x0;});const _0x37acca=new _0x17ebc1(this[_0x4813f0(0x1b6)]);_0x37acca[_0x4813f0(0x1f2)]=_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1ed)),_0x37acca[_0x4813f0(0x1b2)]=!0x0,_0x37acca['on'](_0x4813f0(0x1b3),()=>{const _0x3c6110=_0x4813f0;this[_0x3c6110(0x1fc)](_0x1a3352(this[_0x3c6110(0x1b6)],_0x3c6110(0x1ac)),this[_0x3c6110(0x1a5)])[_0x3c6110(0x1da)](()=>{const _0x560e69=_0x3c6110;this[_0x560e69(0x1ad)](_0x560e69(0x1b5),{'id':this['id']});});});const _0x2a227b=new _0x295738(this[_0x4813f0(0x1b6)]),_0x286ee6=new _0x537c4e(this[_0x4813f0(0x1b6)]);_0x286ee6[_0x4813f0(0x1e9)][_0x4813f0(0x1af)](_0xa18ed0);const _0x4dfaf1=new _0x537c4e(this[_0x4813f0(0x1b6)]);return _0x4dfaf1[_0x4813f0(0x1e9)][_0x4813f0(0x1af)](_0x37acca),_0x2a227b[_0x4813f0(0x1f0)][_0x4813f0(0x1f6)]([_0x286ee6,_0x4dfaf1]),_0x3d6a97[_0x4813f0(0x1af)](_0x2a227b),_0x5256a6;}[_0x37b60a(0x1a8)](_0x42775e,_0x329418){const _0x3db342=_0x37b60a,_0x23be09=new _0x14bac9(_0x42775e),_0xa37a21=_0x23be09[_0x3db342(0x1d0)];return _0x23be09[_0x3db342(0x1ee)]=_0x329418,_0x23be09[_0x3db342(0x1ab)]({'on':{'keydown':_0xa37a21['to'](_0xc8cdfe=>{const _0xab0f6=_0x3db342;_0xab0f6(0x1a2)==_0xc8cdfe[_0xab0f6(0x1de)]&&this[_0xab0f6(0x1b0)](_0x23be09);})}}),_0x23be09;}[_0x37b60a(0x1e2)](_0x4a0428,_0x4118fd){const _0x629e05=_0x37b60a,_0x4b9afb=new _0x17ebc1(_0x4a0428);return _0x4b9afb[_0x629e05(0x1c5)]({'icon':_0x1d6ea9,'withText':!0x1,'tooltip':_0x1a3352(_0x4a0428,_0x629e05(0x1e7))}),_0x4b9afb[_0x629e05(0x1ab)]({'attributes':{'class':[_0x629e05(0x1f4)]}}),_0x4b9afb['on'](_0x629e05(0x1b3),()=>{const _0x39b779=_0x629e05;this[_0x39b779(0x1b0)](_0x4118fd);}),_0x4b9afb;}[_0x37b60a(0x1b0)](_0x40a498){const _0x4ad765=_0x37b60a,_0x3b47c6=_0x40a498[_0x4ad765(0x1a5)][_0x4ad765(0x1ee)]||'';this[_0x4ad765(0x1e6)][_0x4ad765(0x1ca)]=_0x3b47c6,this[_0x4ad765(0x1c3)]=!0x1,this[_0x4ad765(0x1ad)](_0x4ad765(0x1d5),{'id':this['id'],'title':_0x3b47c6});}[_0x37b60a(0x1ce)](_0x5281b3,_0x449d36){const _0x490784=_0x37b60a,_0x340f2b=new _0x17ebc1(_0x5281b3);return _0x340f2b[_0x490784(0x1c5)]({'icon':_0x27deff,'withText':!0x1,'tooltip':_0x1a3352(_0x5281b3,_0x490784(0x1fd))}),_0x340f2b[_0x490784(0x1ab)]({'attributes':{'class':[_0x490784(0x1e1)]}}),_0x340f2b['on'](_0x490784(0x1b3),()=>{const _0x4b6f62=_0x490784;this[_0x4b6f62(0x1c3)]=!0x1,_0x449d36[_0x4b6f62(0x1ee)]=this[_0x4b6f62(0x1e6)][_0x4b6f62(0x1ca)]||'',this[_0x4b6f62(0x1ad)](_0x4b6f62(0x1b8));}),_0x340f2b;}[_0x37b60a(0x1a3)](){const _0x5b3d31=_0x37b60a,_0x1ff7ed=new _0xf58759(_0x5b3d31(0x1bb));return _0x1ff7ed[_0x5b3d31(0x1eb)]=!0x0,_0x1ff7ed;}[_0x37b60a(0x1c8)](_0x37fb0a){const _0xa36aaf=_0x37b60a;return this[_0xa36aaf(0x1e6)]&&_0xa36aaf(0x1f3)==typeof this[_0xa36aaf(0x1e6)][_0xa36aaf(0x1ca)]&&this[_0xa36aaf(0x1e6)][_0xa36aaf(0x1ca)][_0xa36aaf(0x1db)](_0x37fb0a)?{'title':!0x0}:null;}[_0x37b60a(0x1d9)](_0x44ed78){const _0x26e2ba=_0x37b60a;this[_0x26e2ba(0x1e6)][_0x26e2ba(0x1d9)](_0x44ed78);}}
|