@ckeditor/ckeditor5-ai 47.7.5 → 47.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5ae678,IconView as _0x2d1977,LabeledFieldView as _0x3f9d6c,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x1eaa2b,IconCancel as _0x26e3fd}from'ckeditor5/src/icons.js';import{getTranslation as _0x1a59f4}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x3f9d6c{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x54bab2){const t=_0x54bab2['t'],_0x5b3251={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x1a59f4(_0x54bab2,'AI_CHAT_SEARCH_RESOURCES')};super(_0x54bab2,_0x5b3251['creator']),this['label']=_0x5b3251['label'],this['_viewConfig']=_0x5b3251,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x54bab2,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x596950){this['fire']('search',_0x596950);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x2d1977(),this['iconView']['content']=_0x1eaa2b,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x31ea7f,t){this['resetButtonView']=new _0x5ae678(_0x31ea7f),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x26e3fd,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x46bdc6=>!_0x46bdc6),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2aa301=_0x28b7;(function(_0x1db235,_0x5e46e4){const _0x552c40=_0x28b7,_0x5cf82d=_0x1db235();while(!![]){try{const _0x15d4f0=parseInt(_0x552c40(0x1a1))/0x1+-parseInt(_0x552c40(0x19f))/0x2+-parseInt(_0x552c40(0x19c))/0x3+parseInt(_0x552c40(0x1a8))/0x4+parseInt(_0x552c40(0x1ad))/0x5+parseInt(_0x552c40(0x195))/0x6+parseInt(_0x552c40(0x199))/0x7*(parseInt(_0x552c40(0x1a4))/0x8);if(_0x15d4f0===_0x5e46e4)break;else _0x5cf82d['push'](_0x5cf82d['shift']());}catch(_0x587e71){_0x5cf82d['push'](_0x5cf82d['shift']());}}}(_0x2ada,0xdd31f));function _0x2ada(){const _0x1aeb69=['element','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-chips-wrapper-balloon','_overflowManager','5343510bHIleD','ck-ai-chat-context-chips-wrapper','_bodyCollection','setTemplate','107443bcmzsD','_contextChips','createCollection','3050100yOdekQ','ck-reset_all','div','654332xrcjgQ','ck-ai-chat__feed__context-chips','328352AHLMwc','querySelector','ck-ai-chat-context-controls__show-more-balloon-panel','176pBzTKE','ck-ai-chat-controls-button','reorganizeChips','locale','2232932OQEWWS','add','destroy','setContainerElement','_createContextChips','675165fIUqNz','render'];_0x2ada=function(){return _0x1aeb69;};return _0x2ada();}import{View as _0x39195f}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4490d2}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x42c083}from'../controls/aichatchipsoverflowmanager.js';const oc=_0x2aa301(0x1a0),cc=_0x2aa301(0x196),rc=_0x2aa301(0x1b1),Fo=_0x2aa301(0x1a5),yo=_0x2aa301(0x1b0),Do=_0x2aa301(0x1a3);function _0x28b7(_0x3e87b7,_0x2aa6d1){const _0x2ada20=_0x2ada();return _0x28b7=function(_0x28b74b,_0x2182fe){_0x28b74b=_0x28b74b-0x194;let _0xf4c466=_0x2ada20[_0x28b74b];return _0xf4c466;},_0x28b7(_0x3e87b7,_0x2aa6d1);}export class AIChatFeedContextChipsView extends _0x39195f{[_0x2aa301(0x19a)]=this[_0x2aa301(0x19b)]();[_0x2aa301(0x194)];[_0x2aa301(0x197)];constructor(_0x30bc5e,_0x238ca4,_0x3870af){const _0x1fe3b0=_0x2aa301;super(_0x30bc5e),this[_0x1fe3b0(0x197)]=_0x3870af,this[_0x1fe3b0(0x1ac)](_0x238ca4);const _0x483773={'cssClasses':{'showMoreButton':yo,'showMoreBalloon':Do,'overflowContainer':rc,'controlsButton':Fo}};this[_0x1fe3b0(0x194)]=new _0x42c083(_0x30bc5e,this[_0x1fe3b0(0x19a)],_0x483773,this[_0x1fe3b0(0x197)],this),this[_0x1fe3b0(0x198)]({'tag':_0x1fe3b0(0x19e),'attributes':{'class':[oc,'ck',_0x1fe3b0(0x19d)]},'children':[{'tag':_0x1fe3b0(0x19e),'attributes':{'class':cc},'children':this[_0x1fe3b0(0x19a)]}]});}[_0x2aa301(0x1ae)](){const _0x25fdb7=_0x2aa301;super[_0x25fdb7(0x1ae)]();const _0x4e3652=this[_0x25fdb7(0x1af)][_0x25fdb7(0x1a2)]('.'+cc);_0x4e3652&&(this[_0x25fdb7(0x194)][_0x25fdb7(0x1ab)](_0x4e3652),this[_0x25fdb7(0x194)][_0x25fdb7(0x1a6)]());}[_0x2aa301(0x1aa)](){const _0x47857c=_0x2aa301;super[_0x47857c(0x1aa)](),this[_0x47857c(0x194)][_0x47857c(0x1aa)]();}[_0x2aa301(0x1ac)](_0xf7cb3c){const _0x37a649=_0x2aa301;for(const _0x503083 of _0xf7cb3c){const _0x457101=new _0x4490d2(this[_0x37a649(0x1a7)],_0x503083,!0x0,!0x1);this[_0x37a649(0x19a)][_0x37a649(0x1a9)](_0x457101);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x215a(_0x2aaf7a,_0x5491ec){var _0xa48fa2=_0xa48f();return _0x215a=function(_0x215a41,_0x37151d){_0x215a41=_0x215a41-0x131;var _0x6b842e=_0xa48fa2[_0x215a41];return _0x6b842e;},_0x215a(_0x2aaf7a,_0x5491ec);}var _0x5dbe70=_0x215a;(function(_0x4a2280,_0x1c74c2){var _0x5b08db=_0x215a,_0x2fc041=_0x4a2280();while(!![]){try{var _0x131846=-parseInt(_0x5b08db(0x137))/0x1*(parseInt(_0x5b08db(0x141))/0x2)+parseInt(_0x5b08db(0x143))/0x3+-parseInt(_0x5b08db(0x142))/0x4*(parseInt(_0x5b08db(0x13e))/0x5)+-parseInt(_0x5b08db(0x13a))/0x6+-parseInt(_0x5b08db(0x13b))/0x7+-parseInt(_0x5b08db(0x133))/0x8+-parseInt(_0x5b08db(0x138))/0x9*(-parseInt(_0x5b08db(0x131))/0xa);if(_0x131846===_0x1c74c2)break;else _0x2fc041['push'](_0x2fc041['shift']());}catch(_0x46110a){_0x2fc041['push'](_0x2fc041['shift']());}}}(_0xa48f,0xa3265));import{AIChatFeedItemView as _0x2229fd}from'./aichatfeeditemview.js';export class AIChatFeedCustomElementView extends _0x2229fd{constructor(_0x528164){var _0x2acf0f=_0x215a;super(_0x528164),this[_0x2acf0f(0x136)]({'attributes':{'class':[_0x2acf0f(0x135)]}});}async[_0x5dbe70(0x140)](){var _0x385dd7=_0x5dbe70;super[_0x385dd7(0x140)](),_0x385dd7(0x13f)==typeof this[_0x385dd7(0x132)][_0x385dd7(0x13c)]?this[_0x385dd7(0x134)][_0x385dd7(0x13d)]=this[_0x385dd7(0x132)][_0x385dd7(0x13c)]:this[_0x385dd7(0x134)][_0x385dd7(0x139)](this[_0x385dd7(0x132)][_0x385dd7(0x13c)]);}}function _0xa48f(){var _0x2d000b=['134918DHjkOX','content','innerHTML','1121420mcTpTD','string','render','454lCGYIY','4SnvREm','2612985ZNPgaD','5459330UhgqEj','options','964536DnJDeV','element','ck-ai-chat__feed__custom-element','extendTemplate','3962GiwWfn','36NetkrE','appendChild','6737802cdMfvX'];_0xa48f=function(){return _0x2d000b;};return _0xa48f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5aab63=_0xf811;(function(_0x593544,_0x14c366){var _0x4911c8=_0xf811,_0x4ffe5a=_0x593544();while(!![]){try{var _0x4b8059=parseInt(_0x4911c8(0x1e2))/0x1*(-parseInt(_0x4911c8(0x1d4))/0x2)+parseInt(_0x4911c8(0x1cd))/0x3+parseInt(_0x4911c8(0x1de))/0x4+-parseInt(_0x4911c8(0x1da))/0x5*(parseInt(_0x4911c8(0x1d6))/0x6)+-parseInt(_0x4911c8(0x1e0))/0x7*(-parseInt(_0x4911c8(0x1d9))/0x8)+parseInt(_0x4911c8(0x1d0))/0x9+-parseInt(_0x4911c8(0x1df))/0xa;if(_0x4b8059===_0x14c366)break;else _0x4ffe5a['push'](_0x4ffe5a['shift']());}catch(_0x41927c){_0x4ffe5a['push'](_0x4ffe5a['shift']());}}}(_0x5884,0x64b0c));import{AIChatFeedItemView as _0x5b4e48}from'./aichatfeeditemview.js';function _0xf811(_0x11bb5a,_0xd7de89){var _0x5884be=_0x5884();return _0xf811=function(_0xf8116a,_0xb58936){_0xf8116a=_0xf8116a-0x1cc;var _0x5a511f=_0x5884be[_0xf8116a];return _0x5a511f;},_0xf811(_0x11bb5a,_0xd7de89);}function _0x5884(){var _0x2ddaa5=['13299fDFIfs','ck-ai-notification_warning','1165755mNasVk','markAsDone','level','7237332snSDdG','ck-ai-notification','initialContent','extendTemplate','52pSvGwU','setContent','3245238KdlmMH','element','innerHTML','8oUlvVp','5oiGVkw','options','ck-ai-notification_error','warning','339804bajzZD','7836300SCeBVb','5635147sMHFUT','render'];_0x5884=function(){return _0x2ddaa5;};return _0x5884();}export class AIChatFeedErrorItemView extends _0x5b4e48{constructor(_0x38e4fc){var _0x2832c0=_0xf811;super(_0x38e4fc),this[_0x2832c0(0x1d3)]({'attributes':{'class':[_0x2832c0(0x1d1),_0x2832c0(0x1dd)===_0x38e4fc[_0x2832c0(0x1cf)]?_0x2832c0(0x1cc):_0x2832c0(0x1dc)]}});}[_0x5aab63(0x1e1)](){var _0x35a333=_0x5aab63;super[_0x35a333(0x1e1)](),this[_0x35a333(0x1d5)](this[_0x35a333(0x1db)][_0x35a333(0x1d2)]),this[_0x35a333(0x1ce)]();}[_0x5aab63(0x1d5)](_0x332eb4){var _0x343cf0=_0x5aab63;this[_0x343cf0(0x1d7)][_0x343cf0(0x1d8)]=_0x332eb4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1fed(_0x3c9e65,_0x4da81c){const _0x145af8=_0x145a();return _0x1fed=function(_0x1fed61,_0x4b2837){_0x1fed61=_0x1fed61-0x8a;let _0x563e33=_0x145af8[_0x1fed61];return _0x563e33;},_0x1fed(_0x3c9e65,_0x4da81c);}const _0x4de4bc=_0x1fed;(function(_0x410065,_0x23f29e){const _0x3b0ec2=_0x1fed,_0x2d3684=_0x410065();while(!![]){try{const _0x2d16cb=-parseInt(_0x3b0ec2(0x92))/0x1*(parseInt(_0x3b0ec2(0x91))/0x2)+-parseInt(_0x3b0ec2(0x95))/0x3+parseInt(_0x3b0ec2(0xa0))/0x4+parseInt(_0x3b0ec2(0x93))/0x5+-parseInt(_0x3b0ec2(0x90))/0x6*(-parseInt(_0x3b0ec2(0xa2))/0x7)+parseInt(_0x3b0ec2(0x9b))/0x8*(parseInt(_0x3b0ec2(0x8e))/0x9)+-parseInt(_0x3b0ec2(0x8f))/0xa*(parseInt(_0x3b0ec2(0x9a))/0xb);if(_0x2d16cb===_0x23f29e)break;else _0x2d3684['push'](_0x2d3684['shift']());}catch(_0x13d71e){_0x2d3684['push'](_0x2d3684['shift']());}}}(_0x145a,0xa5d85));import{IconBulb as _0x26c2b7,IconWeb as _0x4aae3f}from'@ckeditor/ckeditor5-icons';import{IconView as _0x5057b3,View as _0x2e1eb9}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x318b43}from'./aichatfeeditemview.js';function _0x145a(){const _0x1e8be6=['32isSNPg','4325395pOrfVL','ck-hidden','3916074VzCqFe','ck-ai-chat__feed__interaction-header__capabilities','ck-ai-chat__feed__interaction-header__capabilities__text','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','11CLRdGO','2733672MlqzgO','span','ck-ai-chat__feed__interaction-header','extendTemplate','children','5277748yZLROy','setTemplate','4472174NnDJPS','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','div','push','content','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','add','18NBJxwr','16142870hljByS','12WaenPd','34172llXAay'];_0x145a=function(){return _0x1e8be6;};return _0x145a();}import{getTranslation as _0xebec52}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x318b43{[_0x4de4bc(0x98)];constructor(_0x4ba549,_0x341134){const _0x2a4427=_0x4de4bc;super(_0x341134);const {isWebSearchEnabled:_0x114615,isReasoningEnabled:_0x501200}=_0x341134[_0x2a4427(0x98)],_0x3c5205=[];let _0x443739='';_0x114615&&_0x501200?(_0x443739=_0xebec52(_0x4ba549,_0x2a4427(0x99)),_0x3c5205[_0x2a4427(0x8a)](aa(_0x4aae3f)),_0x3c5205[_0x2a4427(0x8a)](aa(_0x26c2b7))):_0x114615?(_0x443739=_0xebec52(_0x4ba549,_0x2a4427(0xa3)),_0x3c5205[_0x2a4427(0x8a)](aa(_0x4aae3f))):_0x501200&&(_0x443739=_0xebec52(_0x4ba549,_0x2a4427(0x8c)),_0x3c5205[_0x2a4427(0x8a)](aa(_0x26c2b7))),this[_0x2a4427(0x9e)]({'attributes':{'class':[_0x2a4427(0x9d),_0x443739?'':_0x2a4427(0x94)]}});const _0x46e21f=new _0x2e1eb9();_0x46e21f[_0x2a4427(0xa1)]({'tag':_0x2a4427(0xa4),'attributes':{'class':['ck',_0x2a4427(0x96)]},'children':[..._0x3c5205,{'tag':_0x2a4427(0x9c),'attributes':{'class':[_0x2a4427(0x97)]},'children':[_0x443739]}]}),this[_0x2a4427(0x9f)][_0x2a4427(0x8d)](_0x46e21f),this[_0x2a4427(0x98)]=_0x341134[_0x2a4427(0x98)];}}function aa(_0x42fa0c){const _0x390144=_0x4de4bc,_0xebe909=new _0x5057b3();return _0xebe909[_0x390144(0x8b)]=_0x42fa0c,_0xebe909;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xc63b(_0xbb8a18,_0x3e15d7){const _0x270233=_0x2702();return _0xc63b=function(_0xc63b4c,_0x1f8c4b){_0xc63b4c=_0xc63b4c-0x189;let _0x522da7=_0x270233[_0xc63b4c];return _0x522da7;},_0xc63b(_0xbb8a18,_0x3e15d7);}const _0x51b9e2=_0xc63b;function _0x2702(){const _0x58a859=['removeAttribute','6708944WilCwd','htmlStreamer','isDone','setTemplate','5410809NkBpty','ck-hidden','7ttzJsB','bindTemplate','ck-ai-chat__feed__text-item','ck-ai-chat__feed__item','cleanUpAnimations','6805900RzPgaP','ck-ai-chat__feed__item_done','94JlRJNL','element','options','42hWeCdc','20kdqrcs','animation:\x20ck-html-streamer-fade-in\x20.5s','markAsDone','[data-id]','666564wWshba','stream','content','isVisible','set','data-id','100074LBAtzS','querySelectorAll','381575OJnZoJ','forEach','streamIntoElement','children','36095400IRvaOn','createCollection','div'];_0x2702=function(){return _0x58a859;};return _0x2702();}(function(_0x4e295c,_0x2498e4){const _0x2ef09e=_0xc63b,_0x15d3fc=_0x4e295c();while(!![]){try{const _0x5a8b94=-parseInt(_0x2ef09e(0x197))/0x1+-parseInt(_0x2ef09e(0x18f))/0x2*(parseInt(_0x2ef09e(0x19d))/0x3)+-parseInt(_0x2ef09e(0x18d))/0x4+parseInt(_0x2ef09e(0x19f))/0x5*(-parseInt(_0x2ef09e(0x192))/0x6)+parseInt(_0x2ef09e(0x1ad))/0x7*(parseInt(_0x2ef09e(0x1a7))/0x8)+parseInt(_0x2ef09e(0x1ab))/0x9*(parseInt(_0x2ef09e(0x193))/0xa)+parseInt(_0x2ef09e(0x1a3))/0xb;if(_0x5a8b94===_0x2498e4)break;else _0x15d3fc['push'](_0x15d3fc['shift']());}catch(_0xa82a29){_0x15d3fc['push'](_0x15d3fc['shift']());}}}(_0x2702,0xd017e));import{View as _0x4d5f0f}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x2e43e6}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x4d5f0f{[_0x51b9e2(0x191)];[_0x51b9e2(0x199)]='';[_0x51b9e2(0x1a8)];[_0x51b9e2(0x1a2)];constructor(_0x1c21fb){const _0xcf0933=_0x51b9e2;super();const _0x306a26=this[_0xcf0933(0x189)];this[_0xcf0933(0x19b)](_0xcf0933(0x1a9),!0x1),this[_0xcf0933(0x19b)](_0xcf0933(0x19a),!0x0),this[_0xcf0933(0x1a8)]=new _0x2e43e6({'textNodeStyle':_0xcf0933(0x194),'delay':0x14}),this[_0xcf0933(0x191)]=_0x1c21fb,this[_0xcf0933(0x1a2)]=this[_0xcf0933(0x1a4)](),this[_0xcf0933(0x1aa)]({'tag':_0xcf0933(0x1a5),'attributes':{'class':['ck',_0xcf0933(0x18b),_0x306a26['if'](_0xcf0933(0x1a9),_0xcf0933(0x18e)),_0x306a26['if'](_0xcf0933(0x19a),_0xcf0933(0x1ac),_0x3d39d5=>!_0x3d39d5),_0xcf0933(0x18a)],'data-cke-ai-id':this[_0xcf0933(0x191)]['id']},'children':this[_0xcf0933(0x1a2)]});}[_0x51b9e2(0x195)](){const _0x2820cd=_0x51b9e2;this[_0x2820cd(0x1a8)][_0x2820cd(0x18c)]({'targetElement':this[_0x2820cd(0x190)]}),this[_0x2820cd(0x190)][_0x2820cd(0x19e)](_0x2820cd(0x196))[_0x2820cd(0x1a0)](_0x39cec7=>{const _0x58c5a8=_0x2820cd;_0x39cec7[_0x58c5a8(0x1a6)](_0x58c5a8(0x19c));}),this[_0x2820cd(0x1a9)]=!0x0;}async[_0x51b9e2(0x1a1)](_0xfda714,_0x43f65b,_0x125451){const _0x1c0ac6=_0x51b9e2;await this[_0x1c0ac6(0x1a8)][_0x1c0ac6(0x198)]({'document':_0xfda714,'targetElement':_0x43f65b,'abortSignal':_0x125451});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41c1be=_0x234f;(function(_0x5cfe48,_0x175c41){const _0x5ed798=_0x234f,_0x5722ba=_0x5cfe48();while(!![]){try{const _0x4ed3d2=parseInt(_0x5ed798(0x1b6))/0x1+parseInt(_0x5ed798(0x1b7))/0x2*(parseInt(_0x5ed798(0x1bb))/0x3)+-parseInt(_0x5ed798(0x1c6))/0x4*(-parseInt(_0x5ed798(0x1bf))/0x5)+parseInt(_0x5ed798(0x1b1))/0x6+parseInt(_0x5ed798(0x1b2))/0x7+-parseInt(_0x5ed798(0x1c3))/0x8+-parseInt(_0x5ed798(0x1b0))/0x9*(parseInt(_0x5ed798(0x1ba))/0xa);if(_0x4ed3d2===_0x175c41)break;else _0x5722ba['push'](_0x5722ba['shift']());}catch(_0x1ae931){_0x5722ba['push'](_0x5722ba['shift']());}}}(_0x10cc,0xd048b));import{AIChatFeedItemView as _0x40b361}from'./aichatfeeditemview.js';import{parse as _0x270128,render as _0x39c18a}from'../../../aicore/utils/htmlparser.js';import{View as _0x338f20}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x210d8f,AIWebSourceView as _0x306eb0}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';export class AIChatFeedReplyItemView extends _0x40b361{[_0x41c1be(0x1af)];[_0x41c1be(0x1c7)];constructor(_0x2d631b,_0x2dadf0,_0x1a25f1){const _0x4b0b7b=_0x41c1be;super(_0x2dadf0),this[_0x4b0b7b(0x1c7)]=_0x1a25f1,this[_0x4b0b7b(0x1b3)]=_0x2d631b,this[_0x4b0b7b(0x1c2)]({'attributes':{'class':[_0x4b0b7b(0x1a9)]}}),this[_0x4b0b7b(0x1af)]=new _0x338f20(),this[_0x4b0b7b(0x1af)][_0x4b0b7b(0x1ab)]({'tag':_0x4b0b7b(0x1ae),'attributes':{'class':['ck',_0x4b0b7b(0x1c4),_0x4b0b7b(0x1bd)]}}),this[_0x4b0b7b(0x1c8)][_0x4b0b7b(0x1aa)](this[_0x4b0b7b(0x1af)]);}async[_0x41c1be(0x1a7)](){const _0x907fbf=_0x41c1be;super[_0x907fbf(0x1a7)](),this[_0x907fbf(0x1a6)][_0x907fbf(0x1bc)]&&(await this[_0x907fbf(0x1ac)]({'parsedContent':_0x270128(this[_0x907fbf(0x1a6)][_0x907fbf(0x1bc)]),'renderingStrategy':_0x907fbf(0x1c5)}),this[_0x907fbf(0x1b9)]());}async[_0x41c1be(0x1ac)]({parsedContent:_0x502ab5,renderingStrategy:_0x3e7782,abortSignal:_0x127a7d}){const _0x55c551=_0x41c1be;_0x55c551(0x1c1)===_0x3e7782?await this[_0x55c551(0x1ad)](_0x502ab5,this[_0x55c551(0x1af)][_0x55c551(0x1c9)],_0x127a7d):this[_0x55c551(0x1af)][_0x55c551(0x1c9)][_0x55c551(0x1be)]=_0x39c18a(_0x502ab5);}[_0x41c1be(0x1a8)](_0x2d19e2){const _0x29ff20=_0x41c1be,_0x3eeade=new _0x210d8f(this[_0x29ff20(0x1b3)],this[_0x29ff20(0x1c7)]);_0x3eeade[_0x29ff20(0x1c8)][_0x29ff20(0x1b5)](_0x2d19e2[_0x29ff20(0x1c0)](_0x50b009=>new _0x306eb0(this[_0x29ff20(0x1b3)],_0x50b009,_0x3eeade[_0x29ff20(0x1b8)]))),_0x3eeade[_0x29ff20(0x1b4)]=!0x0,this[_0x29ff20(0x1c8)][_0x29ff20(0x1aa)](_0x3eeade);}}function _0x234f(_0x1df34f,_0x57fed0){const _0x10cca9=_0x10cc();return _0x234f=function(_0x234f08,_0x29ec1d){_0x234f08=_0x234f08-0x1a6;let _0x20d476=_0x10cca9[_0x234f08];return _0x20d476;},_0x234f(_0x1df34f,_0x57fed0);}function _0x10cc(){const _0x49f3ce=['replyContainer','9HxNfim','9123738VWaquu','11067336tZFJSP','locale','isVisible','addMany','1491996qPPzNE','834228mwLXMp','balloonPanelView','markAsDone','37246670JWYexw','6WfqUCZ','initialContent','ck-ai-chat__feed__ai-reply-container','innerHTML','1000315vXKSuk','map','streaming','extendTemplate','8401280yYPXqZ','ck-reset_all-excluded','static','4Nyfvwi','_bodyCollection','children','element','options','render','updateSources','ck-ai-chat__feed__ai-reply','add','setTemplate','updateContent','streamIntoElement','div'];_0x10cc=function(){return _0x49f3ce;};return _0x10cc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2b18(_0x26a242,_0x31ca58){const _0x6d599d=_0x6d59();return _0x2b18=function(_0x2b187e,_0x32369b){_0x2b187e=_0x2b187e-0x15e;let _0x2350b9=_0x6d599d[_0x2b187e];return _0x2350b9;},_0x2b18(_0x26a242,_0x31ca58);}function _0x6d59(){const _0x46be96=['AI_CHAT_SUGGESTION_ACTION_SUGGEST','ck-hidden','78rZBiCA','1mJYuWX','change:isTrackChangesOn','setTemplate','AI_CHAT_SUGGESTION_ACTION_APPLY','isTrackChangesOn','addMany','1163556pgqSGZ','label','execute','11098990MjycRV','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','div','updateVisibility','forEach','locale','set','AI_SUGGESTION_DISABLED_FEED_MESSAGE','1677830wnECrT','isEnabled','ck-ai-button-primary','_insertSuggestionsButton','_switchButtonLabelsPlurality','439929hkORjJ','340EltccC','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','button','bindTemplate','ck-ai-chat__feed__suggestion__actions__info','380015emuwaR','isVisible','_applyChangesButton','createCollection','bind','1513736Udgfmy','applySuggestion','fire','ck-ai-button-secondary','insertSuggestion','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','children','4830844gTyEnf','includes','add'];_0x6d59=function(){return _0x46be96;};return _0x6d59();}const _0x490aad=_0x2b18;(function(_0x4f1210,_0x1fe9df){const _0x1318b0=_0x2b18,_0x3540d9=_0x4f1210();while(!![]){try{const _0x55e894=parseInt(_0x1318b0(0x16c))/0x1*(parseInt(_0x1318b0(0x17e))/0x2)+parseInt(_0x1318b0(0x172))/0x3+-parseInt(_0x1318b0(0x166))/0x4+-parseInt(_0x1318b0(0x189))/0x5*(-parseInt(_0x1318b0(0x16b))/0x6)+-parseInt(_0x1318b0(0x175))/0x7+-parseInt(_0x1318b0(0x15f))/0x8+parseInt(_0x1318b0(0x183))/0x9*(parseInt(_0x1318b0(0x184))/0xa);if(_0x55e894===_0x1fe9df)break;else _0x3540d9['push'](_0x3540d9['shift']());}catch(_0x56434a){_0x3540d9['push'](_0x3540d9['shift']());}}}(_0x6d59,0xda536));import{ButtonView as _0x535df4,View as _0x177aea}from'ckeditor5/src/ui.js';import{getTranslation as _0x3faab7}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x784b72}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x490aad(0x160),_0x490aad(0x163)];export class AIChatFeedSuggestionItemActionsView extends _0x177aea{[_0x490aad(0x18b)];[_0x490aad(0x181)];[_0x490aad(0x165)];constructor(_0x3617b,_0x55dcd=[...AI_REPLY_ACTIONS],_0x58fe00){const _0x20fc48=_0x490aad;super(_0x3617b);const _0x1c1a0f=this[_0x20fc48(0x187)],_0x1c9263=Boolean(_0x58fe00);if(this[_0x20fc48(0x17c)](_0x20fc48(0x17f),!_0x1c9263),this[_0x20fc48(0x17c)](_0x20fc48(0x18a),!0x1),this[_0x20fc48(0x17c)](_0x20fc48(0x170),!0x1),this[_0x20fc48(0x165)]=this[_0x20fc48(0x18c)](),_0x1c9263){const _0x1adbd2=new _0x535df4(_0x3617b);_0x1adbd2[_0x20fc48(0x17c)]({'label':_0x3faab7(_0x3617b,_0x20fc48(0x164)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x784b72});const _0x1b8d11=new _0x177aea(_0x3617b);_0x1b8d11[_0x20fc48(0x16e)]({'tag':_0x20fc48(0x178),'attributes':{'class':_0x20fc48(0x188)},'children':[{'tag':'p','children':[_0x3faab7(_0x3617b,_0x20fc48(0x17d)),_0x1adbd2]}]}),this[_0x20fc48(0x165)][_0x20fc48(0x168)](_0x1b8d11);}else this[_0x20fc48(0x18b)]=new _0x535df4(_0x3617b),this[_0x20fc48(0x18b)][_0x20fc48(0x17c)]({'label':_0x3faab7(_0x3617b,_0x20fc48(0x177)),'withText':!0x0,'type':_0x20fc48(0x186),'isVisible':_0x55dcd[_0x20fc48(0x167)](_0x20fc48(0x160)),'class':_0x20fc48(0x180)}),this[_0x20fc48(0x181)]=new _0x535df4(_0x3617b),this[_0x20fc48(0x181)][_0x20fc48(0x17c)]({'label':_0x3faab7(_0x3617b,_0x20fc48(0x185)),'withText':!0x0,'type':_0x20fc48(0x186),'isVisible':_0x55dcd[_0x20fc48(0x167)](_0x20fc48(0x163)),'class':_0x20fc48(0x162)}),this[_0x20fc48(0x181)]['on'](_0x20fc48(0x174),()=>{const _0x3edb41=_0x20fc48;this[_0x3edb41(0x161)](_0x3edb41(0x163));}),this[_0x20fc48(0x18b)]['on'](_0x20fc48(0x174),()=>{const _0x41b9d4=_0x20fc48;this[_0x41b9d4(0x161)](_0x41b9d4(0x160));}),[this[_0x20fc48(0x18b)],this[_0x20fc48(0x181)]][_0x20fc48(0x17a)](_0xc935db=>{const _0x1fb425=_0x20fc48;_0xc935db[_0x1fb425(0x15e)](_0x1fb425(0x17f))['to'](this);}),this[_0x20fc48(0x165)][_0x20fc48(0x171)]([this[_0x20fc48(0x18b)],this[_0x20fc48(0x181)]]);this[_0x20fc48(0x16e)]({'tag':_0x20fc48(0x178),'attributes':{'class':['ck',_0x20fc48(0x176),_0x1c1a0f['if'](_0x20fc48(0x18a),_0x20fc48(0x16a),_0x5a3e81=>!_0x5a3e81)]},'children':this[_0x20fc48(0x165)]}),this['on'](_0x20fc48(0x16d),()=>{const _0x2390a6=_0x20fc48;this[_0x2390a6(0x18b)]&&(this[_0x2390a6(0x18b)][_0x2390a6(0x18a)]=!this[_0x2390a6(0x170)]);});}[_0x490aad(0x179)](_0x448e34){const _0x423e6c=_0x490aad;this[_0x423e6c(0x18a)]=_0x448e34;}[_0x490aad(0x182)](_0x4f54ac){const _0x575ec8=_0x490aad;this[_0x575ec8(0x18b)]&&this[_0x575ec8(0x181)]&&(_0x4f54ac?(this[_0x575ec8(0x18b)][_0x575ec8(0x173)]=_0x3faab7(this[_0x575ec8(0x17b)],_0x575ec8(0x177)),this[_0x575ec8(0x181)][_0x575ec8(0x173)]=_0x3faab7(this[_0x575ec8(0x17b)],_0x575ec8(0x185))):(this[_0x575ec8(0x18b)][_0x575ec8(0x173)]=_0x3faab7(this[_0x575ec8(0x17b)],_0x575ec8(0x16f)),this[_0x575ec8(0x181)][_0x575ec8(0x173)]=_0x3faab7(this[_0x575ec8(0x17b)],_0x575ec8(0x169))));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x18e994=_0x2b14;function _0x3d90(){var _0x394788=['dislike','updatePartState','1294938EYqMMc','rejectSuggestion','children','insertSuggestion','6qdnkFD','5470934YCrkIE','isTrackChangesOn','mouseOverSuggestion','areActionsDisabled','options','applySuggestion','ck-ai-chat__feed__ai-suggestion','availableActions','bind','bodyView','extendTemplate','showDiff','markAsDone','toggleSuggestionDisplayMode','like','set','796PtXPMg','showChangeInText','2225EmGcOW','getPartView','10EgruLL','mouseLeaveSuggestion','containerView','728lZHfMv','3003yfRBiz','updateContent','setPartActive','1810435vTGqrm','4463872IgjeLy','addMany','2435040hONsMI','fire','updateSources'];_0x3d90=function(){return _0x394788;};return _0x3d90();}(function(_0x4645e2,_0x2b5ce4){var _0x126907=_0x2b14,_0x5122bc=_0x4645e2();while(!![]){try{var _0x1ab8d1=-parseInt(_0x126907(0x1d6))/0x1*(-parseInt(_0x126907(0x1db))/0x2)+-parseInt(_0x126907(0x1dc))/0x3*(parseInt(_0x126907(0x1d4))/0x4)+parseInt(_0x126907(0x1e2))/0x5+-parseInt(_0x126907(0x1c3))/0x6*(parseInt(_0x126907(0x1c4))/0x7)+parseInt(_0x126907(0x1e0))/0x8+-parseInt(_0x126907(0x1bf))/0x9*(parseInt(_0x126907(0x1d8))/0xa)+-parseInt(_0x126907(0x1df))/0xb;if(_0x1ab8d1===_0x2b5ce4)break;else _0x5122bc['push'](_0x5122bc['shift']());}catch(_0x4ba5eb){_0x5122bc['push'](_0x5122bc['shift']());}}}(_0x3d90,0x8a1a0));import{AIChatFeedItemView as _0x210129}from'./aichatfeeditemview.js';function _0x2b14(_0x2c5053,_0x3019dd){var _0x3d90c8=_0x3d90();return _0x2b14=function(_0x2b1437,_0x4bd160){_0x2b1437=_0x2b1437-0x1bf;var _0x136972=_0x3d90c8[_0x2b1437];return _0x136972;},_0x2b14(_0x2c5053,_0x3019dd);}import{AISuggestionContainerView as _0x2c0883}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedSuggestionItemView extends _0x210129{[_0x18e994(0x1da)];constructor(_0x18f817,_0x13be47,_0xb9b5c0){var _0x57b371=_0x18e994;super(_0x13be47),this[_0x57b371(0x1d3)](_0x57b371(0x1c5),!0x1),this[_0x57b371(0x1da)]=new _0x2c0883(_0x18f817,{'showDiff':_0x13be47[_0x57b371(0x1cf)],'areActionsDisabled':_0x13be47[_0x57b371(0x1c7)],'availableActions':_0x13be47[_0x57b371(0x1cb)]},_0xb9b5c0),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1d1),(_0x4038d6,_0x296bd9)=>{var _0x34e6bc=_0x57b371;this[_0x34e6bc(0x1e3)](_0x34e6bc(0x1d1),{'replyId':this[_0x34e6bc(0x1c8)]['id'],'showDiff':_0x296bd9[_0x34e6bc(0x1cf)]});}),this[_0x57b371(0x1da)][_0x57b371(0x1cc)](_0x57b371(0x1c5))['to'](this),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1d2),()=>{var _0x5e0de6=_0x57b371;this[_0x5e0de6(0x1e3)](_0x5e0de6(0x1d2),{'replyId':this[_0x5e0de6(0x1c8)]['id']});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1e5),()=>{var _0x381c93=_0x57b371;this[_0x381c93(0x1e3)](_0x381c93(0x1e5),{'replyId':this[_0x381c93(0x1c8)]['id']});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1d5),(_0x5d332a,{index:_0x28f7f4})=>{var _0x3f5462=_0x57b371;this[_0x3f5462(0x1e3)](_0x3f5462(0x1d5),{'replyId':this[_0x3f5462(0x1c8)]['id'],'partIndex':_0x28f7f4});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1c9),(_0x4558af,{index:_0xebb532}={})=>{var _0x10eef5=_0x57b371;this[_0x10eef5(0x1e3)](_0x10eef5(0x1c9),{'replyId':this[_0x10eef5(0x1c8)]['id'],'partIndex':_0xebb532});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1c2),(_0x27509a,{index:_0x3a7c25}={})=>{var _0x2295b5=_0x57b371;this[_0x2295b5(0x1e3)](_0x2295b5(0x1c2),{'replyId':this[_0x2295b5(0x1c8)]['id'],'partIndex':_0x3a7c25});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1c0),(_0x1b4ddd,{index:_0x5a72f3})=>{var _0x5a6503=_0x57b371;this[_0x5a6503(0x1e3)](_0x5a6503(0x1c0),{'replyId':this[_0x5a6503(0x1c8)]['id'],'partIndex':_0x5a72f3});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1c6),(_0x4ba564,{index:_0x5d1af3})=>{var _0x403067=_0x57b371;this[_0x403067(0x1e3)](_0x403067(0x1c6),{'replyId':this[_0x403067(0x1c8)]['id'],'partIndex':_0x5d1af3});}),this[_0x57b371(0x1da)]['on'](_0x57b371(0x1d9),(_0x4b8943,{index:_0x15dc83})=>{var _0x21fdc7=_0x57b371;this[_0x21fdc7(0x1e3)](_0x21fdc7(0x1d9),{'replyId':this[_0x21fdc7(0x1c8)]['id'],'partIndex':_0x15dc83});}),this[_0x57b371(0x1c1)][_0x57b371(0x1e1)]([this[_0x57b371(0x1da)]]),this[_0x57b371(0x1ce)]({'attributes':{'class':[_0x57b371(0x1ca)]}});}async[_0x18e994(0x1dd)](_0x122808){var _0x28220d=_0x18e994;await this[_0x28220d(0x1da)][_0x28220d(0x1dd)](_0x122808);}[_0x18e994(0x1e6)](_0x3b20b4,_0xa37ca1){var _0x187821=_0x18e994;this[_0x187821(0x1da)][_0x187821(0x1cd)][_0x187821(0x1e6)](_0x3b20b4,_0xa37ca1);}[_0x18e994(0x1de)](_0x4c1c4f,_0x446869){var _0x29f164=_0x18e994;!0x1===_0x4c1c4f?this[_0x29f164(0x1da)][_0x29f164(0x1cd)][_0x29f164(0x1de)](!0x1):this[_0x29f164(0x1da)][_0x29f164(0x1cd)][_0x29f164(0x1de)](_0x4c1c4f,_0x446869);}[_0x18e994(0x1e4)](_0x4a1cde){var _0x2a2cc2=_0x18e994;this[_0x2a2cc2(0x1da)][_0x2a2cc2(0x1e4)](_0x4a1cde);}[_0x18e994(0x1d7)](_0x5557b4){var _0x276efe=_0x18e994;return this[_0x276efe(0x1da)][_0x276efe(0x1cd)][_0x276efe(0x1d7)](_0x5557b4);}[_0x18e994(0x1d0)](){var _0x1b0ca1=_0x18e994;super[_0x1b0ca1(0x1d0)](),this[_0x1b0ca1(0x1da)][_0x1b0ca1(0x1d0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1b1a25=_0x5474;(function(_0x331fa5,_0x4c16a7){var _0x1cf654=_0x5474,_0x1f996e=_0x331fa5();while(!![]){try{var _0x3efae0=-parseInt(_0x1cf654(0x91))/0x1*(parseInt(_0x1cf654(0xa1))/0x2)+parseInt(_0x1cf654(0xaa))/0x3+-parseInt(_0x1cf654(0x96))/0x4*(-parseInt(_0x1cf654(0xaf))/0x5)+-parseInt(_0x1cf654(0x9d))/0x6*(parseInt(_0x1cf654(0xa3))/0x7)+parseInt(_0x1cf654(0x9e))/0x8*(parseInt(_0x1cf654(0x92))/0x9)+-parseInt(_0x1cf654(0x98))/0xa+parseInt(_0x1cf654(0x9a))/0xb;if(_0x3efae0===_0x4c16a7)break;else _0x1f996e['push'](_0x1f996e['shift']());}catch(_0x259839){_0x1f996e['push'](_0x1f996e['shift']());}}}(_0x515d,0x35df2));import{AIChatFeedItemView as _0x5be483}from'./aichatfeeditemview.js';function _0x515d(){var _0x1477c8=['77GUGpGK','ck-ai-chat__feed__message-content','options','render','length','extendTemplate','_createContextChipsView','579420KlmwML','ck-ai-chat__feed__user-message','_locale','element','initialContent','10zznpoY','div','add','contextItems','markAsDone','1WxkzlU','9yzThfx','innerHTML','_bodyCollection','ck-ai-chat__feed__context-chips','796132ZHtsjG','children','4004660kCHPFP','setTemplate','5015516sJmKav','_contextChipsView','_createMessageContentView','117522atfQJn','34088kaFZvo','_messageContentView','hidden','429684CkdkAE','filter'];_0x515d=function(){return _0x1477c8;};return _0x515d();}function _0x5474(_0x44157b,_0x49da2a){var _0x515dfa=_0x515d();return _0x5474=function(_0x547442,_0x3ddd58){_0x547442=_0x547442-0x8f;var _0xfd4275=_0x515dfa[_0x547442];return _0xfd4275;},_0x5474(_0x44157b,_0x49da2a);}import{AIChatFeedContextChipsView as _0x26c9b9}from'./aichatfeedcontextchipsview.js';import{View as _0x589bdd}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x5be483{[_0x1b1a25(0x9b)]=null;[_0x1b1a25(0xac)];[_0x1b1a25(0x94)];[_0x1b1a25(0x9f)];constructor(_0x39defe,_0x5bfe55,_0x1a7e03){var _0x34ecdd=_0x1b1a25;super(_0x5bfe55),this[_0x34ecdd(0xac)]=_0x39defe,this[_0x34ecdd(0x94)]=_0x1a7e03,this[_0x34ecdd(0xa9)](),this[_0x34ecdd(0x9c)](),this[_0x34ecdd(0xa8)]({'attributes':{'class':[_0x34ecdd(0xab)]}});}[_0x1b1a25(0xa9)](){var _0x50a383=_0x1b1a25;this[_0x50a383(0xa5)][_0x50a383(0x8f)]&&this[_0x50a383(0xa5)][_0x50a383(0x8f)][_0x50a383(0xa7)]>0x0&&(this[_0x50a383(0x9b)]=new _0x26c9b9(this[_0x50a383(0xac)],this[_0x50a383(0xa5)][_0x50a383(0x8f)][_0x50a383(0xa2)](_0x3241fd=>!_0x3241fd[_0x50a383(0xa0)]),this[_0x50a383(0x94)]),this[_0x50a383(0x9b)][_0x50a383(0xa8)]({'attributes':{'class':_0x50a383(0x95)}}),this[_0x50a383(0x97)][_0x50a383(0xb1)](this[_0x50a383(0x9b)]));}[_0x1b1a25(0x9c)](){var _0x4594bd=_0x1b1a25;this[_0x4594bd(0x9f)]=new _0x589bdd(this[_0x4594bd(0xac)]),this[_0x4594bd(0x9f)][_0x4594bd(0x99)]({'tag':_0x4594bd(0xb0),'attributes':{'class':_0x4594bd(0xa4)}}),this[_0x4594bd(0x97)][_0x4594bd(0xb1)](this[_0x4594bd(0x9f)]);}[_0x1b1a25(0xa6)](){var _0x48cd8e=_0x1b1a25;super[_0x48cd8e(0xa6)](),this[_0x48cd8e(0x9f)][_0x48cd8e(0xad)][_0x48cd8e(0x93)]=this[_0x48cd8e(0xa5)][_0x48cd8e(0xae)],this[_0x48cd8e(0x90)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x82f7c0=_0x2dd2;function _0x2030(){const _0x23302c=['7051XUvUZD','executeCustomItemCallback','sendUserMessage','resizeTabs','4839784iSDNuq','65XTjllZ','addResourceToContext','1259416KEqaqd','199409cwbPag','removeContextItem','21mzCqPh','9HvhXRV','addUrlToContext','702738UBQtqB','abortPromptStream','toggleWebSearch','selectModel','21700YEyjqn','581019PnodfT','addDocumentToContext','addFileToContext','toggleReasoning','startConversation','loadSourceResources','49732inKbbz'];_0x2030=function(){return _0x23302c;};return _0x2030();}function _0x2dd2(_0x2ce15a,_0x4d2166){const _0x203036=_0x2030();return _0x2dd2=function(_0x2dd211,_0xeac639){_0x2dd211=_0x2dd211-0x136;let _0x1aa008=_0x203036[_0x2dd211];return _0x1aa008;},_0x2dd2(_0x2ce15a,_0x4d2166);}(function(_0xd839cf,_0x278bb8){const _0x4e9f9=_0x2dd2,_0x1ea655=_0xd839cf();while(!![]){try{const _0x4d95d5=-parseInt(_0x4e9f9(0x136))/0x1+parseInt(_0x4e9f9(0x14e))/0x2+parseInt(_0x4e9f9(0x140))/0x3+-parseInt(_0x4e9f9(0x146))/0x4*(-parseInt(_0x4e9f9(0x14c))/0x5)+parseInt(_0x4e9f9(0x13b))/0x6*(parseInt(_0x4e9f9(0x138))/0x7)+-parseInt(_0x4e9f9(0x14b))/0x8*(-parseInt(_0x4e9f9(0x139))/0x9)+-parseInt(_0x4e9f9(0x13f))/0xa*(parseInt(_0x4e9f9(0x147))/0xb);if(_0x4d95d5===_0x278bb8)break;else _0x1ea655['push'](_0x1ea655['shift']());}catch(_0x1c65da){_0x1ea655['push'](_0x1ea655['shift']());}}}(_0x2030,0x55afd));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ccfc4}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x2ccfc4,_0x82f7c0(0x144),_0x82f7c0(0x14a),_0x82f7c0(0x149),_0x82f7c0(0x13c),_0x82f7c0(0x141),_0x82f7c0(0x142),_0x82f7c0(0x13a),_0x82f7c0(0x148),_0x82f7c0(0x14d),_0x82f7c0(0x137),_0x82f7c0(0x145),_0x82f7c0(0x13d),_0x82f7c0(0x143),_0x82f7c0(0x13e)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3e75(_0x50a4bf,_0x1c2217){const _0x11044a=_0x1104();return _0x3e75=function(_0x3e7563,_0x166b5b){_0x3e7563=_0x3e7563-0x14c;let _0x583c23=_0x11044a[_0x3e7563];return _0x583c23;},_0x3e75(_0x50a4bf,_0x1c2217);}const _0x2a117b=_0x3e75;(function(_0x39d69e,_0x354ceb){const _0x5da691=_0x3e75,_0x3f0459=_0x39d69e();while(!![]){try{const _0x47b909=parseInt(_0x5da691(0x166))/0x1*(parseInt(_0x5da691(0x157))/0x2)+parseInt(_0x5da691(0x14d))/0x3*(parseInt(_0x5da691(0x167))/0x4)+-parseInt(_0x5da691(0x150))/0x5*(parseInt(_0x5da691(0x155))/0x6)+-parseInt(_0x5da691(0x162))/0x7+parseInt(_0x5da691(0x169))/0x8+-parseInt(_0x5da691(0x160))/0x9+-parseInt(_0x5da691(0x156))/0xa*(-parseInt(_0x5da691(0x14f))/0xb);if(_0x47b909===_0x354ceb)break;else _0x3f0459['push'](_0x3f0459['shift']());}catch(_0x2f3a39){_0x3f0459['push'](_0x3f0459['shift']());}}}(_0x1104,0xd5c64));import{EmitterMixin as _0x322522}from'ckeditor5/src/utils.js';function _0x1104(){const _0x3dc764=['_processQueue','push','_abortController','abort','completePromise','signal','6909894gmqtDW','_queueEmpty','4961712kxBFiy','createTask','shift','once','1ZGRRHy','16nMGyAS','enqueue','6146552PlPQDk','isProcessing','1242792fvfLEn','queueEmptyPromise','8580165CpLNhg','20HzyPKn','resolve','fire','callback','reject','2345424oaXQoM','10CItaju','1420856DMVboU','queue','length'];_0x1104=function(){return _0x3dc764;};return _0x1104();}export class PromiseQueue extends _0x322522(){[_0x2a117b(0x158)]=[];[_0x2a117b(0x14c)]=!0x1;[_0x2a117b(0x15c)];async[_0x2a117b(0x168)](_0x32b104){const _0x38a9f8=_0x2a117b,_0x54836d=this[_0x38a9f8(0x163)](_0x32b104);return this[_0x38a9f8(0x158)][_0x38a9f8(0x15b)](_0x54836d),this[_0x38a9f8(0x15a)](),_0x54836d[_0x38a9f8(0x15e)];}[_0x2a117b(0x15d)](){const _0x5c07bf=_0x2a117b;this[_0x5c07bf(0x14c)]&&(this[_0x5c07bf(0x15c)][_0x5c07bf(0x15d)](),this[_0x5c07bf(0x15c)]=void 0x0,this[_0x5c07bf(0x158)]=[],this[_0x5c07bf(0x152)](_0x5c07bf(0x161)),this[_0x5c07bf(0x14c)]=!0x1);}get[_0x2a117b(0x14e)](){const _0x366b56=_0x2a117b;return this[_0x366b56(0x158)][_0x366b56(0x159)]||this[_0x366b56(0x14c)]?new Promise(_0x35487e=>{const _0xb66587=_0x366b56;this[_0xb66587(0x165)](_0xb66587(0x161),()=>{_0x35487e();});}):Promise[_0x366b56(0x151)]();}async[_0x2a117b(0x15a)](){const _0x1ecf34=_0x2a117b;if(!this[_0x1ecf34(0x14c)]){this[_0x1ecf34(0x15c)]=new AbortController(),this[_0x1ecf34(0x14c)]=!0x0;try{for(;this[_0x1ecf34(0x158)][_0x1ecf34(0x159)]&&this[_0x1ecf34(0x14c)];){const _0x618cad=this[_0x1ecf34(0x158)][_0x1ecf34(0x164)]();try{await _0x618cad[_0x1ecf34(0x153)](this[_0x1ecf34(0x15c)][_0x1ecf34(0x15f)]),_0x618cad[_0x1ecf34(0x151)]();}catch(_0xad0b30){_0x618cad[_0x1ecf34(0x154)](_0xad0b30);}}}finally{this[_0x1ecf34(0x14c)]=!0x1,this[_0x1ecf34(0x15c)]=void 0x0;}this[_0x1ecf34(0x152)](_0x1ecf34(0x161));}}[_0x2a117b(0x163)](_0x82a93a){let _0x333ad2,_0x264a80;const _0x1dfb46=new Promise((_0x314baa,_0x9e3431)=>{_0x333ad2=_0x314baa,_0x264a80=_0x9e3431;});return{'callback':_0x82a93a,'resolve':_0x333ad2,'reject':_0x264a80,'completePromise':_0x1dfb46};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x26b0(){var _0x3b836b=['6081240eRxexf','43842bkRmqR','2QbHouq','8484885MioxeX','12162bwbzsX','isOfficialPlugin','3996375auPiop','isPremiumPlugin','pluginName','AIChatHistory','1465866HYfEJj','requires','6083KJZdyo','8aSHcxN','21675450DMqbej'];_0x26b0=function(){return _0x3b836b;};return _0x26b0();}var _0x2c5059=_0x46f6;(function(_0x3686a8,_0x249f43){var _0x2a30f2=_0x46f6,_0xf3466c=_0x3686a8();while(!![]){try{var _0x553f35=-parseInt(_0x2a30f2(0x152))/0x1*(-parseInt(_0x2a30f2(0x14b))/0x2)+-parseInt(_0x2a30f2(0x151))/0x3*(-parseInt(_0x2a30f2(0x14e))/0x4)+-parseInt(_0x2a30f2(0x147))/0x5+parseInt(_0x2a30f2(0x145))/0x6*(-parseInt(_0x2a30f2(0x14d))/0x7)+parseInt(_0x2a30f2(0x150))/0x8+-parseInt(_0x2a30f2(0x153))/0x9+parseInt(_0x2a30f2(0x14f))/0xa;if(_0x553f35===_0x249f43)break;else _0xf3466c['push'](_0xf3466c['shift']());}catch(_0x15c3dd){_0xf3466c['push'](_0xf3466c['shift']());}}}(_0x26b0,0xe06fb));import{ContextPlugin as _0x3f2e69}from'ckeditor5/src/core.js';function _0x46f6(_0x5bf57f,_0x4b68ee){var _0x26b01e=_0x26b0();return _0x46f6=function(_0x46f67a,_0x14574a){_0x46f67a=_0x46f67a-0x145;var _0x34e7a0=_0x26b01e[_0x46f67a];return _0x34e7a0;},_0x46f6(_0x5bf57f,_0x4b68ee);}import{AIChatHistoryController as _0x74f24e}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x188c5f}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3f2e69{static get[_0x2c5059(0x14c)](){return[_0x74f24e,_0x188c5f];}static get[_0x2c5059(0x149)](){var _0x283ad9=_0x2c5059;return _0x283ad9(0x14a);}static get[_0x2c5059(0x146)](){return!0x0;}static get[_0x2c5059(0x148)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3a1c7c=_0x249c;(function(_0x4d4ffb,_0x5972bb){const _0x3dbb0b=_0x249c,_0x579e75=_0x4d4ffb();while(!![]){try{const _0x4a3027=parseInt(_0x3dbb0b(0x1fe))/0x1+parseInt(_0x3dbb0b(0x202))/0x2+-parseInt(_0x3dbb0b(0x1b9))/0x3*(-parseInt(_0x3dbb0b(0x203))/0x4)+-parseInt(_0x3dbb0b(0x1e6))/0x5+-parseInt(_0x3dbb0b(0x1f5))/0x6+-parseInt(_0x3dbb0b(0x1fa))/0x7+parseInt(_0x3dbb0b(0x1cd))/0x8;if(_0x4a3027===_0x5972bb)break;else _0x579e75['push'](_0x579e75['shift']());}catch(_0x3f2c73){_0x579e75['push'](_0x579e75['shift']());}}}(_0x3383,0xdf5e1));import{ContextPlugin as _0x53554f}from'ckeditor5/src/core.js';function _0x249c(_0x23eccd,_0x22ecaf){const _0x33834d=_0x3383();return _0x249c=function(_0x249cfb,_0x47d23a){_0x249cfb=_0x249cfb-0x1a1;let _0x23ac8d=_0x33834d[_0x249cfb];return _0x23ac8d;},_0x249c(_0x23eccd,_0x22ecaf);}function _0x3383(){const _0x3d2708=['setIsMaximized','openChat','pinned','setLoadingSkeleton','removeConversation','activateTab','getItem','_handleEditTitle','remove','_handleTogglePin','handleRemovedConversation','createdAt','get','AI_CHAT_UNTITLED_CONVERSATION','selectConversation','resize','itemsLoaded','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','activateTab:history','21xRquvV','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','items','rename','updateItemPinned','toLocaleDateString','_setItemLoading','removeItem','map','_setIsMaximized','AI_CHAT_HISTORY_PIN_ACTION','listenTo','editConversationTitle','operation','AIChatHistoryController','resizeTabs','_handleSelectConversation','loadConversation','activeConversation','18589048raXdJs','_getCategorizedItems','resizedTabs','_updateHistoryItemsUI','unpin','_aiChatHistoryUi','plugins','getFullYear','updateItemTitle','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','removeHistoryItem','_aiChatController','init','error','_showConversationHistory','getItems','_clearItemLoading','requires','updateItemLoadingState','AI_CHAT_HISTORY_UNPIN_ACTION','change:activeConversation','chat','pluginName','length','itemId','2764595VXaHFt','getDate','context','title','isPremiumPlugin','locale','AI_CHAT_HISTORY_ERROR_GENERIC','setConversationPinned','push','view','isOfficialPlugin','_aiConnector','itemUpdated','_handleHistoryErrorUI','itemRemoved','2186028TxGLwv','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getGroupId','loadItems','updates','12166658sywsUS','history','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_PINNED','220893pebdvQ','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setDate','_handleRemove','1910710vhrQdC','40220ryKKFX','pin','showError','updateItems','_generateErrorMessage','getMonth','AI_CHAT_HISTORY_CATEGORY_TODAY'];_0x3383=function(){return _0x3d2708;};return _0x3383();}import{AIConnector as _0x264cd4}from'../aicore/aiconnector.js';import{AIChatController as _0x22bbb3}from'../aichat/aichatcontroller.js';import{AITabs as _0x3a607b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x37faba}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x496872}from'./model/aichathistoryconversations.js';import{getTranslation as _0x49c349}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x53554f{[_0x3a1c7c(0x1f1)];[_0x3a1c7c(0x1d2)];[_0x3a1c7c(0x1d8)];static get[_0x3a1c7c(0x1de)](){return[_0x264cd4,_0x22bbb3,_0x37faba,_0x3a607b];}static get[_0x3a1c7c(0x1e3)](){const _0x3fecdb=_0x3a1c7c;return _0x3fecdb(0x1c8);}static get[_0x3a1c7c(0x1f0)](){return!0x0;}static get[_0x3a1c7c(0x1ea)](){return!0x0;}[_0x3a1c7c(0x1d9)](){const _0x421c7f=_0x3a1c7c;this[_0x421c7f(0x1f1)]=this[_0x421c7f(0x1e8)][_0x421c7f(0x1d3)][_0x421c7f(0x1b2)](_0x264cd4),this[_0x421c7f(0x1d2)]=this[_0x421c7f(0x1e8)][_0x421c7f(0x1d3)][_0x421c7f(0x1b2)](_0x37faba),this[_0x421c7f(0x1d8)]=this[_0x421c7f(0x1e8)][_0x421c7f(0x1d3)][_0x421c7f(0x1b2)](_0x22bbb3);const _0x86ddfb=this[_0x421c7f(0x1e8)][_0x421c7f(0x1d3)][_0x421c7f(0x1b2)](_0x3a607b);try{const _0x15142b=this[_0x421c7f(0x1d8)][_0x421c7f(0x1f7)]();this[_0x421c7f(0x1fb)]=new _0x496872({'connector':this[_0x421c7f(0x1f1)],'group':_0x15142b}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d2)],_0x421c7f(0x1aa),(_0x2982a5,_0x2d5d02)=>{const _0x2daf7f=_0x421c7f;this[_0x2daf7f(0x1c0)](_0x2d5d02['id'],_0x2daf7f(0x1ae)),this[_0x2daf7f(0x201)](_0x2d5d02['id']);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d2)],_0x421c7f(0x1c6),(_0x1dd745,_0x99499e)=>{const _0x278b33=_0x421c7f;this[_0x278b33(0x1c0)](_0x99499e['id'],_0x278b33(0x1bd)),this[_0x278b33(0x1ad)](_0x99499e['id'],_0x99499e[_0x278b33(0x1e9)]);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1fb)],_0x421c7f(0x1f2),(_0x252402,_0x3b6acc)=>{const _0x59a6f6=_0x421c7f;void 0x0!==_0x3b6acc[_0x59a6f6(0x1f9)][_0x59a6f6(0x1e9)]&&this[_0x59a6f6(0x1d2)][_0x59a6f6(0x1d5)](_0x3b6acc[_0x59a6f6(0x1e5)],_0x3b6acc[_0x59a6f6(0x1f9)][_0x59a6f6(0x1e9)]),void 0x0!==_0x3b6acc[_0x59a6f6(0x1f9)][_0x59a6f6(0x1a8)]&&this[_0x59a6f6(0x1d0)](),this[_0x59a6f6(0x1dd)](_0x3b6acc[_0x59a6f6(0x1e5)]);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1fb)],_0x421c7f(0x1f4),(_0x53d336,_0x2a6013)=>{const _0x274a6a=_0x421c7f;this[_0x274a6a(0x1d8)][_0x274a6a(0x1b0)](_0x2a6013[_0x274a6a(0x1e5)]),this[_0x274a6a(0x1d2)][_0x274a6a(0x1d7)](_0x2a6013[_0x274a6a(0x1e5)]),this[_0x274a6a(0x1dd)](_0x2a6013[_0x274a6a(0x1e5)]);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1fb)],_0x421c7f(0x1b6),()=>{const _0x331961=_0x421c7f;this[_0x331961(0x1d0)]();}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1fb)],_0x421c7f(0x1da),(_0x57d644,_0x4d0ce7)=>{const _0x245835=_0x421c7f;this[_0x245835(0x1f3)](_0x4d0ce7[_0x245835(0x1da)],_0x4d0ce7[_0x245835(0x1c7)],_0x4d0ce7[_0x245835(0x1e5)]);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d2)],_0x421c7f(0x1b4),(_0x4216e2,_0x2870db)=>{const _0x373de5=_0x421c7f;this[_0x373de5(0x1ca)](_0x2870db['id']);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d2)],_0x421c7f(0x1ed),(_0x2be800,_0x8a7f58)=>{const _0x5823e=_0x421c7f,_0x33e56b=_0x8a7f58[_0x5823e(0x1a8)]?_0x5823e(0x204):_0x5823e(0x1d1);this[_0x5823e(0x1c0)](_0x8a7f58['id'],_0x33e56b),this[_0x5823e(0x1af)](_0x8a7f58['id'],_0x8a7f58[_0x5823e(0x1a8)]);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d2)],_0x421c7f(0x1a7),()=>{const _0x3fb40d=_0x421c7f;_0x86ddfb[_0x3fb40d(0x1ef)][_0x3fb40d(0x1ab)](_0x3fb40d(0x1e2));}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d8)],_0x421c7f(0x1e1),()=>{const _0x49c124=_0x421c7f;this[_0x49c124(0x1d0)]();}),_0x86ddfb[_0x421c7f(0x1ef)]['on'](_0x421c7f(0x1b8),()=>{const _0x5e48b8=_0x421c7f;this[_0x5e48b8(0x1db)]();}),this[_0x421c7f(0x1c5)](_0x86ddfb,_0x421c7f(0x1cf),(_0x199178,_0x1ecd89)=>{const _0x8ef400=_0x421c7f;this[_0x8ef400(0x1c3)](_0x1ecd89);}),this[_0x421c7f(0x1c5)](this[_0x421c7f(0x1d2)],_0x421c7f(0x1c9),()=>{const _0x4e6a00=_0x421c7f;_0x86ddfb[_0x4e6a00(0x1b5)]();});}catch(_0x226b01){this[_0x421c7f(0x1f3)](_0x226b01,_0x421c7f(0x1d9));}}async[_0x3a1c7c(0x1ad)](_0x32e5cf,_0x17a2da){const _0x52db12=_0x3a1c7c;await this[_0x52db12(0x1fb)][_0x52db12(0x1d5)](_0x32e5cf,_0x17a2da);}async[_0x3a1c7c(0x1af)](_0x524c90,_0x4bc735){const _0x203c45=_0x3a1c7c;await this[_0x203c45(0x1fb)][_0x203c45(0x1be)](_0x524c90,_0x4bc735);}async[_0x3a1c7c(0x201)](_0x8b0501){const _0x560e95=_0x3a1c7c;await this[_0x560e95(0x1fb)][_0x560e95(0x1c1)](_0x8b0501);}async[_0x3a1c7c(0x1ca)](_0x47314e){const _0xedac83=_0x3a1c7c;await this[_0xedac83(0x1d8)][_0xedac83(0x1cb)](_0x47314e);}async[_0x3a1c7c(0x1db)](){const _0x46b601=_0x3a1c7c;this[_0x46b601(0x1d2)][_0x46b601(0x1a1)](''),this[_0x46b601(0x1d2)][_0x46b601(0x1a9)](!0x0),await this[_0x46b601(0x1fb)][_0x46b601(0x1d9)](),this[_0x46b601(0x1d2)][_0x46b601(0x1a9)](!0x1);}[_0x3a1c7c(0x1d0)](){const _0x502d13=_0x3a1c7c,_0xa102e9=this[_0x502d13(0x1d8)][_0x502d13(0x1cc)]?.['id'],_0xb6c88e=this[_0x502d13(0x1ce)]()[_0x502d13(0x1c2)](_0x28f2e5=>({'title':_0x28f2e5[_0x502d13(0x1e9)],'items':_0x28f2e5[_0x502d13(0x1bc)][_0x502d13(0x1c2)](_0x21122c=>({'id':_0x21122c['id'],'title':_0x21122c[_0x502d13(0x1e9)]||_0x49c349(this[_0x502d13(0x1e8)][_0x502d13(0x1eb)],_0x502d13(0x1b3)),'createdAt':new Date(_0x21122c[_0x502d13(0x1b1)])[_0x502d13(0x1bf)](),'active':_0x21122c['id']===_0xa102e9,'pinned':_0x21122c[_0x502d13(0x1a8)]}))}));this[_0x502d13(0x1d2)][_0x502d13(0x1a2)](_0xb6c88e);}[_0x3a1c7c(0x1c0)](_0x382f43,_0x10c96d){const _0x9fa6c4=_0x3a1c7c;this[_0x9fa6c4(0x1d2)][_0x9fa6c4(0x1df)](_0x382f43,_0x10c96d,!0x0);}[_0x3a1c7c(0x1dd)](_0x1814f2){const _0xc586d3=_0x3a1c7c;this[_0xc586d3(0x1d2)][_0xc586d3(0x1df)](_0x1814f2,null,!0x1);}[_0x3a1c7c(0x1f3)](_0x169b5f,_0xa92181,_0x2f0f48){const _0xb0aa42=_0x3a1c7c,_0x40decf=this[_0xb0aa42(0x1a3)](_0xa92181,_0x2f0f48);this[_0xb0aa42(0x1d2)][_0xb0aa42(0x1a1)](_0x40decf),_0x2f0f48&&this[_0xb0aa42(0x1dd)](_0x2f0f48),this[_0xb0aa42(0x1d2)][_0xb0aa42(0x1a9)](!0x1);}[_0x3a1c7c(0x1a3)](_0x4d15ba,_0x233457){const _0x446c02=_0x3a1c7c,_0x4fd329=_0x233457?this[_0x446c02(0x1fb)][_0x446c02(0x1ac)](_0x233457):null,_0x1d5360=_0x4fd329?.[_0x446c02(0x1e9)]||_0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x446c02(0x1b3));switch(_0x4d15ba){case _0x446c02(0x1d5):return _0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x446c02(0x1d6),_0x1d5360);case _0x446c02(0x1be):{const _0x208a9f=_0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x4fd329?.[_0x446c02(0x1a8)]?_0x446c02(0x1e0):_0x446c02(0x1c4));return _0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x446c02(0x1fc),[_0x208a9f,_0x1d5360]);}case _0x446c02(0x1c1):return _0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x446c02(0x1f6),_0x1d5360);case _0x446c02(0x1d9):case _0x446c02(0x1f8):return _0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x446c02(0x1ff));default:return _0x49c349(this[_0x446c02(0x1e8)][_0x446c02(0x1eb)],_0x446c02(0x1ec));}}[_0x3a1c7c(0x1ce)](){const _0x4a2f7c=_0x3a1c7c,_0x37b262=new Date(),_0x1814d6=new Date(_0x37b262[_0x4a2f7c(0x1d4)](),_0x37b262[_0x4a2f7c(0x1a4)](),_0x37b262[_0x4a2f7c(0x1e7)]()),_0x36efaf=new Date(_0x1814d6);_0x36efaf[_0x4a2f7c(0x200)](_0x36efaf[_0x4a2f7c(0x1e7)]()-0x1);const _0x308988=new Date(_0x1814d6);_0x308988[_0x4a2f7c(0x200)](_0x308988[_0x4a2f7c(0x1e7)]()-0xe);const _0x53d0c7=this[_0x4a2f7c(0x1fb)][_0x4a2f7c(0x1dc)]({'pinned':!0x0}),_0x38c99e=this[_0x4a2f7c(0x1fb)][_0x4a2f7c(0x1dc)]({'from':_0x1814d6,'to':_0x1814d6}),_0x264f97=this[_0x4a2f7c(0x1fb)][_0x4a2f7c(0x1dc)]({'from':_0x36efaf,'to':_0x36efaf}),_0x84fa0b=this[_0x4a2f7c(0x1fb)][_0x4a2f7c(0x1dc)]({'from':_0x308988,'to':_0x36efaf}),_0x4b09f1=this[_0x4a2f7c(0x1fb)][_0x4a2f7c(0x1dc)]({'to':_0x308988}),_0x5c0b8c=[];return _0x53d0c7[_0x4a2f7c(0x1e4)]>0x0&&_0x5c0b8c[_0x4a2f7c(0x1ee)]({'title':_0x49c349(this[_0x4a2f7c(0x1e8)][_0x4a2f7c(0x1eb)],_0x4a2f7c(0x1fd)),'items':_0x53d0c7}),_0x38c99e[_0x4a2f7c(0x1e4)]>0x0&&_0x5c0b8c[_0x4a2f7c(0x1ee)]({'title':_0x49c349(this[_0x4a2f7c(0x1e8)][_0x4a2f7c(0x1eb)],_0x4a2f7c(0x1a5)),'items':_0x38c99e}),_0x264f97[_0x4a2f7c(0x1e4)]>0x0&&_0x5c0b8c[_0x4a2f7c(0x1ee)]({'title':_0x49c349(this[_0x4a2f7c(0x1e8)][_0x4a2f7c(0x1eb)],_0x4a2f7c(0x1bb)),'items':_0x264f97}),_0x84fa0b[_0x4a2f7c(0x1e4)]>0x0&&_0x5c0b8c[_0x4a2f7c(0x1ee)]({'title':_0x49c349(this[_0x4a2f7c(0x1e8)][_0x4a2f7c(0x1eb)],_0x4a2f7c(0x1b7)),'items':_0x84fa0b}),_0x4b09f1[_0x4a2f7c(0x1e4)]>0x0&&_0x5c0b8c[_0x4a2f7c(0x1ee)]({'title':_0x49c349(this[_0x4a2f7c(0x1e8)][_0x4a2f7c(0x1eb)],_0x4a2f7c(0x1ba)),'items':_0x4b09f1}),_0x5c0b8c;}[_0x3a1c7c(0x1c3)](_0x27de88){const _0x1c05d0=_0x3a1c7c;this[_0x1c05d0(0x1d2)][_0x1c05d0(0x1a6)](_0x27de88);}}
|
|
23
|
+
function _0x54b6(){const _0x47c897=['AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_showConversationHistory','487803DtATtw','selectConversation','_handleEditTitle','itemRemoved','push','_aiChatController','activateTab','346429BHFscI','toLocaleDateString','updateItemTitle','change:activeConversation','_handleSelectConversation','resizedTabs','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','length','loadItems','setLoadingSkeleton','25615953IwhLvW','isPremiumPlugin','activateTab:history','requires','itemUpdated','resizeTabs','locale','removeConversation','editConversationTitle','init','_aiConnector','AI_CHAT_UNTITLED_CONVERSATION','operation','_generateErrorMessage','setDate','isOfficialPlugin','3569600gxbKvd','getItems','view','_handleTogglePin','unpin','itemId','getMonth','getDate','title','itemsLoaded','pin','updateItemPinned','_setIsMaximized','getItem','_handleHistoryErrorUI','updateItems','updates','318815QkeEav','_handleRemove','removeItem','plugins','removeHistoryItem','AIChatHistoryController','chat','getGroupId','resize','12agNMbn','map','_clearItemLoading','loadConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','listenTo','pluginName','pinned','_updateHistoryItemsUI','activeConversation','context','AI_CHAT_HISTORY_CATEGORY_TODAY','history','items','_getCategorizedItems','_setItemLoading','openChat','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','remove','AI_CHAT_HISTORY_CATEGORY_LATER','rename','_aiChatHistoryUi','165secLmT','124722oaqVhm','updateItemLoadingState','error','AI_CHAT_HISTORY_ERROR_GENERIC','setIsMaximized','showError','AI_CHAT_HISTORY_PIN_ACTION','get','createdAt','2281968OKzSAm','getFullYear','AI_CHAT_HISTORY_UNPIN_ACTION'];_0x54b6=function(){return _0x47c897;};return _0x54b6();}const _0x5c8cce=_0x570c;(function(_0x1fd58f,_0x2ee56f){const _0x341264=_0x570c,_0x8d4c1d=_0x1fd58f();while(!![]){try{const _0x328d89=-parseInt(_0x341264(0xe2))/0x1+parseInt(_0x341264(0xb2))/0x2*(-parseInt(_0x341264(0xdb))/0x3)+-parseInt(_0x341264(0xd5))/0x4+-parseInt(_0x341264(0xcb))/0x5*(parseInt(_0x341264(0xcc))/0x6)+parseInt(_0x341264(0xa9))/0x7+parseInt(_0x341264(0x98))/0x8+parseInt(_0x341264(0x88))/0x9;if(_0x328d89===_0x2ee56f)break;else _0x8d4c1d['push'](_0x8d4c1d['shift']());}catch(_0xb8acd4){_0x8d4c1d['push'](_0x8d4c1d['shift']());}}}(_0x54b6,0xb96a8));function _0x570c(_0x15d9d4,_0x34fb60){const _0x54b687=_0x54b6();return _0x570c=function(_0x570cf9,_0x529d38){_0x570cf9=_0x570cf9-0x86;let _0x34af27=_0x54b687[_0x570cf9];return _0x34af27;},_0x570c(_0x15d9d4,_0x34fb60);}import{ContextPlugin as _0x2833b0}from'ckeditor5/src/core.js';import{AIConnector as _0x4c52bb}from'../aicore/aiconnector.js';import{AIChatController as _0x58b1ce}from'../aichat/aichatcontroller.js';import{AITabs as _0x680bb2}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x239643}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x528506}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1793da}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2833b0{[_0x5c8cce(0x92)];[_0x5c8cce(0xca)];[_0x5c8cce(0xe0)];static get[_0x5c8cce(0x8b)](){return[_0x4c52bb,_0x58b1ce,_0x239643,_0x680bb2];}static get[_0x5c8cce(0xb8)](){const _0x3f72b0=_0x5c8cce;return _0x3f72b0(0xae);}static get[_0x5c8cce(0x97)](){return!0x0;}static get[_0x5c8cce(0x89)](){return!0x0;}[_0x5c8cce(0x91)](){const _0x58d977=_0x5c8cce;this[_0x58d977(0x92)]=this[_0x58d977(0xbc)][_0x58d977(0xac)][_0x58d977(0xd3)](_0x4c52bb),this[_0x58d977(0xca)]=this[_0x58d977(0xbc)][_0x58d977(0xac)][_0x58d977(0xd3)](_0x239643),this[_0x58d977(0xe0)]=this[_0x58d977(0xbc)][_0x58d977(0xac)][_0x58d977(0xd3)](_0x58b1ce);const _0x19fe1d=this[_0x58d977(0xbc)][_0x58d977(0xac)][_0x58d977(0xd3)](_0x680bb2);try{const _0x2136fa=this[_0x58d977(0xe0)][_0x58d977(0xb0)]();this[_0x58d977(0xbe)]=new _0x528506({'connector':this[_0x58d977(0x92)],'group':_0x2136fa}),this[_0x58d977(0xb7)](this[_0x58d977(0xca)],_0x58d977(0x8f),(_0x44cc96,_0x52c515)=>{const _0x38ca9e=_0x58d977;this[_0x38ca9e(0xc1)](_0x52c515['id'],_0x38ca9e(0xc7)),this[_0x38ca9e(0xaa)](_0x52c515['id']);}),this[_0x58d977(0xb7)](this[_0x58d977(0xca)],_0x58d977(0x90),(_0x513e71,_0xeda46)=>{const _0x498ed6=_0x58d977;this[_0x498ed6(0xc1)](_0xeda46['id'],_0x498ed6(0xc9)),this[_0x498ed6(0xdd)](_0xeda46['id'],_0xeda46[_0x498ed6(0xa0)]);}),this[_0x58d977(0xb7)](this[_0x58d977(0xbe)],_0x58d977(0x8c),(_0x2e370d,_0x18826e)=>{const _0x1fd8ab=_0x58d977;void 0x0!==_0x18826e[_0x1fd8ab(0xa8)][_0x1fd8ab(0xa0)]&&this[_0x1fd8ab(0xca)][_0x1fd8ab(0xe4)](_0x18826e[_0x1fd8ab(0x9d)],_0x18826e[_0x1fd8ab(0xa8)][_0x1fd8ab(0xa0)]),void 0x0!==_0x18826e[_0x1fd8ab(0xa8)][_0x1fd8ab(0xb9)]&&this[_0x1fd8ab(0xba)](),this[_0x1fd8ab(0xb4)](_0x18826e[_0x1fd8ab(0x9d)]);}),this[_0x58d977(0xb7)](this[_0x58d977(0xbe)],_0x58d977(0xde),(_0x4cbfed,_0x158701)=>{const _0x4dd776=_0x58d977;this[_0x4dd776(0xe0)][_0x4dd776(0xc5)](_0x158701[_0x4dd776(0x9d)]),this[_0x4dd776(0xca)][_0x4dd776(0xad)](_0x158701[_0x4dd776(0x9d)]),this[_0x4dd776(0xb4)](_0x158701[_0x4dd776(0x9d)]);}),this[_0x58d977(0xb7)](this[_0x58d977(0xbe)],_0x58d977(0xa1),()=>{const _0x3538ef=_0x58d977;this[_0x3538ef(0xba)]();}),this[_0x58d977(0xb7)](this[_0x58d977(0xbe)],_0x58d977(0xce),(_0x2afe9a,_0x2bb32f)=>{const _0x3ba6b8=_0x58d977;this[_0x3ba6b8(0xa6)](_0x2bb32f[_0x3ba6b8(0xce)],_0x2bb32f[_0x3ba6b8(0x94)],_0x2bb32f[_0x3ba6b8(0x9d)]);}),this[_0x58d977(0xb7)](this[_0x58d977(0xca)],_0x58d977(0xdc),(_0xe3f20a,_0x1bf20e)=>{const _0x136d22=_0x58d977;this[_0x136d22(0xe6)](_0x1bf20e['id']);}),this[_0x58d977(0xb7)](this[_0x58d977(0xca)],_0x58d977(0xc3),(_0x5991f3,_0xae961d)=>{const _0xf3e60a=_0x58d977,_0x1f77e=_0xae961d[_0xf3e60a(0xb9)]?_0xf3e60a(0xa2):_0xf3e60a(0x9c);this[_0xf3e60a(0xc1)](_0xae961d['id'],_0x1f77e),this[_0xf3e60a(0x9b)](_0xae961d['id'],_0xae961d[_0xf3e60a(0xb9)]);}),this[_0x58d977(0xb7)](this[_0x58d977(0xca)],_0x58d977(0xc2),()=>{const _0x1da721=_0x58d977;_0x19fe1d[_0x1da721(0x9a)][_0x1da721(0xe1)](_0x1da721(0xaf));}),this[_0x58d977(0xb7)](this[_0x58d977(0xe0)],_0x58d977(0xe5),()=>{const _0x8bae31=_0x58d977;this[_0x8bae31(0xba)]();}),_0x19fe1d[_0x58d977(0x9a)]['on'](_0x58d977(0x8a),()=>{const _0x58dc97=_0x58d977;this[_0x58dc97(0xda)]();}),this[_0x58d977(0xb7)](_0x19fe1d,_0x58d977(0xe7),(_0x76a778,_0x4271ba)=>{const _0x137071=_0x58d977;this[_0x137071(0xa4)](_0x4271ba);}),this[_0x58d977(0xb7)](this[_0x58d977(0xca)],_0x58d977(0x8d),()=>{const _0x3087c5=_0x58d977;_0x19fe1d[_0x3087c5(0xb1)]();});}catch(_0x4a2ba0){this[_0x58d977(0xa6)](_0x4a2ba0,_0x58d977(0x91));}}async[_0x5c8cce(0xdd)](_0x279d13,_0x4631ea){const _0x38f381=_0x5c8cce;await this[_0x38f381(0xbe)][_0x38f381(0xe4)](_0x279d13,_0x4631ea);}async[_0x5c8cce(0x9b)](_0xb904fe,_0x245e41){const _0x131071=_0x5c8cce;await this[_0x131071(0xbe)][_0x131071(0xa3)](_0xb904fe,_0x245e41);}async[_0x5c8cce(0xaa)](_0x3fe654){const _0x215562=_0x5c8cce;await this[_0x215562(0xbe)][_0x215562(0xab)](_0x3fe654);}async[_0x5c8cce(0xe6)](_0x3ebb93){const _0x36dfda=_0x5c8cce;await this[_0x36dfda(0xe0)][_0x36dfda(0xb5)](_0x3ebb93);}async[_0x5c8cce(0xda)](){const _0x655a7f=_0x5c8cce;this[_0x655a7f(0xca)][_0x655a7f(0xd1)](''),this[_0x655a7f(0xca)][_0x655a7f(0x87)](!0x0),await this[_0x655a7f(0xbe)][_0x655a7f(0x91)](),this[_0x655a7f(0xca)][_0x655a7f(0x87)](!0x1);}[_0x5c8cce(0xba)](){const _0x197071=_0x5c8cce,_0x1a9748=this[_0x197071(0xe0)][_0x197071(0xbb)]?.['id'],_0x40fec1=this[_0x197071(0xc0)]()[_0x197071(0xb3)](_0x27c5f4=>({'title':_0x27c5f4[_0x197071(0xa0)],'items':_0x27c5f4[_0x197071(0xbf)][_0x197071(0xb3)](_0x3bbc27=>({'id':_0x3bbc27['id'],'title':_0x3bbc27[_0x197071(0xa0)]||_0x1793da(this[_0x197071(0xbc)][_0x197071(0x8e)],_0x197071(0x93)),'createdAt':new Date(_0x3bbc27[_0x197071(0xd4)])[_0x197071(0xe3)](),'active':_0x3bbc27['id']===_0x1a9748,'pinned':_0x3bbc27[_0x197071(0xb9)]}))}));this[_0x197071(0xca)][_0x197071(0xa7)](_0x40fec1);}[_0x5c8cce(0xc1)](_0x5033a8,_0x5afa57){const _0x7e1b2e=_0x5c8cce;this[_0x7e1b2e(0xca)][_0x7e1b2e(0xcd)](_0x5033a8,_0x5afa57,!0x0);}[_0x5c8cce(0xb4)](_0x2b497e){const _0x529e5e=_0x5c8cce;this[_0x529e5e(0xca)][_0x529e5e(0xcd)](_0x2b497e,null,!0x1);}[_0x5c8cce(0xa6)](_0x20286d,_0x1bc1e8,_0x2e3d4f){const _0x481a6e=_0x5c8cce,_0x19f714=this[_0x481a6e(0x95)](_0x1bc1e8,_0x2e3d4f);this[_0x481a6e(0xca)][_0x481a6e(0xd1)](_0x19f714),_0x2e3d4f&&this[_0x481a6e(0xb4)](_0x2e3d4f),this[_0x481a6e(0xca)][_0x481a6e(0x87)](!0x1);}[_0x5c8cce(0x95)](_0x3ad1db,_0x48ce22){const _0x45d1ec=_0x5c8cce,_0x611b64=_0x48ce22?this[_0x45d1ec(0xbe)][_0x45d1ec(0xa5)](_0x48ce22):null,_0x14e84e=_0x611b64?.[_0x45d1ec(0xa0)]||_0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x45d1ec(0x93));switch(_0x3ad1db){case _0x45d1ec(0xe4):return _0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x45d1ec(0xe9),_0x14e84e);case _0x45d1ec(0xa3):{const _0x4450d3=_0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x611b64?.[_0x45d1ec(0xb9)]?_0x45d1ec(0xd7):_0x45d1ec(0xd2));return _0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x45d1ec(0xc6),[_0x4450d3,_0x14e84e]);}case _0x45d1ec(0xab):return _0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x45d1ec(0xd8),_0x14e84e);case _0x45d1ec(0x91):case _0x45d1ec(0x86):return _0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x45d1ec(0xd9));default:return _0x1793da(this[_0x45d1ec(0xbc)][_0x45d1ec(0x8e)],_0x45d1ec(0xcf));}}[_0x5c8cce(0xc0)](){const _0x477845=_0x5c8cce,_0x583844=new Date(),_0xd64f2f=new Date(_0x583844[_0x477845(0xd6)](),_0x583844[_0x477845(0x9e)](),_0x583844[_0x477845(0x9f)]()),_0x21382f=new Date(_0xd64f2f);_0x21382f[_0x477845(0x96)](_0x21382f[_0x477845(0x9f)]()-0x1);const _0x3694a9=new Date(_0xd64f2f);_0x3694a9[_0x477845(0x96)](_0x3694a9[_0x477845(0x9f)]()-0xe);const _0x4d685b=this[_0x477845(0xbe)][_0x477845(0x99)]({'pinned':!0x0}),_0x561bd6=this[_0x477845(0xbe)][_0x477845(0x99)]({'from':_0xd64f2f,'to':_0xd64f2f}),_0x3939c7=this[_0x477845(0xbe)][_0x477845(0x99)]({'from':_0x21382f,'to':_0x21382f}),_0x20f835=this[_0x477845(0xbe)][_0x477845(0x99)]({'from':_0x3694a9,'to':_0x21382f}),_0x13c76d=this[_0x477845(0xbe)][_0x477845(0x99)]({'to':_0x3694a9}),_0x45a620=[];return _0x4d685b[_0x477845(0xea)]>0x0&&_0x45a620[_0x477845(0xdf)]({'title':_0x1793da(this[_0x477845(0xbc)][_0x477845(0x8e)],_0x477845(0xb6)),'items':_0x4d685b}),_0x561bd6[_0x477845(0xea)]>0x0&&_0x45a620[_0x477845(0xdf)]({'title':_0x1793da(this[_0x477845(0xbc)][_0x477845(0x8e)],_0x477845(0xbd)),'items':_0x561bd6}),_0x3939c7[_0x477845(0xea)]>0x0&&_0x45a620[_0x477845(0xdf)]({'title':_0x1793da(this[_0x477845(0xbc)][_0x477845(0x8e)],_0x477845(0xc4)),'items':_0x3939c7}),_0x20f835[_0x477845(0xea)]>0x0&&_0x45a620[_0x477845(0xdf)]({'title':_0x1793da(this[_0x477845(0xbc)][_0x477845(0x8e)],_0x477845(0xe8)),'items':_0x20f835}),_0x13c76d[_0x477845(0xea)]>0x0&&_0x45a620[_0x477845(0xdf)]({'title':_0x1793da(this[_0x477845(0xbc)][_0x477845(0x8e)],_0x477845(0xc8)),'items':_0x13c76d}),_0x45a620;}[_0x5c8cce(0xa4)](_0x465de0){const _0x1acbf6=_0x5c8cce;this[_0x1acbf6(0xca)][_0x1acbf6(0xd0)](_0x465de0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3964ce=_0x1e3d;(function(_0x5dbced,_0x47ed41){const _0x19053c=_0x1e3d,_0x5054da=_0x5dbced();while(!![]){try{const _0x287574=parseInt(_0x19053c(0x16a))/0x1+-parseInt(_0x19053c(0x16d))/0x2*(parseInt(_0x19053c(0x166))/0x3)+-parseInt(_0x19053c(0x14d))/0x4+-parseInt(_0x19053c(0x165))/0x5+-parseInt(_0x19053c(0x16b))/0x6+-parseInt(_0x19053c(0x15c))/0x7*(-parseInt(_0x19053c(0x169))/0x8)+parseInt(_0x19053c(0x15d))/0x9;if(_0x287574===_0x47ed41)break;else _0x5054da['push'](_0x5054da['shift']());}catch(_0x404b6c){_0x5054da['push'](_0x5054da['shift']());}}}(_0xb83f,0x9ca09));import{ContextPlugin as _0x27b100}from'ckeditor5/src/core.js';function _0xb83f(){const _0x49b8ad=['updateItemLoadingState','removeHistoryItem','isLoading','showError','addTab','selectConversation','removeConversation','setIsMaximized','275524CfCHcJ','isOfficialPlugin','resizeTabs','setConversationPinned','AITabs','_historyView','AI_CHAT_HISTORY_HEADING','hideError','delegate','editConversationTitle','AIChatHistoryUI','updateItems','isPremiumPlugin','view','updateItemTitle','1348046hJmAJP','10179972haIdIN','isMaximized','get','setLoadingSkeleton','context','requires','showConversationHistory','showResizeButton','4649780HJvCbM','3fOpJWm','locale','updateHistoryItemsWithCategories','32uEtqgn','332475KKpAEQ','1485864nfabzQ','pluginName','691738ZFZFbh','openChat','errorMessage','plugins','history'];_0xb83f=function(){return _0x49b8ad;};return _0xb83f();}import{AITabs as _0x1a6376}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3464fb}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3ea308}from'./ui/aichathistoryview.js';import{getTranslation as _0x5bc8cb}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3964ce(0x163),_0x3964ce(0x14b),_0x3964ce(0x156),_0x3964ce(0x150),_0x3964ce(0x14a),_0x3964ce(0x141),_0x3964ce(0x14f)];function _0x1e3d(_0x2d2207,_0x415913){const _0xb83ffd=_0xb83f();return _0x1e3d=function(_0x1e3d23,_0x3a4b7d){_0x1e3d23=_0x1e3d23-0x141;let _0x180a08=_0xb83ffd[_0x1e3d23];return _0x180a08;},_0x1e3d(_0x2d2207,_0x415913);}export class AIChatHistoryUI extends _0x27b100{static get[_0x3964ce(0x162)](){return[_0x1a6376];}[_0x3964ce(0x152)];static get[_0x3964ce(0x16c)](){const _0x1af69d=_0x3964ce;return _0x1af69d(0x157);}static get[_0x3964ce(0x14e)](){return!0x0;}static get[_0x3964ce(0x159)](){return!0x0;}constructor(_0x5dce4e){const _0x2e42dc=_0x3964ce;super(_0x5dce4e);const _0x3294c4=this[_0x2e42dc(0x161)][_0x2e42dc(0x143)][_0x2e42dc(0x15f)](_0x2e42dc(0x151));this[_0x2e42dc(0x152)]=new _0x3ea308(this[_0x2e42dc(0x161)][_0x2e42dc(0x167)],_0x3294c4[_0x2e42dc(0x164)]),this[_0x2e42dc(0x152)][_0x2e42dc(0x155)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3294c4[_0x2e42dc(0x15a)][_0x2e42dc(0x149)]({'id':_0x2e42dc(0x144),'buttonLabel':_0x5bc8cb(this[_0x2e42dc(0x161)][_0x2e42dc(0x167)],_0x2e42dc(0x153)),'buttonIcon':_0x3464fb,'order':0x0,'content':this[_0x2e42dc(0x152)]});}[_0x3964ce(0x146)](_0x168af9){const _0x216685=_0x3964ce;this[_0x216685(0x152)][_0x216685(0x146)](_0x168af9);}[_0x3964ce(0x158)](_0x35c8f7){const _0x5a5940=_0x3964ce;this[_0x5a5940(0x152)][_0x5a5940(0x168)](_0x35c8f7);}[_0x3964ce(0x15b)](_0x42bda8,_0x38fa1c){const _0x3cf389=_0x3964ce;this[_0x3cf389(0x152)][_0x3cf389(0x15b)](_0x42bda8,_0x38fa1c);}[_0x3964ce(0x145)](_0x191934,_0x1f2170,_0x21aa26){const _0x16ecd8=_0x3964ce;this[_0x16ecd8(0x152)][_0x16ecd8(0x145)](_0x191934,_0x1f2170,_0x21aa26);}[_0x3964ce(0x160)](_0xae213b){const _0x70619a=_0x3964ce;this[_0x70619a(0x152)][_0x70619a(0x147)]=_0xae213b;}[_0x3964ce(0x148)](_0x5d01c8){const _0x306c0e=_0x3964ce;this[_0x306c0e(0x152)][_0x306c0e(0x142)]=_0x5d01c8;}[_0x3964ce(0x154)](){const _0x331041=_0x3964ce;this[_0x331041(0x152)][_0x331041(0x142)]='';}[_0x3964ce(0x14c)](_0x3917f1){const _0x16d8f8=_0x3964ce;this[_0x16d8f8(0x152)][_0x16d8f8(0x15e)]=_0x3917f1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c9992=_0xc145;(function(_0x175789,_0x40cc33){const _0x56b0e6=_0xc145,_0x3c2786=_0x175789();while(!![]){try{const _0x2bff37=parseInt(_0x56b0e6(0x159))/0x1*(parseInt(_0x56b0e6(0x13a))/0x2)+-parseInt(_0x56b0e6(0x134))/0x3*(parseInt(_0x56b0e6(0x14b))/0x4)+parseInt(_0x56b0e6(0x15d))/0x5+parseInt(_0x56b0e6(0x13b))/0x6*(parseInt(_0x56b0e6(0x157))/0x7)+-parseInt(_0x56b0e6(0x13e))/0x8+-parseInt(_0x56b0e6(0x138))/0x9+parseInt(_0x56b0e6(0x15e))/0xa*(-parseInt(_0x56b0e6(0x156))/0xb);if(_0x2bff37===_0x40cc33)break;else _0x3c2786['push'](_0x3c2786['shift']());}catch(_0x19d8d6){_0x3c2786['push'](_0x3c2786['shift']());}}}(_0x53f3,0x28357));function _0x53f3(){const _0x197df2=['6aHhoDY','createdAt','deleteConversation','516568KuQJWC','pinned','getDate','from','updateConversation','error','connector','getMonth','getConversations','findIndex','getFullYear','itemsLoaded','getItem','400gzGOyS','updatePinned','addItem','filter','fetchConversations','execute','itemRemoved','splice','items','getResult','init','74855RbJthn','1683311TUqheh','fire','9cMjDqs','getItems','find','updateTitle','1445425kbUNEr','230wjbIbY','updateItemTitle','removeItem','map','updateItemPinned','itemUpdated','8688SimVPP','getTime','push','loadItems','1007514NStGiI','group','57282hkPCwG'];_0x53f3=function(){return _0x197df2;};return _0x53f3();}function _0xc145(_0x9fb828,_0x4e93ea){const _0x53f3c7=_0x53f3();return _0xc145=function(_0xc145f8,_0x41c0c2){_0xc145f8=_0xc145f8-0x12f;let _0xa73ce2=_0x53f3c7[_0xc145f8];return _0xa73ce2;},_0xc145(_0x9fb828,_0x4e93ea);}import{EmitterMixin as _0x3b4317}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x146064}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3b4317(){[_0x3c9992(0x153)]=[];[_0x3c9992(0x144)];[_0x3c9992(0x139)];constructor({connector:_0x5461bc,group:_0x1b1a87}){const _0xae4a85=_0x3c9992;super(),this[_0xae4a85(0x144)]=_0x5461bc,this[_0xae4a85(0x139)]=_0x1b1a87;}async[_0x3c9992(0x155)](){const _0x13fd2d=_0x3c9992;try{const _0x4de4ca=this[_0x13fd2d(0x144)][_0x13fd2d(0x14f)](this[_0x13fd2d(0x139)]),_0x282d89=await _0x4de4ca[_0x13fd2d(0x146)]();this[_0x13fd2d(0x137)](_0x282d89);}catch(_0x4f2106){this[_0x13fd2d(0x158)](_0x13fd2d(0x143),{'error':_0x4f2106,'operation':_0x13fd2d(0x155)});}}[_0x3c9992(0x14d)](_0x270725){const _0x5d60fa=_0x3c9992;this[_0x5d60fa(0x153)][_0x5d60fa(0x136)](_0x270725);}async[_0x3c9992(0x130)](_0x53448d){const _0x3c96d7=_0x3c9992,_0x38c9ae=this[_0x3c96d7(0x153)][_0x3c96d7(0x147)](_0x5259db=>_0x5259db['id']===_0x53448d);if(-0x1===_0x38c9ae)return!0x1;try{return await this[_0x3c96d7(0x144)][_0x3c96d7(0x13d)](_0x53448d)[_0x3c96d7(0x150)](),this[_0x3c96d7(0x153)][_0x3c96d7(0x152)](_0x38c9ae,0x1),this[_0x3c96d7(0x158)](_0x3c96d7(0x151),{'itemId':_0x53448d}),!0x0;}catch(_0x3a7583){return this[_0x3c96d7(0x158)](_0x3c96d7(0x143),{'error':_0x3a7583,'operation':_0x3c96d7(0x130),'itemId':_0x53448d}),!0x1;}}[_0x3c9992(0x14a)](_0x4fc4ac){const _0x326601=_0x3c9992;return this[_0x326601(0x153)][_0x326601(0x15b)](_0x4c79f7=>_0x4c79f7['id']===_0x4fc4ac);}async[_0x3c9992(0x12f)](_0x54487b,_0x591c00){const _0xa81e7f=_0x3c9992,_0x1dded1=this[_0xa81e7f(0x14a)](_0x54487b);if(!_0x1dded1)return!0x1;try{return await this[_0xa81e7f(0x144)][_0xa81e7f(0x142)](_0x54487b,{'title':_0x591c00})[_0xa81e7f(0x154)](),_0x1dded1[_0xa81e7f(0x15c)](_0x591c00),this[_0xa81e7f(0x158)](_0xa81e7f(0x133),{'itemId':_0x54487b,'updates':{'title':_0x591c00}}),!0x0;}catch(_0x3db62e){return this[_0xa81e7f(0x158)](_0xa81e7f(0x143),{'error':_0x3db62e,'operation':_0xa81e7f(0x12f),'itemId':_0x54487b}),!0x1;}}async[_0x3c9992(0x132)](_0x3e6dbb,_0xc27c9f){const _0x2c3327=_0x3c9992,_0x16c1bd=this[_0x2c3327(0x14a)](_0x3e6dbb);if(!_0x16c1bd)return!0x1;try{return await this[_0x2c3327(0x144)][_0x2c3327(0x142)](_0x3e6dbb,{'pinned':_0xc27c9f})[_0x2c3327(0x154)](),_0x16c1bd[_0x2c3327(0x14c)](_0xc27c9f),this[_0x2c3327(0x158)](_0x2c3327(0x133),{'itemId':_0x3e6dbb,'updates':{'pinned':_0xc27c9f}}),!0x0;}catch(_0x3c5e8f){return this[_0x2c3327(0x158)](_0x2c3327(0x143),{'error':_0x3c5e8f,'operation':_0x2c3327(0x132),'itemId':_0x3e6dbb}),!0x1;}}[_0x3c9992(0x137)](_0x23fc21){const _0xffaf12=_0x3c9992;try{this[_0xffaf12(0x153)]=[],_0x23fc21[_0xffaf12(0x131)](_0x7648ea=>{const _0x3d0587=_0xffaf12;this[_0x3d0587(0x14d)](new _0x146064(_0x7648ea));}),this[_0xffaf12(0x158)](_0xffaf12(0x149),{'items':[...this[_0xffaf12(0x153)]]});}catch(_0x134476){this[_0xffaf12(0x158)](_0xffaf12(0x143),{'error':_0x134476,'operation':_0xffaf12(0x137)});}}[_0x3c9992(0x15a)](_0x15ce87={}){const _0x1f246e=_0x3c9992,_0x2cf5ee=void 0x0!==_0x15ce87[_0x1f246e(0x13f)]&&_0x15ce87[_0x1f246e(0x13f)],_0x35b658=_0x15ce87[_0x1f246e(0x141)]?new Date(_0x15ce87[_0x1f246e(0x141)][_0x1f246e(0x148)](),_0x15ce87[_0x1f246e(0x141)][_0x1f246e(0x145)](),_0x15ce87[_0x1f246e(0x141)][_0x1f246e(0x140)]()):null,_0x37b33e=_0x15ce87['to']?new Date(_0x15ce87['to'][_0x1f246e(0x148)](),_0x15ce87['to'][_0x1f246e(0x145)](),_0x15ce87['to'][_0x1f246e(0x140)]()):null;return this[_0x1f246e(0x153)][_0x1f246e(0x14e)](_0x216938=>{const _0x19f07d=_0x1f246e;if(_0x216938[_0x19f07d(0x13f)]!==_0x2cf5ee)return!0x1;if(_0x37b33e){const _0x5e05ee=new Date(_0x216938[_0x19f07d(0x13c)][_0x19f07d(0x148)](),_0x216938[_0x19f07d(0x13c)][_0x19f07d(0x145)](),_0x216938[_0x19f07d(0x13c)][_0x19f07d(0x140)]());return _0x35b658?_0x35b658[_0x19f07d(0x135)]()===_0x37b33e[_0x19f07d(0x135)]()?_0x5e05ee[_0x19f07d(0x135)]()===_0x35b658[_0x19f07d(0x135)]():_0x5e05ee<_0x37b33e&&_0x5e05ee>=_0x35b658:_0x5e05ee<_0x37b33e;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x2d4772=_0x3732;(function(_0x406dcf,_0x2e8081){var _0x3ed419=_0x3732,_0x47c6da=_0x406dcf();while(!![]){try{var _0x5842bd=parseInt(_0x3ed419(0xca))/0x1+-parseInt(_0x3ed419(0xc7))/0x2*(-parseInt(_0x3ed419(0xcb))/0x3)+parseInt(_0x3ed419(0xd5))/0x4+parseInt(_0x3ed419(0xc6))/0x5*(-parseInt(_0x3ed419(0xd0))/0x6)+parseInt(_0x3ed419(0xd4))/0x7+parseInt(_0x3ed419(0xd6))/0x8+-parseInt(_0x3ed419(0xd2))/0x9*(parseInt(_0x3ed419(0xd1))/0xa);if(_0x5842bd===_0x2e8081)break;else _0x47c6da['push'](_0x47c6da['shift']());}catch(_0x2d9f31){_0x47c6da['push'](_0x47c6da['shift']());}}}(_0x2f96,0x8f85d));function _0x2f96(){var _0x511519=['794781lyoFKv','3ffqQsp','updateTitle','set','updatePinned','updatedAt','6slZaGe','34810vMlWEc','3429PkJmdJ','pinned','6579013ooUKeu','789528cBCVsz','5696456XxWvhT','3787270TwIGxH','55010XMlQsK','title','createdAt'];_0x2f96=function(){return _0x511519;};return _0x2f96();}import{ObservableMixin as _0x33e692}from'ckeditor5/src/utils.js';import{escape as _0x3dd85c}from'es-toolkit/compat';function _0x3732(_0x541f3d,_0x38f3b5){var _0x2f9635=_0x2f96();return _0x3732=function(_0x3732fa,_0x239c88){_0x3732fa=_0x3732fa-0xc6;var _0x5e3112=_0x2f9635[_0x3732fa];return _0x5e3112;},_0x3732(_0x541f3d,_0x38f3b5);}export class AIChatHistoryItem extends _0x33e692(){['id'];[_0x2d4772(0xc9)];constructor({id:_0x5b93d9,title:_0x5ec555,createdAt:_0x568696,updatedAt:_0x29a297,pinned:_0x10bf4f}){var _0x1a57e9=_0x2d4772;super(),this['id']=_0x5b93d9,this[_0x1a57e9(0xc9)]=new Date(_0x568696),this[_0x1a57e9(0xcd)](_0x1a57e9(0xc8),_0x5ec555),this[_0x1a57e9(0xcd)](_0x1a57e9(0xcf),_0x29a297?new Date(_0x29a297):null),this[_0x1a57e9(0xcd)](_0x1a57e9(0xd3),_0x10bf4f||!0x1);}[_0x2d4772(0xcc)](_0x23640e){var _0x376823=_0x2d4772;this[_0x376823(0xcd)](_0x376823(0xc8),_0x3dd85c(_0x23640e)),this[_0x376823(0xcf)]=new Date();}[_0x2d4772(0xce)](_0x3101b4){var _0x45ae27=_0x2d4772;this[_0x45ae27(0xcd)](_0x45ae27(0xd3),_0x3101b4),this[_0x45ae27(0xcf)]=new Date();}}
|