@ckeditor/ckeditor5-ai 47.7.0-alpha.3 → 47.7.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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 _0x20aae2,IconView as _0x4e9a75,LabeledFieldView as _0x274b7c,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x5626d6,IconCancel as _0x276d4f}from'ckeditor5/src/icons.js';import{getTranslation as _0x1c4c45}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x274b7c{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0xeabdb6){const t=_0xeabdb6['t'],_0x3b2c85={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x1c4c45(_0xeabdb6,'AI_CHAT_SEARCH_RESOURCES')};super(_0xeabdb6,_0x3b2c85['creator']),this['label']=_0x3b2c85['label'],this['_viewConfig']=_0x3b2c85,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0xeabdb6,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x5d0d4a){this['fire']('search',_0x5d0d4a);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x4e9a75(),this['iconView']['content']=_0x5626d6,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x4003ea,t){this['resetButtonView']=new _0x20aae2(_0x4003ea),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x276d4f,'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',_0x2d407d=>!_0x2d407d),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 _0x55c5ff=_0x1ddb;function _0x11b6(){const _0x24ed9b=['locale','ck-ai-chat-context-chips-wrapper','_contextChips','createCollection','setContainerElement','3LLRERM','8CnJUUh','element','render','ck-ai-chat-context-chips-wrapper-balloon','setTemplate','destroy','274951NFmDNM','145KgMFLu','add','134016tRkiHY','reorganizeChips','9473520FRngnb','ck-ai-chat-controls_context_show-more-button','2424772odNWiK','ck-ai-chat-controls-button','315306LevzYc','_bodyCollection','div','querySelector','_overflowManager','15358630ypDruc','ck-ai-chat-context-controls__show-more-balloon-panel','_createContextChips','2200714BNateX','ck-reset_all','ck-ai-chat__feed__context-chips'];_0x11b6=function(){return _0x24ed9b;};return _0x11b6();}(function(_0x1332f7,_0x55e51a){const _0xc513c7=_0x1ddb,_0x4a2fc4=_0x1332f7();while(!![]){try{const _0x583ab6=parseInt(_0xc513c7(0x15f))/0x1+-parseInt(_0xc513c7(0x170))/0x2+parseInt(_0xc513c7(0x158))/0x3*(-parseInt(_0xc513c7(0x166))/0x4)+parseInt(_0xc513c7(0x160))/0x5*(-parseInt(_0xc513c7(0x162))/0x6)+parseInt(_0xc513c7(0x164))/0x7+-parseInt(_0xc513c7(0x159))/0x8*(parseInt(_0xc513c7(0x168))/0x9)+parseInt(_0xc513c7(0x16d))/0xa;if(_0x583ab6===_0x55e51a)break;else _0x4a2fc4['push'](_0x4a2fc4['shift']());}catch(_0x404ec8){_0x4a2fc4['push'](_0x4a2fc4['shift']());}}}(_0x11b6,0xbd2be));import{View as _0x3d3edd}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1ea5ee}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x33edae}from'../controls/aichatchipsoverflowmanager.js';function _0x1ddb(_0x5b8330,_0x395093){const _0x11b606=_0x11b6();return _0x1ddb=function(_0x1ddbc1,_0x4376c8){_0x1ddbc1=_0x1ddbc1-0x155;let _0x43f6b6=_0x11b606[_0x1ddbc1];return _0x43f6b6;},_0x1ddb(_0x5b8330,_0x395093);}const oc=_0x55c5ff(0x172),rc=_0x55c5ff(0x174),nc=_0x55c5ff(0x15c),Xo=_0x55c5ff(0x167),$o=_0x55c5ff(0x165),Wo=_0x55c5ff(0x16e);export class AIChatFeedContextChipsView extends _0x3d3edd{[_0x55c5ff(0x155)]=this[_0x55c5ff(0x156)]();[_0x55c5ff(0x16c)];[_0x55c5ff(0x169)];constructor(_0x10b909,_0x1ae90b,_0x5004e2){const _0x387d25=_0x55c5ff;super(_0x10b909),this[_0x387d25(0x169)]=_0x5004e2,this[_0x387d25(0x16f)](_0x1ae90b);const _0x599925={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':nc,'controlsButton':Xo}};this[_0x387d25(0x16c)]=new _0x33edae(_0x10b909,this[_0x387d25(0x155)],_0x599925,this[_0x387d25(0x169)],this),this[_0x387d25(0x15d)]({'tag':_0x387d25(0x16a),'attributes':{'class':[oc,'ck',_0x387d25(0x171)]},'children':[{'tag':_0x387d25(0x16a),'attributes':{'class':rc},'children':this[_0x387d25(0x155)]}]});}[_0x55c5ff(0x15b)](){const _0x6f298f=_0x55c5ff;super[_0x6f298f(0x15b)]();const _0x234c47=this[_0x6f298f(0x15a)][_0x6f298f(0x16b)]('.'+rc);_0x234c47&&(this[_0x6f298f(0x16c)][_0x6f298f(0x157)](_0x234c47),this[_0x6f298f(0x16c)][_0x6f298f(0x163)]());}[_0x55c5ff(0x15e)](){const _0x443e57=_0x55c5ff;super[_0x443e57(0x15e)](),this[_0x443e57(0x16c)][_0x443e57(0x15e)]();}[_0x55c5ff(0x16f)](_0x2311ed){const _0xb1d3d7=_0x55c5ff;for(const _0x5d5806 of _0x2311ed){const _0x5d1250=new _0x1ea5ee(this[_0xb1d3d7(0x173)],_0x5d5806,!0x0,!0x1);this[_0xb1d3d7(0x155)][_0xb1d3d7(0x161)](_0x5d1250);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x19cd17=_0x5c3e;(function(_0x5ea26e,_0x1e8e07){var _0x50efb2=_0x5c3e,_0x4f63c2=_0x5ea26e();while(!![]){try{var _0x4b1f87=parseInt(_0x50efb2(0x129))/0x1*(-parseInt(_0x50efb2(0x121))/0x2)+parseInt(_0x50efb2(0x11f))/0x3+-parseInt(_0x50efb2(0x120))/0x4+-parseInt(_0x50efb2(0x123))/0x5+parseInt(_0x50efb2(0x12c))/0x6*(-parseInt(_0x50efb2(0x12d))/0x7)+-parseInt(_0x50efb2(0x11d))/0x8+parseInt(_0x50efb2(0x11e))/0x9;if(_0x4b1f87===_0x1e8e07)break;else _0x4f63c2['push'](_0x4f63c2['shift']());}catch(_0x223741){_0x4f63c2['push'](_0x4f63c2['shift']());}}}(_0x5fae,0xc10fa));import{AIChatFeedItemView as _0x35dd26}from'./aichatfeeditemview.js';export class AIChatFeedCustomElementView extends _0x35dd26{constructor(_0x55f128){var _0x2c4884=_0x5c3e;super(_0x55f128),this[_0x2c4884(0x126)]({'attributes':{'class':[_0x2c4884(0x127)]}});}async[_0x19cd17(0x11c)](){var _0x3c5fa9=_0x19cd17;super[_0x3c5fa9(0x11c)](),_0x3c5fa9(0x122)==typeof this[_0x3c5fa9(0x128)][_0x3c5fa9(0x12a)]?this[_0x3c5fa9(0x125)][_0x3c5fa9(0x124)]=this[_0x3c5fa9(0x128)][_0x3c5fa9(0x12a)]:this[_0x3c5fa9(0x125)][_0x3c5fa9(0x12b)](this[_0x3c5fa9(0x128)][_0x3c5fa9(0x12a)]);}}function _0x5c3e(_0x17f9ea,_0x3f413d){var _0x5fae4c=_0x5fae();return _0x5c3e=function(_0x5c3e1a,_0x11a072){_0x5c3e1a=_0x5c3e1a-0x11c;var _0x1fdb7b=_0x5fae4c[_0x5c3e1a];return _0x1fdb7b;},_0x5c3e(_0x17f9ea,_0x3f413d);}function _0x5fae(){var _0xde0eb8=['4118829yTkmsc','2267552EShTkl','66IqTiVH','string','6755285RYsICE','innerHTML','element','extendTemplate','ck-ai-chat__feed__custom-element','options','36773ACCDNX','content','appendChild','1481100FpGnty','21rREVIS','render','1861664JGIlgn','31702923kmDUwb'];_0x5fae=function(){return _0xde0eb8;};return _0x5fae();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2418da=_0x59ed;function _0x3714(){var _0x3522f7=['1791wmqfoA','warning','options','8RFXwiR','258997kCZFEU','element','initialContent','2054742SsrSWe','markAsDone','35370093WrgZlr','1361315mjchUD','innerHTML','12hCaSaQ','level','setContent','45030XYqbzk','ck-ai-notification','ck-ai-notification_warning','2657501xqjOao','ck-ai-notification_error','render','1318248Xbgstr','extendTemplate','4RSVpxz'];_0x3714=function(){return _0x3522f7;};return _0x3714();}(function(_0x42ddee,_0x312b7a){var _0xd698d8=_0x59ed,_0x54c7e1=_0x42ddee();while(!![]){try{var _0x42a0ef=parseInt(_0xd698d8(0x15c))/0x1*(-parseInt(_0xd698d8(0x157))/0x2)+-parseInt(_0xd698d8(0x15f))/0x3*(parseInt(_0xd698d8(0x15b))/0x4)+-parseInt(_0xd698d8(0x14a))/0x5*(-parseInt(_0xd698d8(0x14c))/0x6)+-parseInt(_0xd698d8(0x152))/0x7+parseInt(_0xd698d8(0x155))/0x8+parseInt(_0xd698d8(0x158))/0x9*(-parseInt(_0xd698d8(0x14f))/0xa)+parseInt(_0xd698d8(0x161))/0xb;if(_0x42a0ef===_0x312b7a)break;else _0x54c7e1['push'](_0x54c7e1['shift']());}catch(_0x1d4937){_0x54c7e1['push'](_0x54c7e1['shift']());}}}(_0x3714,0xb9d78));function _0x59ed(_0x2e3dca,_0x5d68f1){var _0x3714c7=_0x3714();return _0x59ed=function(_0x59ed62,_0x17de89){_0x59ed62=_0x59ed62-0x14a;var _0x1ccea1=_0x3714c7[_0x59ed62];return _0x1ccea1;},_0x59ed(_0x2e3dca,_0x5d68f1);}import{AIChatFeedItemView as _0x1a3a94}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x1a3a94{constructor(_0x3cbdf8){var _0xc5509b=_0x59ed;super(_0x3cbdf8),this[_0xc5509b(0x156)]({'attributes':{'class':[_0xc5509b(0x150),_0xc5509b(0x159)===_0x3cbdf8[_0xc5509b(0x14d)]?_0xc5509b(0x151):_0xc5509b(0x153)]}});}[_0x2418da(0x154)](){var _0x3cd2b0=_0x2418da;super[_0x3cd2b0(0x154)](),this[_0x3cd2b0(0x14e)](this[_0x3cd2b0(0x15a)][_0x3cd2b0(0x15e)]),this[_0x3cd2b0(0x160)]();}[_0x2418da(0x14e)](_0x51aaab){var _0x3aefca=_0x2418da;this[_0x3aefca(0x15d)][_0x3aefca(0x14b)]=_0x51aaab;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3489(){const _0x4b8893=['AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','75008KrtDEC','content','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','151315QgAVoM','ck-hidden','65248QsVSAT','capabilities','span','ck-ai-chat__feed__interaction-header','children','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','431048ZHTwMX','extendTemplate','push','ck-ai-chat__feed__interaction-header__capabilities','add','div','1394hGToFU','1107HqiIrn','1675902xstNsU','setTemplate','431207HpoHOC'];_0x3489=function(){return _0x4b8893;};return _0x3489();}const _0x4f8fdc=_0x1121;(function(_0x14fa43,_0x203004){const _0x2f3e38=_0x1121,_0x4e885f=_0x14fa43();while(!![]){try{const _0x3b0fa5=parseInt(_0x2f3e38(0x163))/0x1+-parseInt(_0x2f3e38(0x15d))/0x2*(-parseInt(_0x2f3e38(0x15e))/0x3)+-parseInt(_0x2f3e38(0x169))/0x4+parseInt(_0x2f3e38(0x167))/0x5+-parseInt(_0x2f3e38(0x15f))/0x6+parseInt(_0x2f3e38(0x161))/0x7+parseInt(_0x2f3e38(0x157))/0x8;if(_0x3b0fa5===_0x203004)break;else _0x4e885f['push'](_0x4e885f['shift']());}catch(_0x208a33){_0x4e885f['push'](_0x4e885f['shift']());}}}(_0x3489,0x2c82d));import{IconBulb as _0x3cdb27,IconWeb as _0x420f28}from'@ckeditor/ckeditor5-icons';import{IconView as _0x3c9e74,View as _0x104ba0}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x3a865c}from'./aichatfeeditemview.js';function _0x1121(_0x409c85,_0x333ef8){const _0x34899b=_0x3489();return _0x1121=function(_0x11211f,_0x2015fe){_0x11211f=_0x11211f-0x153;let _0x39d23b=_0x34899b[_0x11211f];return _0x39d23b;},_0x1121(_0x409c85,_0x333ef8);}import{getTranslation as _0x3a56d9}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x3a865c{[_0x4f8fdc(0x16a)];constructor(_0x4121c4,_0x1e6d29){const _0x9a9f=_0x4f8fdc;super(_0x1e6d29);const {isWebSearchEnabled:_0x54d64b,isReasoningEnabled:_0x20126f}=_0x1e6d29[_0x9a9f(0x16a)],_0x4001ab=[];let _0x379319='';_0x54d64b&&_0x20126f?(_0x379319=_0x3a56d9(_0x4121c4,_0x9a9f(0x162)),_0x4001ab[_0x9a9f(0x159)](aa(_0x420f28)),_0x4001ab[_0x9a9f(0x159)](aa(_0x3cdb27))):_0x54d64b?(_0x379319=_0x3a56d9(_0x4121c4,_0x9a9f(0x156)),_0x4001ab[_0x9a9f(0x159)](aa(_0x420f28))):_0x20126f&&(_0x379319=_0x3a56d9(_0x4121c4,_0x9a9f(0x165)),_0x4001ab[_0x9a9f(0x159)](aa(_0x3cdb27))),this[_0x9a9f(0x158)]({'attributes':{'class':[_0x9a9f(0x154),_0x379319?'':_0x9a9f(0x168)]}});const _0x4e6ad8=new _0x104ba0();_0x4e6ad8[_0x9a9f(0x160)]({'tag':_0x9a9f(0x15c),'attributes':{'class':['ck',_0x9a9f(0x15a)]},'children':[..._0x4001ab,{'tag':_0x9a9f(0x153),'attributes':{'class':[_0x9a9f(0x166)]},'children':[_0x379319]}]}),this[_0x9a9f(0x155)][_0x9a9f(0x15b)](_0x4e6ad8),this[_0x9a9f(0x16a)]=_0x1e6d29[_0x9a9f(0x16a)];}}function aa(_0x3ba8bf){const _0x25b7d9=_0x4f8fdc,_0x483f94=new _0x3c9e74();return _0x483f94[_0x25b7d9(0x164)]=_0x3ba8bf,_0x483f94;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c8438=_0x3ad3;(function(_0x58ee47,_0x1b7b1c){const _0x2f2449=_0x3ad3,_0x136be3=_0x58ee47();while(!![]){try{const _0x20b941=parseInt(_0x2f2449(0x12c))/0x1+parseInt(_0x2f2449(0x136))/0x2+parseInt(_0x2f2449(0x121))/0x3+parseInt(_0x2f2449(0x134))/0x4+-parseInt(_0x2f2449(0x126))/0x5+parseInt(_0x2f2449(0x127))/0x6+-parseInt(_0x2f2449(0x129))/0x7*(parseInt(_0x2f2449(0x13c))/0x8);if(_0x20b941===_0x1b7b1c)break;else _0x136be3['push'](_0x136be3['shift']());}catch(_0x3a24f6){_0x136be3['push'](_0x136be3['shift']());}}}(_0x1aba,0xc2fb1));function _0x1aba(){const _0x4a8581=['data-id','div','markAsDone','forEach','htmlStreamer','querySelectorAll','6134144iCOJVk','removeAttribute','1167124dRwebQ','createCollection','ck-ai-chat__feed__item','ck-ai-chat__feed__item_done','isVisible','cleanUpAnimations','78744AFOFJh','streamIntoElement','isDone','element','setTemplate','stream','bindTemplate','2367525lJcPLI','children','set','content','ck-hidden','6873470HtWqzE','3656958hYdgRL','options','1435vVXjTx','ck-ai-chat__feed__text-item','animation:\x20ck-html-streamer-fade-in\x20.5s','675384AEgvwL','[data-id]'];_0x1aba=function(){return _0x4a8581;};return _0x1aba();}import{View as _0x3535f5}from'ckeditor5/src/ui.js';function _0x3ad3(_0x2da552,_0x4bab33){const _0x1abab6=_0x1aba();return _0x3ad3=function(_0x3ad300,_0x88a111){_0x3ad300=_0x3ad300-0x120;let _0x5a4185=_0x1abab6[_0x3ad300];return _0x5a4185;},_0x3ad3(_0x2da552,_0x4bab33);}import{HTMLStreamer as _0x7c783c}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x3535f5{[_0x3c8438(0x128)];[_0x3c8438(0x124)]='';[_0x3c8438(0x132)];[_0x3c8438(0x122)];constructor(_0x6e2af5){const _0x109480=_0x3c8438;super();const _0x1f1151=this[_0x109480(0x120)];this[_0x109480(0x123)](_0x109480(0x13e),!0x1),this[_0x109480(0x123)](_0x109480(0x13a),!0x0),this[_0x109480(0x132)]=new _0x7c783c({'textNodeStyle':_0x109480(0x12b),'delay':0x14}),this[_0x109480(0x128)]=_0x6e2af5,this[_0x109480(0x122)]=this[_0x109480(0x137)](),this[_0x109480(0x140)]({'tag':_0x109480(0x12f),'attributes':{'class':['ck',_0x109480(0x138),_0x1f1151['if'](_0x109480(0x13e),_0x109480(0x139)),_0x1f1151['if'](_0x109480(0x13a),_0x109480(0x125),_0x5bd238=>!_0x5bd238),_0x109480(0x12a)],'data-cke-ai-id':this[_0x109480(0x128)]['id']},'children':this[_0x109480(0x122)]});}[_0x3c8438(0x130)](){const _0x2f2664=_0x3c8438;this[_0x2f2664(0x132)][_0x2f2664(0x13b)]({'targetElement':this[_0x2f2664(0x13f)]}),this[_0x2f2664(0x13f)][_0x2f2664(0x133)](_0x2f2664(0x12d))[_0x2f2664(0x131)](_0x193fe7=>{const _0x352372=_0x2f2664;_0x193fe7[_0x352372(0x135)](_0x352372(0x12e));}),this[_0x2f2664(0x13e)]=!0x0;}async[_0x3c8438(0x13d)](_0x594a86,_0x4fb2d9,_0x3437a1){const _0xaaf58b=_0x3c8438;await this[_0xaaf58b(0x132)][_0xaaf58b(0x141)]({'document':_0x594a86,'targetElement':_0x4fb2d9,'abortSignal':_0x3437a1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x111d(){const _0x523f19=['setTemplate','5bHbgVU','locale','4440WBTiWb','streaming','590BVDylB','addMany','div','options','element','50864mfgnzu','54109HmAIdS','render','210274dLUmzc','add','map','378apuAXC','innerHTML','updateSources','ck-ai-chat__feed__ai-reply-container','children','336frLGWP','replyContainer','initialContent','ck-ai-chat__feed__ai-reply','ck-reset_all-excluded','_bodyCollection','static','balloonPanelView','markAsDone','streamIntoElement','isVisible','347958IItbaa','updateContent','416676ZQCQuU','20872zCxzKL','extendTemplate'];_0x111d=function(){return _0x523f19;};return _0x111d();}const _0x310c7b=_0x5431;(function(_0x427212,_0x3ff32b){const _0x21a9dc=_0x5431,_0x23cb1b=_0x427212();while(!![]){try{const _0x76d5b2=parseInt(_0x21a9dc(0x147))/0x1+-parseInt(_0x21a9dc(0x14a))/0x2+parseInt(_0x21a9dc(0x15d))/0x3+-parseInt(_0x21a9dc(0x15f))/0x4*(parseInt(_0x21a9dc(0x163))/0x5)+-parseInt(_0x21a9dc(0x165))/0x6*(parseInt(_0x21a9dc(0x152))/0x7)+-parseInt(_0x21a9dc(0x160))/0x8*(parseInt(_0x21a9dc(0x14d))/0x9)+-parseInt(_0x21a9dc(0x167))/0xa*(-parseInt(_0x21a9dc(0x148))/0xb);if(_0x76d5b2===_0x3ff32b)break;else _0x23cb1b['push'](_0x23cb1b['shift']());}catch(_0x5173d7){_0x23cb1b['push'](_0x23cb1b['shift']());}}}(_0x111d,0x1910b));import{AIChatFeedItemView as _0x2d9a32}from'./aichatfeeditemview.js';import{parse as _0x35eae9,render as _0x69aebc}from'../../../aicore/utils/htmlparser.js';import{View as _0x1cb42b}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x454d15,AIWebSourceView as _0x34c90e}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';function _0x5431(_0x18cf0e,_0x120b20){const _0x111d8d=_0x111d();return _0x5431=function(_0x5431d9,_0x6a645b){_0x5431d9=_0x5431d9-0x146;let _0x149b59=_0x111d8d[_0x5431d9];return _0x149b59;},_0x5431(_0x18cf0e,_0x120b20);}export class AIChatFeedReplyItemView extends _0x2d9a32{[_0x310c7b(0x153)];[_0x310c7b(0x157)];constructor(_0x152e06,_0x163d2f,_0x1759e1){const _0x5b968e=_0x310c7b;super(_0x163d2f),this[_0x5b968e(0x157)]=_0x1759e1,this[_0x5b968e(0x164)]=_0x152e06,this[_0x5b968e(0x161)]({'attributes':{'class':[_0x5b968e(0x155)]}}),this[_0x5b968e(0x153)]=new _0x1cb42b(),this[_0x5b968e(0x153)][_0x5b968e(0x162)]({'tag':_0x5b968e(0x169),'attributes':{'class':['ck',_0x5b968e(0x156),_0x5b968e(0x150)]}}),this[_0x5b968e(0x151)][_0x5b968e(0x14b)](this[_0x5b968e(0x153)]);}async[_0x310c7b(0x149)](){const _0xa28051=_0x310c7b;super[_0xa28051(0x149)](),this[_0xa28051(0x16a)][_0xa28051(0x154)]&&(await this[_0xa28051(0x15e)]({'parsedContent':_0x35eae9(this[_0xa28051(0x16a)][_0xa28051(0x154)]),'renderingStrategy':_0xa28051(0x158)}),this[_0xa28051(0x15a)]());}async[_0x310c7b(0x15e)]({parsedContent:_0x3f6324,renderingStrategy:_0xb1b70c,abortSignal:_0x165439}){const _0x5def48=_0x310c7b;_0x5def48(0x166)===_0xb1b70c?await this[_0x5def48(0x15b)](_0x3f6324,this[_0x5def48(0x153)][_0x5def48(0x146)],_0x165439):this[_0x5def48(0x153)][_0x5def48(0x146)][_0x5def48(0x14e)]=_0x69aebc(_0x3f6324);}[_0x310c7b(0x14f)](_0x3c352d){const _0x29b950=_0x310c7b,_0x177c61=new _0x454d15(this[_0x29b950(0x164)],this[_0x29b950(0x157)]);_0x177c61[_0x29b950(0x151)][_0x29b950(0x168)](_0x3c352d[_0x29b950(0x14c)](_0x2955a0=>new _0x34c90e(this[_0x29b950(0x164)],_0x2955a0,_0x177c61[_0x29b950(0x159)]))),_0x177c61[_0x29b950(0x15c)]=!0x0,this[_0x29b950(0x151)][_0x29b950(0x14b)](_0x177c61);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dea21=_0x3dad;(function(_0x4d23ff,_0x149c39){const _0x5c3429=_0x3dad,_0x20d702=_0x4d23ff();while(!![]){try{const _0x66d2ad=-parseInt(_0x5c3429(0xba))/0x1+-parseInt(_0x5c3429(0xa5))/0x2*(parseInt(_0x5c3429(0xbe))/0x3)+parseInt(_0x5c3429(0xad))/0x4+parseInt(_0x5c3429(0x9a))/0x5+parseInt(_0x5c3429(0xac))/0x6*(-parseInt(_0x5c3429(0xb9))/0x7)+parseInt(_0x5c3429(0xb1))/0x8+-parseInt(_0x5c3429(0x9c))/0x9*(parseInt(_0x5c3429(0xa8))/0xa);if(_0x66d2ad===_0x149c39)break;else _0x20d702['push'](_0x20d702['shift']());}catch(_0x953b5f){_0x20d702['push'](_0x20d702['shift']());}}}(_0x51b8,0x34364));function _0x3dad(_0x1f1367,_0x4438a8){const _0x51b828=_0x51b8();return _0x3dad=function(_0x3dad12,_0x50ce1e){_0x3dad12=_0x3dad12-0x96;let _0x541fbd=_0x51b828[_0x3dad12];return _0x541fbd;},_0x3dad(_0x1f1367,_0x4438a8);}import{ButtonView as _0xb53e4,View as _0x10c252}from'ckeditor5/src/ui.js';function _0x51b8(){const _0x39de5a=['245qOluFp','43128sSHcwv','ck-ai-chat__feed__suggestion__actions__info','_switchButtonLabelsPlurality','execute','165DmViSI','fire','updateVisibility','_insertSuggestionsButton','label','bindTemplate','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','ck-ai-button-primary','div','applySuggestion','AI_SUGGESTION_DISABLED_FEED_MESSAGE','1008875fbRpjD','forEach','1133451vvSdAh','isEnabled','change:isTrackChangesOn','set','ck-ai-chat__feed__ai-suggestion__actions','children','bind','add','insertSuggestion','1050qCqGAu','button','AI_CHAT_SUGGESTION_ACTION_APPLY','20RCmgEI','createCollection','_applyChangesButton','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','38748ZBSVYj','866528ZlKtea','locale','AI_CHAT_SUGGESTION_ACTION_SUGGEST','includes','2762912tOFtzR','ck-ai-button-secondary','addMany','isVisible','isTrackChangesOn','setTemplate','ck-hidden','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'];_0x51b8=function(){return _0x39de5a;};return _0x51b8();}import{getTranslation as _0x3a6f12}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x45d97b}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x4dea21(0x98),_0x4dea21(0xa4)];export class AIChatFeedSuggestionItemActionsView extends _0x10c252{[_0x4dea21(0xaa)];[_0x4dea21(0xc1)];[_0x4dea21(0xa1)];constructor(_0x45eede,_0x478cad=[...AI_REPLY_ACTIONS],_0x337e1d){const _0x45655f=_0x4dea21;super(_0x45eede);const _0x513abf=this[_0x45655f(0xc3)],_0x2d5504=Boolean(_0x337e1d);if(this[_0x45655f(0x9f)](_0x45655f(0x9d),!_0x2d5504),this[_0x45655f(0x9f)](_0x45655f(0xb4),!0x1),this[_0x45655f(0x9f)](_0x45655f(0xb5),!0x1),this[_0x45655f(0xa1)]=this[_0x45655f(0xa9)](),_0x2d5504){const _0x5b4fc2=new _0xb53e4(_0x45eede);_0x5b4fc2[_0x45655f(0x9f)]({'label':_0x3a6f12(_0x45eede,_0x45655f(0xab)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x45d97b});const _0x4787a7=new _0x10c252(_0x45eede);_0x4787a7[_0x45655f(0xb6)]({'tag':_0x45655f(0x97),'attributes':{'class':_0x45655f(0xbb)},'children':[{'tag':'p','children':[_0x3a6f12(_0x45eede,_0x45655f(0x99)),_0x5b4fc2]}]}),this[_0x45655f(0xa1)][_0x45655f(0xa3)](_0x4787a7);}else this[_0x45655f(0xaa)]=new _0xb53e4(_0x45eede),this[_0x45655f(0xaa)][_0x45655f(0x9f)]({'label':_0x3a6f12(_0x45eede,_0x45655f(0xb8)),'withText':!0x0,'type':_0x45655f(0xa6),'isVisible':_0x478cad[_0x45655f(0xb0)](_0x45655f(0x98)),'class':_0x45655f(0x96)}),this[_0x45655f(0xc1)]=new _0xb53e4(_0x45eede),this[_0x45655f(0xc1)][_0x45655f(0x9f)]({'label':_0x3a6f12(_0x45eede,_0x45655f(0xc4)),'withText':!0x0,'type':_0x45655f(0xa6),'isVisible':_0x478cad[_0x45655f(0xb0)](_0x45655f(0xa4)),'class':_0x45655f(0xb2)}),this[_0x45655f(0xc1)]['on'](_0x45655f(0xbd),()=>{const _0x1f0b29=_0x45655f;this[_0x1f0b29(0xbf)](_0x1f0b29(0xa4));}),this[_0x45655f(0xaa)]['on'](_0x45655f(0xbd),()=>{const _0x1bccda=_0x45655f;this[_0x1bccda(0xbf)](_0x1bccda(0x98));}),[this[_0x45655f(0xaa)],this[_0x45655f(0xc1)]][_0x45655f(0x9b)](_0x120437=>{const _0x5899e8=_0x45655f;_0x120437[_0x5899e8(0xa2)](_0x5899e8(0x9d))['to'](this);}),this[_0x45655f(0xa1)][_0x45655f(0xb3)]([this[_0x45655f(0xaa)],this[_0x45655f(0xc1)]]);this[_0x45655f(0xb6)]({'tag':_0x45655f(0x97),'attributes':{'class':['ck',_0x45655f(0xa0),_0x513abf['if'](_0x45655f(0xb4),_0x45655f(0xb7),_0x3dec78=>!_0x3dec78)]},'children':this[_0x45655f(0xa1)]}),this['on'](_0x45655f(0x9e),()=>{const _0x493151=_0x45655f;this[_0x493151(0xaa)]&&(this[_0x493151(0xaa)][_0x493151(0xb4)]=!this[_0x493151(0xb5)]);});}[_0x4dea21(0xc0)](_0x13bea7){const _0x46e049=_0x4dea21;this[_0x46e049(0xb4)]=_0x13bea7;}[_0x4dea21(0xbc)](_0x564457){const _0x28063a=_0x4dea21;this[_0x28063a(0xaa)]&&this[_0x28063a(0xc1)]&&(_0x564457?(this[_0x28063a(0xaa)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xb8)),this[_0x28063a(0xc1)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xc4))):(this[_0x28063a(0xaa)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xa7)),this[_0x28063a(0xc1)][_0x28063a(0xc2)]=_0x3a6f12(this[_0x28063a(0xae)],_0x28063a(0xaf))));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4a5427=_0x3bbe;function _0x5c68(){var _0x49a077=['3717Fzrmaq','fire','children','set','updateSources','67969gLjRYw','like','isTrackChangesOn','1858446PqeHMC','bind','683dHvErs','getPartView','updatePartState','rejectSuggestion','showDiff','2374hfOCgC','3befTgP','ck-ai-chat__feed__ai-suggestion','6168nfuptE','dislike','276435ehSrAL','mouseOverSuggestion','availableActions','toggleSuggestionDisplayMode','1216972lQxnro','setPartActive','applySuggestion','updateContent','5864OHILXY','addMany','extendTemplate','941570VBttla','options','15zEjvFO','showChangeInText','mouseLeaveSuggestion','insertSuggestion','containerView','bodyView','markAsDone','areActionsDisabled'];_0x5c68=function(){return _0x49a077;};return _0x5c68();}(function(_0x17784c,_0x45e46f){var _0x93eaa7=_0x3bbe,_0x54e862=_0x17784c();while(!![]){try{var _0x9461ec=-parseInt(_0x93eaa7(0x201))/0x1*(parseInt(_0x93eaa7(0x206))/0x2)+-parseInt(_0x93eaa7(0x207))/0x3*(parseInt(_0x93eaa7(0x20f))/0x4)+-parseInt(_0x93eaa7(0x1ef))/0x5*(parseInt(_0x93eaa7(0x1ff))/0x6)+-parseInt(_0x93eaa7(0x1f7))/0x7*(parseInt(_0x93eaa7(0x1ea))/0x8)+-parseInt(_0x93eaa7(0x20b))/0x9+-parseInt(_0x93eaa7(0x1ed))/0xa+parseInt(_0x93eaa7(0x1fc))/0xb*(parseInt(_0x93eaa7(0x209))/0xc);if(_0x9461ec===_0x45e46f)break;else _0x54e862['push'](_0x54e862['shift']());}catch(_0x3e9a19){_0x54e862['push'](_0x54e862['shift']());}}}(_0x5c68,0x96cfc));function _0x3bbe(_0x140078,_0x4ca8fe){var _0x5c6882=_0x5c68();return _0x3bbe=function(_0x3bbeae,_0x4ec7c5){_0x3bbeae=_0x3bbeae-0x1e8;var _0x2c5ed3=_0x5c6882[_0x3bbeae];return _0x2c5ed3;},_0x3bbe(_0x140078,_0x4ca8fe);}import{AIChatFeedItemView as _0x311896}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x1c2df9}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedSuggestionItemView extends _0x311896{[_0x4a5427(0x1f3)];constructor(_0x1084af,_0x2cf817,_0x30cf62){var _0x3b6aa8=_0x4a5427;super(_0x2cf817),this[_0x3b6aa8(0x1fa)](_0x3b6aa8(0x1fe),!0x1),this[_0x3b6aa8(0x1f3)]=new _0x1c2df9(_0x1084af,{'showDiff':_0x2cf817[_0x3b6aa8(0x205)],'areActionsDisabled':_0x2cf817[_0x3b6aa8(0x1f6)],'availableActions':_0x2cf817[_0x3b6aa8(0x20d)]},_0x30cf62),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x20e),(_0x1bed5d,_0x19169c)=>{var _0x3a6953=_0x3b6aa8;this[_0x3a6953(0x1f8)](_0x3a6953(0x20e),{'replyId':this[_0x3a6953(0x1ee)]['id'],'showDiff':_0x19169c[_0x3a6953(0x205)]});}),this[_0x3b6aa8(0x1f3)][_0x3b6aa8(0x200)](_0x3b6aa8(0x1fe))['to'](this),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x1fd),()=>{var _0x2eee3a=_0x3b6aa8;this[_0x2eee3a(0x1f8)](_0x2eee3a(0x1fd),{'replyId':this[_0x2eee3a(0x1ee)]['id']});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x20a),()=>{var _0x1105db=_0x3b6aa8;this[_0x1105db(0x1f8)](_0x1105db(0x20a),{'replyId':this[_0x1105db(0x1ee)]['id']});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x1f0),(_0x3e7e79,{index:_0x1642bc})=>{var _0x18e81d=_0x3b6aa8;this[_0x18e81d(0x1f8)](_0x18e81d(0x1f0),{'replyId':this[_0x18e81d(0x1ee)]['id'],'partIndex':_0x1642bc});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x1e8),(_0x866848,{index:_0x47bd31}={})=>{var _0x505cfb=_0x3b6aa8;this[_0x505cfb(0x1f8)](_0x505cfb(0x1e8),{'replyId':this[_0x505cfb(0x1ee)]['id'],'partIndex':_0x47bd31});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x1f2),(_0x434b75,{index:_0x4de70d}={})=>{var _0x411bff=_0x3b6aa8;this[_0x411bff(0x1f8)](_0x411bff(0x1f2),{'replyId':this[_0x411bff(0x1ee)]['id'],'partIndex':_0x4de70d});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x204),(_0x1e08dd,{index:_0xd6c7b8})=>{var _0x297c26=_0x3b6aa8;this[_0x297c26(0x1f8)](_0x297c26(0x204),{'replyId':this[_0x297c26(0x1ee)]['id'],'partIndex':_0xd6c7b8});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x20c),(_0x19a94c,{index:_0x56c81c})=>{var _0x2516a9=_0x3b6aa8;this[_0x2516a9(0x1f8)](_0x2516a9(0x20c),{'replyId':this[_0x2516a9(0x1ee)]['id'],'partIndex':_0x56c81c});}),this[_0x3b6aa8(0x1f3)]['on'](_0x3b6aa8(0x1f1),(_0x2c5dca,{index:_0x378bba})=>{var _0x43fc19=_0x3b6aa8;this[_0x43fc19(0x1f8)](_0x43fc19(0x1f1),{'replyId':this[_0x43fc19(0x1ee)]['id'],'partIndex':_0x378bba});}),this[_0x3b6aa8(0x1f9)][_0x3b6aa8(0x1eb)]([this[_0x3b6aa8(0x1f3)]]),this[_0x3b6aa8(0x1ec)]({'attributes':{'class':[_0x3b6aa8(0x208)]}});}async[_0x4a5427(0x1e9)](_0x4af0a4){var _0x1cb1a7=_0x4a5427;await this[_0x1cb1a7(0x1f3)][_0x1cb1a7(0x1e9)](_0x4af0a4);}[_0x4a5427(0x203)](_0x4682bd,_0x1c7be4){var _0x407be2=_0x4a5427;this[_0x407be2(0x1f3)][_0x407be2(0x1f4)][_0x407be2(0x203)](_0x4682bd,_0x1c7be4);}[_0x4a5427(0x210)](_0x3476bd,_0x14d345){var _0x820b17=_0x4a5427;!0x1===_0x3476bd?this[_0x820b17(0x1f3)][_0x820b17(0x1f4)][_0x820b17(0x210)](!0x1):this[_0x820b17(0x1f3)][_0x820b17(0x1f4)][_0x820b17(0x210)](_0x3476bd,_0x14d345);}[_0x4a5427(0x1fb)](_0x20bdb0){var _0x297046=_0x4a5427;this[_0x297046(0x1f3)][_0x297046(0x1fb)](_0x20bdb0);}[_0x4a5427(0x202)](_0x6eed73){var _0x4199c3=_0x4a5427;return this[_0x4199c3(0x1f3)][_0x4199c3(0x1f4)][_0x4199c3(0x202)](_0x6eed73);}[_0x4a5427(0x1f5)](){var _0x107c8e=_0x4a5427;super[_0x107c8e(0x1f5)](),this[_0x107c8e(0x1f3)][_0x107c8e(0x1f5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5673a0=_0x5436;(function(_0x3b0791,_0x388ba8){var _0x263fbe=_0x5436,_0x21c385=_0x3b0791();while(!![]){try{var _0x13dc96=-parseInt(_0x263fbe(0x171))/0x1*(parseInt(_0x263fbe(0x181))/0x2)+parseInt(_0x263fbe(0x174))/0x3+-parseInt(_0x263fbe(0x178))/0x4+parseInt(_0x263fbe(0x187))/0x5*(parseInt(_0x263fbe(0x182))/0x6)+-parseInt(_0x263fbe(0x177))/0x7*(-parseInt(_0x263fbe(0x186))/0x8)+parseInt(_0x263fbe(0x179))/0x9+-parseInt(_0x263fbe(0x17e))/0xa;if(_0x13dc96===_0x388ba8)break;else _0x21c385['push'](_0x21c385['shift']());}catch(_0xf836f4){_0x21c385['push'](_0x21c385['shift']());}}}(_0x31d6,0x978b3));function _0x5436(_0x44c8c0,_0x1d599e){var _0x31d601=_0x31d6();return _0x5436=function(_0x54367e,_0x4ee679){_0x54367e=_0x54367e-0x170;var _0x102704=_0x31d601[_0x54367e];return _0x102704;},_0x5436(_0x44c8c0,_0x1d599e);}import{AIChatFeedItemView as _0x769e59}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x3bbeb9}from'./aichatfeedcontextchipsview.js';function _0x31d6(){var _0x4bcbd4=['_locale','contextItems','ck-ai-chat__feed__user-message','setTemplate','1979400uTFBfP','ck-ai-chat__feed__message-content','initialContent','2HxgVfH','575838cyaWfn','ck-ai-chat__feed__context-chips','_createMessageContentView','markAsDone','532416aUEciW','5KqeGzi','render','_createContextChipsView','_messageContentView','options','extendTemplate','div','_contextChipsView','children','length','element','_bodyCollection','571713BvlwEb','add','innerHTML','1763922ENtNJX','hidden','filter','91VPspjx','4717956YLMrdR','9186678XULFMn'];_0x31d6=function(){return _0x4bcbd4;};return _0x31d6();}import{View as _0x1ffa97}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x769e59{[_0x5673a0(0x18e)]=null;[_0x5673a0(0x17a)];[_0x5673a0(0x170)];[_0x5673a0(0x18a)];constructor(_0xc44cb3,_0x527f50,_0x577652){var _0x29903c=_0x5673a0;super(_0x527f50),this[_0x29903c(0x17a)]=_0xc44cb3,this[_0x29903c(0x170)]=_0x577652,this[_0x29903c(0x189)](),this[_0x29903c(0x184)](),this[_0x29903c(0x18c)]({'attributes':{'class':[_0x29903c(0x17c)]}});}[_0x5673a0(0x189)](){var _0x4e9c70=_0x5673a0;this[_0x4e9c70(0x18b)][_0x4e9c70(0x17b)]&&this[_0x4e9c70(0x18b)][_0x4e9c70(0x17b)][_0x4e9c70(0x190)]>0x0&&(this[_0x4e9c70(0x18e)]=new _0x3bbeb9(this[_0x4e9c70(0x17a)],this[_0x4e9c70(0x18b)][_0x4e9c70(0x17b)][_0x4e9c70(0x176)](_0xb0839c=>!_0xb0839c[_0x4e9c70(0x175)]),this[_0x4e9c70(0x170)]),this[_0x4e9c70(0x18e)][_0x4e9c70(0x18c)]({'attributes':{'class':_0x4e9c70(0x183)}}),this[_0x4e9c70(0x18f)][_0x4e9c70(0x172)](this[_0x4e9c70(0x18e)]));}[_0x5673a0(0x184)](){var _0x3fcf84=_0x5673a0;this[_0x3fcf84(0x18a)]=new _0x1ffa97(this[_0x3fcf84(0x17a)]),this[_0x3fcf84(0x18a)][_0x3fcf84(0x17d)]({'tag':_0x3fcf84(0x18d),'attributes':{'class':_0x3fcf84(0x17f)}}),this[_0x3fcf84(0x18f)][_0x3fcf84(0x172)](this[_0x3fcf84(0x18a)]);}[_0x5673a0(0x188)](){var _0x4b0049=_0x5673a0;super[_0x4b0049(0x188)](),this[_0x4b0049(0x18a)][_0x4b0049(0x191)][_0x4b0049(0x173)]=this[_0x4b0049(0x18b)][_0x4b0049(0x180)],this[_0x4b0049(0x185)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x54e9(_0x45e014,_0x4e5ebb){const _0x206a14=_0x206a();return _0x54e9=function(_0x54e90c,_0x4a2e9b){_0x54e90c=_0x54e90c-0x1cc;let _0x15ecc9=_0x206a14[_0x54e90c];return _0x15ecc9;},_0x54e9(_0x45e014,_0x4e5ebb);}const _0x55b107=_0x54e9;(function(_0x4b2d11,_0x3c6f6e){const _0x37ca37=_0x54e9,_0x47b171=_0x4b2d11();while(!![]){try{const _0x4155dd=-parseInt(_0x37ca37(0x1df))/0x1+parseInt(_0x37ca37(0x1d1))/0x2+parseInt(_0x37ca37(0x1db))/0x3+-parseInt(_0x37ca37(0x1cd))/0x4*(parseInt(_0x37ca37(0x1cc))/0x5)+parseInt(_0x37ca37(0x1d6))/0x6+-parseInt(_0x37ca37(0x1d2))/0x7+parseInt(_0x37ca37(0x1dc))/0x8;if(_0x4155dd===_0x3c6f6e)break;else _0x47b171['push'](_0x47b171['shift']());}catch(_0x5b62f6){_0x47b171['push'](_0x47b171['shift']());}}}(_0x206a,0x72426));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5a0ff9}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x5a0ff9,_0x55b107(0x1d5),_0x55b107(0x1d8),_0x55b107(0x1dd),_0x55b107(0x1d7),_0x55b107(0x1d3),_0x55b107(0x1e0),_0x55b107(0x1ce),_0x55b107(0x1da),_0x55b107(0x1d0),_0x55b107(0x1d9),_0x55b107(0x1cf),_0x55b107(0x1e1),_0x55b107(0x1d4),_0x55b107(0x1de)];function _0x206a(){const _0x4e5516=['selectModel','645766WRlCWC','addFileToContext','toggleWebSearch','20715oaAKDa','496KHpbwi','addUrlToContext','loadSourceResources','addResourceToContext','210588udwVjy','5886027gkwjyh','addDocumentToContext','toggleReasoning','startConversation','356994KWgAZf','abortPromptStream','resizeTabs','removeContextItem','executeCustomItemCallback','201186rlulND','17892080bGEYnY','sendUserMessage'];_0x206a=function(){return _0x4e5516;};return _0x206a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4251(){const _0x367ff0=['callback','shift','queue','_processQueue','1285ZuGQFy','1737428sElDLX','queueEmptyPromise','935180HXnkzT','length','createTask','signal','1986ZERCYe','fire','abort','isProcessing','enqueue','once','reject','887799KDrIWb','_queueEmpty','4FGdmMn','push','completePromise','resolve','2783259JifKAw','_abortController','550344InEZkH','65117YLFpkM'];_0x4251=function(){return _0x367ff0;};return _0x4251();}function _0x3834(_0x36534a,_0x88db8e){const _0x425169=_0x4251();return _0x3834=function(_0x383407,_0x45650b){_0x383407=_0x383407-0x133;let _0x1c94d1=_0x425169[_0x383407];return _0x1c94d1;},_0x3834(_0x36534a,_0x88db8e);}const _0x2b4d95=_0x3834;(function(_0x24ef88,_0x1f110f){const _0x918638=_0x3834,_0x545980=_0x24ef88();while(!![]){try{const _0x9eaee=-parseInt(_0x918638(0x137))/0x1*(-parseInt(_0x918638(0x14c))/0x2)+-parseInt(_0x918638(0x14a))/0x3+parseInt(_0x918638(0x13f))/0x4+-parseInt(_0x918638(0x13c))/0x5*(-parseInt(_0x918638(0x143))/0x6)+parseInt(_0x918638(0x13d))/0x7+parseInt(_0x918638(0x136))/0x8+-parseInt(_0x918638(0x134))/0x9;if(_0x9eaee===_0x1f110f)break;else _0x545980['push'](_0x545980['shift']());}catch(_0x4d15e4){_0x545980['push'](_0x545980['shift']());}}}(_0x4251,0x2748d));import{EmitterMixin as _0x493896}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x493896(){[_0x2b4d95(0x13a)]=[];[_0x2b4d95(0x146)]=!0x1;[_0x2b4d95(0x135)];async[_0x2b4d95(0x147)](_0x5c6913){const _0x466a56=_0x2b4d95,_0x345580=this[_0x466a56(0x141)](_0x5c6913);return this[_0x466a56(0x13a)][_0x466a56(0x14d)](_0x345580),this[_0x466a56(0x13b)](),_0x345580[_0x466a56(0x14e)];}[_0x2b4d95(0x145)](){const _0x509d82=_0x2b4d95;this[_0x509d82(0x146)]&&(this[_0x509d82(0x135)][_0x509d82(0x145)](),this[_0x509d82(0x135)]=void 0x0,this[_0x509d82(0x13a)]=[],this[_0x509d82(0x144)](_0x509d82(0x14b)),this[_0x509d82(0x146)]=!0x1);}get[_0x2b4d95(0x13e)](){const _0x47efda=_0x2b4d95;return this[_0x47efda(0x13a)][_0x47efda(0x140)]||this[_0x47efda(0x146)]?new Promise(_0x23d2f3=>{const _0x4843c6=_0x47efda;this[_0x4843c6(0x148)](_0x4843c6(0x14b),()=>{_0x23d2f3();});}):Promise[_0x47efda(0x133)]();}async[_0x2b4d95(0x13b)](){const _0x173988=_0x2b4d95;if(!this[_0x173988(0x146)]){this[_0x173988(0x135)]=new AbortController(),this[_0x173988(0x146)]=!0x0;try{for(;this[_0x173988(0x13a)][_0x173988(0x140)]&&this[_0x173988(0x146)];){const _0x3f5063=this[_0x173988(0x13a)][_0x173988(0x139)]();try{await _0x3f5063[_0x173988(0x138)](this[_0x173988(0x135)][_0x173988(0x142)]),_0x3f5063[_0x173988(0x133)]();}catch(_0x52a3af){_0x3f5063[_0x173988(0x149)](_0x52a3af);}}}finally{this[_0x173988(0x146)]=!0x1,this[_0x173988(0x135)]=void 0x0;}this[_0x173988(0x144)](_0x173988(0x14b));}}[_0x2b4d95(0x141)](_0x3cdebe){let _0x315067,_0x51eae5;const _0x162fa0=new Promise((_0x4e1ae4,_0x3ace55)=>{_0x315067=_0x4e1ae4,_0x51eae5=_0x3ace55;});return{'callback':_0x3cdebe,'resolve':_0x315067,'reject':_0x51eae5,'completePromise':_0x162fa0};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x504ddc=_0x3a0b;function _0x2584(){var _0x3b971e=['76qNTSex','AIChatHistory','10635816YFsiLE','requires','isOfficialPlugin','511252zozlGi','1451675NndYlx','pluginName','7249925IfQUMg','5091032TxwBPc','215772tgBeqq','22985703aqCkuL','isPremiumPlugin','7RVPICK'];_0x2584=function(){return _0x3b971e;};return _0x2584();}(function(_0x1d39a6,_0x32cf9b){var _0x4a525c=_0x3a0b,_0x23fafa=_0x1d39a6();while(!![]){try{var _0x57509d=-parseInt(_0x4a525c(0x1be))/0x1+-parseInt(_0x4a525c(0x1bd))/0x2+parseInt(_0x4a525c(0x1b4))/0x3*(parseInt(_0x4a525c(0x1b8))/0x4)+parseInt(_0x4a525c(0x1b2))/0x5+parseInt(_0x4a525c(0x1ba))/0x6+-parseInt(_0x4a525c(0x1b7))/0x7*(-parseInt(_0x4a525c(0x1b3))/0x8)+-parseInt(_0x4a525c(0x1b5))/0x9;if(_0x57509d===_0x32cf9b)break;else _0x23fafa['push'](_0x23fafa['shift']());}catch(_0x2dbfcd){_0x23fafa['push'](_0x23fafa['shift']());}}}(_0x2584,0xeb6c0));import{ContextPlugin as _0x2d74d4}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0xb15046}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x3b1e0b}from'./aichathistoryui.js';function _0x3a0b(_0x313578,_0x4c9279){var _0x258490=_0x2584();return _0x3a0b=function(_0x3a0b4e,_0x4cf986){_0x3a0b4e=_0x3a0b4e-0x1b2;var _0x363891=_0x258490[_0x3a0b4e];return _0x363891;},_0x3a0b(_0x313578,_0x4c9279);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x2d74d4{static get[_0x504ddc(0x1bb)](){return[_0xb15046,_0x3b1e0b];}static get[_0x504ddc(0x1bf)](){var _0x393cd6=_0x504ddc;return _0x393cd6(0x1b9);}static get[_0x504ddc(0x1bc)](){return!0x0;}static get[_0x504ddc(0x1b6)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x241c53=_0x36d9;(function(_0x3fadf0,_0x46ddb6){const _0x5cbb25=_0x36d9,_0x4a2986=_0x3fadf0();while(!![]){try{const _0x5601fb=-parseInt(_0x5cbb25(0x1ff))/0x1*(-parseInt(_0x5cbb25(0x1e0))/0x2)+parseInt(_0x5cbb25(0x1f5))/0x3*(parseInt(_0x5cbb25(0x204))/0x4)+-parseInt(_0x5cbb25(0x21e))/0x5+parseInt(_0x5cbb25(0x1f8))/0x6*(parseInt(_0x5cbb25(0x23e))/0x7)+-parseInt(_0x5cbb25(0x21b))/0x8+parseInt(_0x5cbb25(0x1e8))/0x9*(-parseInt(_0x5cbb25(0x236))/0xa)+parseInt(_0x5cbb25(0x231))/0xb*(parseInt(_0x5cbb25(0x20a))/0xc);if(_0x5601fb===_0x46ddb6)break;else _0x4a2986['push'](_0x4a2986['shift']());}catch(_0x57b975){_0x4a2986['push'](_0x4a2986['shift']());}}}(_0x3536,0x25b89));import{ContextPlugin as _0xa39137}from'ckeditor5/src/core.js';function _0x3536(){const _0x27f091=['12Yfqotv','resizedTabs','requires','length','_setItemLoading','change:activeConversation','getItems','getGroupId','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','activateTab','selectConversation','chat','AI_CHAT_HISTORY_PIN_ACTION','_aiChatController','_handleHistoryErrorUI','AI_CHAT_HISTORY_ERROR_GENERIC','_showConversationHistory','1085600FZFkkr','updateItemTitle','removeItem','1309935RdXStG','remove','itemsLoaded','showError','openChat','context','unpin','updateItems','_handleSelectConversation','createdAt','setIsMaximized','loadConversation','removeConversation','AI_CHAT_HISTORY_UNPIN_ACTION','getMonth','updates','items','isOfficialPlugin','history','2021954xnqkDo','resizeTabs','get','editConversationTitle','_aiConnector','10aGxzdf','setLoadingSkeleton','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_generateErrorMessage','AI_CHAT_UNTITLED_CONVERSATION','view','_handleEditTitle','removeHistoryItem','28yUvqDF','plugins','itemUpdated','pin','loadItems','_clearItemLoading','updateItemLoadingState','setDate','init','handleRemovedConversation','4YAEZJd','push','getItem','isPremiumPlugin','map','setConversationPinned','operation','_setIsMaximized','1165797hVCxAO','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getDate','_aiChatHistoryUi','toLocaleDateString','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_CATEGORY_LATER','resize','itemId','AI_CHAT_HISTORY_CATEGORY_TODAY','rename','87TdBuvr','getFullYear','pinned','237234zkqTME','_updateHistoryItemsUI','activateTab:history','_handleTogglePin','locale','activeConversation','title','53428Xzbzjm','pluginName','listenTo','AIChatHistoryController','_handleRemove','32124VlnUEQ','itemRemoved','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','error','updateItemPinned','_getCategorizedItems'];_0x3536=function(){return _0x27f091;};return _0x3536();}import{AIConnector as _0x11534e}from'../aicore/aiconnector.js';import{AIChatController as _0x17c4ca}from'../aichat/aichatcontroller.js';import{AITabs as _0x2c7079}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4cf20e}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x836158}from'./model/aichathistoryconversations.js';import{getTranslation as _0x33b3d0}from'../aicore/utils/common-translations.js';function _0x36d9(_0x5b7086,_0x528a62){const _0x35362b=_0x3536();return _0x36d9=function(_0x36d942,_0x232fec){_0x36d942=_0x36d942-0x1e0;let _0x486e31=_0x35362b[_0x36d942];return _0x486e31;},_0x36d9(_0x5b7086,_0x528a62);}export class AIChatHistoryController extends _0xa39137{[_0x241c53(0x235)];[_0x241c53(0x1ed)];[_0x241c53(0x217)];static get[_0x241c53(0x20c)](){return[_0x11534e,_0x17c4ca,_0x4cf20e,_0x2c7079];}static get[_0x241c53(0x200)](){const _0x2565d6=_0x241c53;return _0x2565d6(0x202);}static get[_0x241c53(0x22f)](){return!0x0;}static get[_0x241c53(0x1e3)](){return!0x0;}[_0x241c53(0x246)](){const _0x5a63a3=_0x241c53;this[_0x5a63a3(0x235)]=this[_0x5a63a3(0x223)][_0x5a63a3(0x23f)][_0x5a63a3(0x233)](_0x11534e),this[_0x5a63a3(0x1ed)]=this[_0x5a63a3(0x223)][_0x5a63a3(0x23f)][_0x5a63a3(0x233)](_0x4cf20e),this[_0x5a63a3(0x217)]=this[_0x5a63a3(0x223)][_0x5a63a3(0x23f)][_0x5a63a3(0x233)](_0x17c4ca);const _0x36502c=this[_0x5a63a3(0x223)][_0x5a63a3(0x23f)][_0x5a63a3(0x233)](_0x2c7079);try{const _0x18d51c=this[_0x5a63a3(0x217)][_0x5a63a3(0x211)]();this[_0x5a63a3(0x230)]=new _0x836158({'connector':this[_0x5a63a3(0x235)],'group':_0x18d51c}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x1ed)],_0x5a63a3(0x22a),(_0x5cea42,_0xdc6770)=>{const _0x2715a9=_0x5a63a3;this[_0x2715a9(0x20e)](_0xdc6770['id'],_0x2715a9(0x21f)),this[_0x2715a9(0x203)](_0xdc6770['id']);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x1ed)],_0x5a63a3(0x234),(_0x52c300,_0xee3c4)=>{const _0x2aa745=_0x5a63a3;this[_0x2aa745(0x20e)](_0xee3c4['id'],_0x2aa745(0x1f4)),this[_0x2aa745(0x23c)](_0xee3c4['id'],_0xee3c4[_0x2aa745(0x1fe)]);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x230)],_0x5a63a3(0x240),(_0x3a496d,_0xc45ca3)=>{const _0x443689=_0x5a63a3;void 0x0!==_0xc45ca3[_0x443689(0x22d)][_0x443689(0x1fe)]&&this[_0x443689(0x1ed)][_0x443689(0x21c)](_0xc45ca3[_0x443689(0x1f2)],_0xc45ca3[_0x443689(0x22d)][_0x443689(0x1fe)]),void 0x0!==_0xc45ca3[_0x443689(0x22d)][_0x443689(0x1f7)]&&this[_0x443689(0x1f9)](),this[_0x443689(0x243)](_0xc45ca3[_0x443689(0x1f2)]);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x230)],_0x5a63a3(0x205),(_0x33b471,_0x9b8f14)=>{const _0x144fd7=_0x5a63a3;this[_0x144fd7(0x217)][_0x144fd7(0x247)](_0x9b8f14[_0x144fd7(0x1f2)]),this[_0x144fd7(0x1ed)][_0x144fd7(0x23d)](_0x9b8f14[_0x144fd7(0x1f2)]),this[_0x144fd7(0x243)](_0x9b8f14[_0x144fd7(0x1f2)]);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x230)],_0x5a63a3(0x220),()=>{const _0x30cd7d=_0x5a63a3;this[_0x30cd7d(0x1f9)]();}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x230)],_0x5a63a3(0x207),(_0x4dd98a,_0x4e76a2)=>{const _0x27f699=_0x5a63a3;this[_0x27f699(0x218)](_0x4e76a2[_0x27f699(0x207)],_0x4e76a2[_0x27f699(0x1e6)],_0x4e76a2[_0x27f699(0x1f2)]);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x1ed)],_0x5a63a3(0x214),(_0x5c18e5,_0x1837b0)=>{const _0x495456=_0x5a63a3;this[_0x495456(0x226)](_0x1837b0['id']);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x1ed)],_0x5a63a3(0x1e5),(_0x59cb38,_0x3cab5d)=>{const _0x24db13=_0x5a63a3,_0x3d3da7=_0x3cab5d[_0x24db13(0x1f7)]?_0x24db13(0x241):_0x24db13(0x224);this[_0x24db13(0x20e)](_0x3cab5d['id'],_0x3d3da7),this[_0x24db13(0x1fb)](_0x3cab5d['id'],_0x3cab5d[_0x24db13(0x1f7)]);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x1ed)],_0x5a63a3(0x222),()=>{const _0x5518a4=_0x5a63a3;_0x36502c[_0x5518a4(0x23b)][_0x5518a4(0x213)](_0x5518a4(0x215));}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x217)],_0x5a63a3(0x20f),()=>{const _0x188097=_0x5a63a3;this[_0x188097(0x1f9)]();}),_0x36502c[_0x5a63a3(0x23b)]['on'](_0x5a63a3(0x1fa),()=>{const _0x47eb50=_0x5a63a3;this[_0x47eb50(0x21a)]();}),this[_0x5a63a3(0x201)](_0x36502c,_0x5a63a3(0x20b),(_0x16ee63,_0x4bbabe)=>{const _0x4ba66a=_0x5a63a3;this[_0x4ba66a(0x1e7)](_0x4bbabe);}),this[_0x5a63a3(0x201)](this[_0x5a63a3(0x1ed)],_0x5a63a3(0x232),()=>{const _0x81b83d=_0x5a63a3;_0x36502c[_0x81b83d(0x1f1)]();});}catch(_0x534983){this[_0x5a63a3(0x218)](_0x534983,_0x5a63a3(0x246));}}async[_0x241c53(0x23c)](_0x32df0a,_0x2e3615){const _0x1d98e4=_0x241c53;await this[_0x1d98e4(0x230)][_0x1d98e4(0x21c)](_0x32df0a,_0x2e3615);}async[_0x241c53(0x1fb)](_0x438d68,_0x25b5e9){const _0x46d2cb=_0x241c53;await this[_0x46d2cb(0x230)][_0x46d2cb(0x208)](_0x438d68,_0x25b5e9);}async[_0x241c53(0x203)](_0x158661){const _0x4386c7=_0x241c53;await this[_0x4386c7(0x230)][_0x4386c7(0x21d)](_0x158661);}async[_0x241c53(0x226)](_0x5311b0){const _0x1677ad=_0x241c53;await this[_0x1677ad(0x217)][_0x1677ad(0x229)](_0x5311b0);}async[_0x241c53(0x21a)](){const _0x427960=_0x241c53;this[_0x427960(0x1ed)][_0x427960(0x221)](''),this[_0x427960(0x1ed)][_0x427960(0x237)](!0x0),await this[_0x427960(0x230)][_0x427960(0x246)](),this[_0x427960(0x1ed)][_0x427960(0x237)](!0x1);}[_0x241c53(0x1f9)](){const _0xc1a394=_0x241c53,_0x14160e=this[_0xc1a394(0x217)][_0xc1a394(0x1fd)]?.['id'],_0x27455a=this[_0xc1a394(0x209)]()[_0xc1a394(0x1e4)](_0x1f6092=>({'title':_0x1f6092[_0xc1a394(0x1fe)],'items':_0x1f6092[_0xc1a394(0x22e)][_0xc1a394(0x1e4)](_0x2a45d4=>({'id':_0x2a45d4['id'],'title':_0x2a45d4[_0xc1a394(0x1fe)]||_0x33b3d0(this[_0xc1a394(0x223)][_0xc1a394(0x1fc)],_0xc1a394(0x23a)),'createdAt':new Date(_0x2a45d4[_0xc1a394(0x227)])[_0xc1a394(0x1ee)](),'active':_0x2a45d4['id']===_0x14160e,'pinned':_0x2a45d4[_0xc1a394(0x1f7)]}))}));this[_0xc1a394(0x1ed)][_0xc1a394(0x225)](_0x27455a);}[_0x241c53(0x20e)](_0x485ba2,_0x190dc1){const _0x11548=_0x241c53;this[_0x11548(0x1ed)][_0x11548(0x244)](_0x485ba2,_0x190dc1,!0x0);}[_0x241c53(0x243)](_0x2ef349){const _0x20f53e=_0x241c53;this[_0x20f53e(0x1ed)][_0x20f53e(0x244)](_0x2ef349,null,!0x1);}[_0x241c53(0x218)](_0x34c5b0,_0x261a74,_0x3ffead){const _0x8f7c7b=_0x241c53,_0x3b9daa=this[_0x8f7c7b(0x239)](_0x261a74,_0x3ffead);this[_0x8f7c7b(0x1ed)][_0x8f7c7b(0x221)](_0x3b9daa),_0x3ffead&&this[_0x8f7c7b(0x243)](_0x3ffead),this[_0x8f7c7b(0x1ed)][_0x8f7c7b(0x237)](!0x1);}[_0x241c53(0x239)](_0x5751df,_0x15268c){const _0x4dbb94=_0x241c53,_0x349dfc=_0x15268c?this[_0x4dbb94(0x230)][_0x4dbb94(0x1e2)](_0x15268c):null,_0x2c445d=_0x349dfc?.[_0x4dbb94(0x1fe)]||_0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x4dbb94(0x23a));switch(_0x5751df){case _0x4dbb94(0x21c):return _0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x4dbb94(0x238),_0x2c445d);case _0x4dbb94(0x208):{const _0xaf0e9b=_0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x349dfc?.[_0x4dbb94(0x1f7)]?_0x4dbb94(0x22b):_0x4dbb94(0x216));return _0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x4dbb94(0x206),[_0xaf0e9b,_0x2c445d]);}case _0x4dbb94(0x21d):return _0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x4dbb94(0x212),_0x2c445d);case _0x4dbb94(0x246):case _0x4dbb94(0x242):return _0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x4dbb94(0x1ea));default:return _0x33b3d0(this[_0x4dbb94(0x223)][_0x4dbb94(0x1fc)],_0x4dbb94(0x219));}}[_0x241c53(0x209)](){const _0x2e19f4=_0x241c53,_0xf802c9=new Date(),_0x234fbb=new Date(_0xf802c9[_0x2e19f4(0x1f6)](),_0xf802c9[_0x2e19f4(0x22c)](),_0xf802c9[_0x2e19f4(0x1ec)]()),_0x6ac414=new Date(_0x234fbb);_0x6ac414[_0x2e19f4(0x245)](_0x6ac414[_0x2e19f4(0x1ec)]()-0x1);const _0x5bc3b1=new Date(_0x234fbb);_0x5bc3b1[_0x2e19f4(0x245)](_0x5bc3b1[_0x2e19f4(0x1ec)]()-0xe);const _0x24a105=this[_0x2e19f4(0x230)][_0x2e19f4(0x210)]({'pinned':!0x0}),_0x12d64e=this[_0x2e19f4(0x230)][_0x2e19f4(0x210)]({'from':_0x234fbb,'to':_0x234fbb}),_0x551b36=this[_0x2e19f4(0x230)][_0x2e19f4(0x210)]({'from':_0x6ac414,'to':_0x6ac414}),_0x2198d8=this[_0x2e19f4(0x230)][_0x2e19f4(0x210)]({'from':_0x5bc3b1,'to':_0x6ac414}),_0x29db7c=this[_0x2e19f4(0x230)][_0x2e19f4(0x210)]({'to':_0x5bc3b1}),_0x2df2ed=[];return _0x24a105[_0x2e19f4(0x20d)]>0x0&&_0x2df2ed[_0x2e19f4(0x1e1)]({'title':_0x33b3d0(this[_0x2e19f4(0x223)][_0x2e19f4(0x1fc)],_0x2e19f4(0x1e9)),'items':_0x24a105}),_0x12d64e[_0x2e19f4(0x20d)]>0x0&&_0x2df2ed[_0x2e19f4(0x1e1)]({'title':_0x33b3d0(this[_0x2e19f4(0x223)][_0x2e19f4(0x1fc)],_0x2e19f4(0x1f3)),'items':_0x12d64e}),_0x551b36[_0x2e19f4(0x20d)]>0x0&&_0x2df2ed[_0x2e19f4(0x1e1)]({'title':_0x33b3d0(this[_0x2e19f4(0x223)][_0x2e19f4(0x1fc)],_0x2e19f4(0x1eb)),'items':_0x551b36}),_0x2198d8[_0x2e19f4(0x20d)]>0x0&&_0x2df2ed[_0x2e19f4(0x1e1)]({'title':_0x33b3d0(this[_0x2e19f4(0x223)][_0x2e19f4(0x1fc)],_0x2e19f4(0x1ef)),'items':_0x2198d8}),_0x29db7c[_0x2e19f4(0x20d)]>0x0&&_0x2df2ed[_0x2e19f4(0x1e1)]({'title':_0x33b3d0(this[_0x2e19f4(0x223)][_0x2e19f4(0x1fc)],_0x2e19f4(0x1f0)),'items':_0x29db7c}),_0x2df2ed;}[_0x241c53(0x1e7)](_0x473f4b){const _0x533d87=_0x241c53;this[_0x533d87(0x1ed)][_0x533d87(0x228)](_0x473f4b);}}
|
|
23
|
+
const _0x51a1f7=_0x3c0b;function _0x3c0b(_0x120e56,_0x2c011a){const _0x56a668=_0x56a6();return _0x3c0b=function(_0x3c0beb,_0x28a002){_0x3c0beb=_0x3c0beb-0x1b5;let _0x519a79=_0x56a668[_0x3c0beb];return _0x519a79;},_0x3c0b(_0x120e56,_0x2c011a);}function _0x56a6(){const _0x476707=['map','8729820YBUQln','AIChatHistoryController','title','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_updateHistoryItemsUI','items','523398eQdKfP','itemsLoaded','_aiChatController','itemId','pin','AI_CHAT_HISTORY_UNPIN_ACTION','itemUpdated','setConversationPinned','getItems','_handleSelectConversation','3178436bbVDdq','updateItems','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','updates','toLocaleDateString','AI_CHAT_HISTORY_CATEGORY_PINNED','activateTab:history','_setItemLoading','remove','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','3763506bonkun','setDate','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_showConversationHistory','2mGrEff','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_setIsMaximized','_generateErrorMessage','_aiConnector','push','getMonth','history','resizeTabs','change:activeConversation','length','AI_CHAT_HISTORY_ERROR_GENERIC','init','_handleTogglePin','getFullYear','_handleHistoryErrorUI','removeConversation','updateItemPinned','4568792fJvwrk','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','isOfficialPlugin','pinned','AI_CHAT_HISTORY_PIN_ACTION','removeHistoryItem','editConversationTitle','activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','_getCategorizedItems','get','view','selectConversation','activateTab','_clearItemLoading','plugins','handleRemovedConversation','setIsMaximized','setLoadingSkeleton','5vmdJlS','rename','getDate','_handleEditTitle','isPremiumPlugin','33JNDkPh','chat','14wEfcLH','error','openChat','listenTo','showError','operation','_aiChatHistoryUi','173709njHdyV','resize','unpin','createdAt','_handleRemove','4478720GOseQM','pluginName','updateItemLoadingState','loadConversation','removeItem','loadItems','locale','resizedTabs','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','requires','context','getGroupId'];_0x56a6=function(){return _0x476707;};return _0x56a6();}(function(_0x2fad5b,_0x57bf1d){const _0x2d9475=_0x3c0b,_0x3468e3=_0x2fad5b();while(!![]){try{const _0x32f279=parseInt(_0x2d9475(0x1ee))/0x1+-parseInt(_0x2d9475(0x1ba))/0x2*(parseInt(_0x2d9475(0x1b6))/0x3)+parseInt(_0x2d9475(0x211))/0x4+parseInt(_0x2d9475(0x1e0))/0x5*(-parseInt(_0x2d9475(0x207))/0x6)+-parseInt(_0x2d9475(0x1e7))/0x7*(parseInt(_0x2d9475(0x1cc))/0x8)+parseInt(_0x2d9475(0x201))/0x9+-parseInt(_0x2d9475(0x1f3))/0xa*(-parseInt(_0x2d9475(0x1e5))/0xb);if(_0x32f279===_0x57bf1d)break;else _0x3468e3['push'](_0x3468e3['shift']());}catch(_0xf49bc8){_0x3468e3['push'](_0x3468e3['shift']());}}}(_0x56a6,0xc2d1d));import{ContextPlugin as _0x2d9838}from'ckeditor5/src/core.js';import{AIConnector as _0x489acc}from'../aicore/aiconnector.js';import{AIChatController as _0x2a0d6f}from'../aichat/aichatcontroller.js';import{AITabs as _0x2ae8e1}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3c49f1}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5acba3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x455c22}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2d9838{[_0x51a1f7(0x1be)];[_0x51a1f7(0x1ed)];[_0x51a1f7(0x209)];static get[_0x51a1f7(0x1fd)](){return[_0x489acc,_0x2a0d6f,_0x3c49f1,_0x2ae8e1];}static get[_0x51a1f7(0x1f4)](){const _0x4f387c=_0x51a1f7;return _0x4f387c(0x202);}static get[_0x51a1f7(0x1ce)](){return!0x0;}static get[_0x51a1f7(0x1e4)](){return!0x0;}[_0x51a1f7(0x1c6)](){const _0xfca785=_0x51a1f7;this[_0xfca785(0x1be)]=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x489acc),this[_0xfca785(0x1ed)]=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x3c49f1),this[_0xfca785(0x209)]=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x2a0d6f);const _0x463308=this[_0xfca785(0x1fe)][_0xfca785(0x1dc)][_0xfca785(0x1d7)](_0x2ae8e1);try{const _0x583bda=this[_0xfca785(0x209)][_0xfca785(0x1ff)]();this[_0xfca785(0x1c1)]=new _0x5acba3({'connector':this[_0xfca785(0x1be)],'group':_0x583bda}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1ca),(_0x47d12d,_0x398864)=>{const _0x387c78=_0xfca785;this[_0x387c78(0x219)](_0x398864['id'],_0x387c78(0x21a)),this[_0x387c78(0x1f2)](_0x398864['id']);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1d2),(_0x3ab4e5,_0x18255c)=>{const _0x33b9fd=_0xfca785;this[_0x33b9fd(0x219)](_0x18255c['id'],_0x33b9fd(0x1e1)),this[_0x33b9fd(0x1e3)](_0x18255c['id'],_0x18255c[_0x33b9fd(0x203)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x20d),(_0x2a4817,_0x446ba9)=>{const _0x8fba74=_0xfca785;void 0x0!==_0x446ba9[_0x8fba74(0x215)][_0x8fba74(0x203)]&&this[_0x8fba74(0x1ed)][_0x8fba74(0x1d5)](_0x446ba9[_0x8fba74(0x20a)],_0x446ba9[_0x8fba74(0x215)][_0x8fba74(0x203)]),void 0x0!==_0x446ba9[_0x8fba74(0x215)][_0x8fba74(0x1cf)]&&this[_0x8fba74(0x205)](),this[_0x8fba74(0x1db)](_0x446ba9[_0x8fba74(0x20a)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x1fc),(_0x440001,_0x80aeaf)=>{const _0x44610c=_0xfca785;this[_0x44610c(0x209)][_0x44610c(0x1dd)](_0x80aeaf[_0x44610c(0x20a)]),this[_0x44610c(0x1ed)][_0x44610c(0x1d1)](_0x80aeaf[_0x44610c(0x20a)]),this[_0x44610c(0x1db)](_0x80aeaf[_0x44610c(0x20a)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x208),()=>{const _0x574e0d=_0xfca785;this[_0x574e0d(0x205)]();}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1c1)],_0xfca785(0x1e8),(_0x1d927a,_0x313fa9)=>{const _0x29a1db=_0xfca785;this[_0x29a1db(0x1c9)](_0x313fa9[_0x29a1db(0x1e8)],_0x313fa9[_0x29a1db(0x1ec)],_0x313fa9[_0x29a1db(0x20a)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1d9),(_0x217e65,_0x3b14d4)=>{const _0x13b55f=_0xfca785;this[_0x13b55f(0x210)](_0x3b14d4['id']);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x20e),(_0x5565b3,_0x1e99f8)=>{const _0x2ad39b=_0xfca785,_0x6e53a1=_0x1e99f8[_0x2ad39b(0x1cf)]?_0x2ad39b(0x20b):_0x2ad39b(0x1f0);this[_0x2ad39b(0x219)](_0x1e99f8['id'],_0x6e53a1),this[_0x2ad39b(0x1c7)](_0x1e99f8['id'],_0x1e99f8[_0x2ad39b(0x1cf)]);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1e9),()=>{const _0x2f945d=_0xfca785;_0x463308[_0x2f945d(0x1d8)][_0x2f945d(0x1da)](_0x2f945d(0x1e6));}),this[_0xfca785(0x1ea)](this[_0xfca785(0x209)],_0xfca785(0x1c3),()=>{const _0x331119=_0xfca785;this[_0x331119(0x205)]();}),_0x463308[_0xfca785(0x1d8)]['on'](_0xfca785(0x218),()=>{const _0x18d208=_0xfca785;this[_0x18d208(0x1b9)]();}),this[_0xfca785(0x1ea)](_0x463308,_0xfca785(0x1fa),(_0xc432b3,_0x41eba2)=>{const _0x268c06=_0xfca785;this[_0x268c06(0x1bc)](_0x41eba2);}),this[_0xfca785(0x1ea)](this[_0xfca785(0x1ed)],_0xfca785(0x1c2),()=>{const _0x1bcace=_0xfca785;_0x463308[_0x1bcace(0x1ef)]();});}catch(_0x3a041b){this[_0xfca785(0x1c9)](_0x3a041b,_0xfca785(0x1c6));}}async[_0x51a1f7(0x1e3)](_0x297775,_0xd5ae38){const _0x2f5cbe=_0x51a1f7;await this[_0x2f5cbe(0x1c1)][_0x2f5cbe(0x1d5)](_0x297775,_0xd5ae38);}async[_0x51a1f7(0x1c7)](_0x2d4c97,_0x4d4e3e){const _0x2b71ba=_0x51a1f7;await this[_0x2b71ba(0x1c1)][_0x2b71ba(0x1cb)](_0x2d4c97,_0x4d4e3e);}async[_0x51a1f7(0x1f2)](_0x29584c){const _0x23a3d7=_0x51a1f7;await this[_0x23a3d7(0x1c1)][_0x23a3d7(0x1f7)](_0x29584c);}async[_0x51a1f7(0x210)](_0x4b7535){const _0x2d09f3=_0x51a1f7;await this[_0x2d09f3(0x209)][_0x2d09f3(0x1f6)](_0x4b7535);}async[_0x51a1f7(0x1b9)](){const _0x35d21b=_0x51a1f7;this[_0x35d21b(0x1ed)][_0x35d21b(0x1eb)](''),this[_0x35d21b(0x1ed)][_0x35d21b(0x1df)](!0x0),await this[_0x35d21b(0x1c1)][_0x35d21b(0x1c6)](),this[_0x35d21b(0x1ed)][_0x35d21b(0x1df)](!0x1);}[_0x51a1f7(0x205)](){const _0x277a5a=_0x51a1f7,_0x9d0b7e=this[_0x277a5a(0x209)][_0x277a5a(0x1d3)]?.['id'],_0xa8b498=this[_0x277a5a(0x1d6)]()[_0x277a5a(0x200)](_0x1da831=>({'title':_0x1da831[_0x277a5a(0x203)],'items':_0x1da831[_0x277a5a(0x206)][_0x277a5a(0x200)](_0x51b4ac=>({'id':_0x51b4ac['id'],'title':_0x51b4ac[_0x277a5a(0x203)]||_0x455c22(this[_0x277a5a(0x1fe)][_0x277a5a(0x1f9)],_0x277a5a(0x1fb)),'createdAt':new Date(_0x51b4ac[_0x277a5a(0x1f1)])[_0x277a5a(0x216)](),'active':_0x51b4ac['id']===_0x9d0b7e,'pinned':_0x51b4ac[_0x277a5a(0x1cf)]}))}));this[_0x277a5a(0x1ed)][_0x277a5a(0x212)](_0xa8b498);}[_0x51a1f7(0x219)](_0x24a406,_0x3d66ff){const _0x333ed7=_0x51a1f7;this[_0x333ed7(0x1ed)][_0x333ed7(0x1f5)](_0x24a406,_0x3d66ff,!0x0);}[_0x51a1f7(0x1db)](_0x976352){const _0x1863df=_0x51a1f7;this[_0x1863df(0x1ed)][_0x1863df(0x1f5)](_0x976352,null,!0x1);}[_0x51a1f7(0x1c9)](_0x1d8851,_0x13cf91,_0x3a9764){const _0x1b1c78=_0x51a1f7,_0x14fe7b=this[_0x1b1c78(0x1bd)](_0x13cf91,_0x3a9764);this[_0x1b1c78(0x1ed)][_0x1b1c78(0x1eb)](_0x14fe7b),_0x3a9764&&this[_0x1b1c78(0x1db)](_0x3a9764),this[_0x1b1c78(0x1ed)][_0x1b1c78(0x1df)](!0x1);}[_0x51a1f7(0x1bd)](_0x46f415,_0x35b62d){const _0x11cefb=_0x51a1f7,_0x2549d4=_0x35b62d?this[_0x11cefb(0x1c1)][_0x11cefb(0x213)](_0x35b62d):null,_0x661c5a=_0x2549d4?.[_0x11cefb(0x203)]||_0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1fb));switch(_0x46f415){case _0x11cefb(0x1d5):return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1b5),_0x661c5a);case _0x11cefb(0x1cb):{const _0x35163d=_0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x2549d4?.[_0x11cefb(0x1cf)]?_0x11cefb(0x20c):_0x11cefb(0x1d0));return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1bb),[_0x35163d,_0x661c5a]);}case _0x11cefb(0x1f7):return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1d4),_0x661c5a);case _0x11cefb(0x1c6):case _0x11cefb(0x1f8):return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x204));default:return _0x455c22(this[_0x11cefb(0x1fe)][_0x11cefb(0x1f9)],_0x11cefb(0x1c5));}}[_0x51a1f7(0x1d6)](){const _0x22395f=_0x51a1f7,_0x589090=new Date(),_0x132790=new Date(_0x589090[_0x22395f(0x1c8)](),_0x589090[_0x22395f(0x1c0)](),_0x589090[_0x22395f(0x1e2)]()),_0x14c760=new Date(_0x132790);_0x14c760[_0x22395f(0x1b7)](_0x14c760[_0x22395f(0x1e2)]()-0x1);const _0x16acdd=new Date(_0x132790);_0x16acdd[_0x22395f(0x1b7)](_0x16acdd[_0x22395f(0x1e2)]()-0xe);const _0x1aef5c=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'pinned':!0x0}),_0x5d6efe=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'from':_0x132790,'to':_0x132790}),_0x30d6c5=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'from':_0x14c760,'to':_0x14c760}),_0x2fe0be=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'from':_0x16acdd,'to':_0x14c760}),_0x447bde=this[_0x22395f(0x1c1)][_0x22395f(0x20f)]({'to':_0x16acdd}),_0x3c8dea=[];return _0x1aef5c[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x217)),'items':_0x1aef5c}),_0x5d6efe[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x21b)),'items':_0x5d6efe}),_0x30d6c5[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x1b8)),'items':_0x30d6c5}),_0x2fe0be[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x1cd)),'items':_0x2fe0be}),_0x447bde[_0x22395f(0x1c4)]>0x0&&_0x3c8dea[_0x22395f(0x1bf)]({'title':_0x455c22(this[_0x22395f(0x1fe)][_0x22395f(0x1f9)],_0x22395f(0x214)),'items':_0x447bde}),_0x3c8dea;}[_0x51a1f7(0x1bc)](_0x249676){const _0x48688c=_0x51a1f7;this[_0x48688c(0x1ed)][_0x48688c(0x1de)](_0x249676);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbda632=_0x29a2;(function(_0x5b3368,_0x4652fa){const _0x380784=_0x29a2,_0x1aea7f=_0x5b3368();while(!![]){try{const _0x5a032b=parseInt(_0x380784(0x1d7))/0x1+parseInt(_0x380784(0x1e0))/0x2*(parseInt(_0x380784(0x1be))/0x3)+-parseInt(_0x380784(0x1d4))/0x4*(-parseInt(_0x380784(0x1b6))/0x5)+parseInt(_0x380784(0x1d2))/0x6*(-parseInt(_0x380784(0x1e3))/0x7)+parseInt(_0x380784(0x1d1))/0x8+parseInt(_0x380784(0x1df))/0x9+-parseInt(_0x380784(0x1db))/0xa;if(_0x5a032b===_0x4652fa)break;else _0x1aea7f['push'](_0x1aea7f['shift']());}catch(_0x5b0d9c){_0x1aea7f['push'](_0x1aea7f['shift']());}}}(_0x33ed,0x9f0ee));import{ContextPlugin as _0x518672}from'ckeditor5/src/core.js';import{AITabs as _0x5ab127}from'../aitabs/aitabs.js';import{IconAIHistory as _0x4e9a13}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x38406e}from'./ui/aichathistoryview.js';function _0x33ed(){const _0x22399c=['removeConversation','showError','locale','isLoading','requires','updateItemLoadingState','AIChatHistoryUI','setConversationPinned','showResizeButton','resizeTabs','updateItemTitle','pluginName','context','isOfficialPlugin','updateHistoryItemsWithCategories','4191704PCJdfH','16746pKeodl','setIsMaximized','90344BBqToI','editConversationTitle','AI_CHAT_HISTORY_HEADING','232414RAivKk','addTab','_historyView','updateItems','25298060tLIWFz','errorMessage','isMaximized','plugins','5565600HtOIht','14nrNsVZ','showConversationHistory','setLoadingSkeleton','987aIMXsz','250EyMqAl','view','AITabs','isPremiumPlugin','openChat','history','get','removeHistoryItem','458898QajRXB','selectConversation','hideError','delegate'];_0x33ed=function(){return _0x22399c;};return _0x33ed();}import{getTranslation as _0x311d4d}from'../aicore/utils/common-translations.js';function _0x29a2(_0x235532,_0x21094e){const _0x33ed10=_0x33ed();return _0x29a2=function(_0x29a2af,_0x19a2f3){_0x29a2af=_0x29a2af-0x1b6;let _0x5ee600=_0x33ed10[_0x29a2af];return _0x5ee600;},_0x29a2(_0x235532,_0x21094e);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0xbda632(0x1e1),_0xbda632(0x1c2),_0xbda632(0x1d5),_0xbda632(0x1c9),_0xbda632(0x1bf),_0xbda632(0x1ba),_0xbda632(0x1cb)];export class AIChatHistoryUI extends _0x518672{static get[_0xbda632(0x1c6)](){return[_0x5ab127];}[_0xbda632(0x1d9)];static get[_0xbda632(0x1cd)](){const _0x3dcf8f=_0xbda632;return _0x3dcf8f(0x1c8);}static get[_0xbda632(0x1cf)](){return!0x0;}static get[_0xbda632(0x1b9)](){return!0x0;}constructor(_0x2a16b3){const _0x260424=_0xbda632;super(_0x2a16b3);const _0x5ce7b6=this[_0x260424(0x1ce)][_0x260424(0x1de)][_0x260424(0x1bc)](_0x260424(0x1b8));this[_0x260424(0x1d9)]=new _0x38406e(this[_0x260424(0x1ce)][_0x260424(0x1c4)],_0x5ce7b6[_0x260424(0x1ca)]),this[_0x260424(0x1d9)][_0x260424(0x1c1)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x5ce7b6[_0x260424(0x1b7)][_0x260424(0x1d8)]({'id':_0x260424(0x1bb),'buttonLabel':_0x311d4d(this[_0x260424(0x1ce)][_0x260424(0x1c4)],_0x260424(0x1d6)),'buttonIcon':_0x4e9a13,'order':0x0,'content':this[_0x260424(0x1d9)]});}[_0xbda632(0x1bd)](_0x2aaf3d){const _0x2a89d7=_0xbda632;this[_0x2a89d7(0x1d9)][_0x2a89d7(0x1bd)](_0x2aaf3d);}[_0xbda632(0x1da)](_0x386778){const _0x3ae048=_0xbda632;this[_0x3ae048(0x1d9)][_0x3ae048(0x1d0)](_0x386778);}[_0xbda632(0x1cc)](_0x560fc4,_0x59a0e6){const _0x542101=_0xbda632;this[_0x542101(0x1d9)][_0x542101(0x1cc)](_0x560fc4,_0x59a0e6);}[_0xbda632(0x1c7)](_0x4661be,_0x334d15,_0x4d8d16){const _0x2da4bd=_0xbda632;this[_0x2da4bd(0x1d9)][_0x2da4bd(0x1c7)](_0x4661be,_0x334d15,_0x4d8d16);}[_0xbda632(0x1e2)](_0x3614d5){const _0x1379f0=_0xbda632;this[_0x1379f0(0x1d9)][_0x1379f0(0x1c5)]=_0x3614d5;}[_0xbda632(0x1c3)](_0x239d14){const _0x4a8666=_0xbda632;this[_0x4a8666(0x1d9)][_0x4a8666(0x1dc)]=_0x239d14;}[_0xbda632(0x1c0)](){const _0x4fb8a3=_0xbda632;this[_0x4fb8a3(0x1d9)][_0x4fb8a3(0x1dc)]='';}[_0xbda632(0x1d3)](_0x830177){const _0x5ea8c6=_0xbda632;this[_0x5ea8c6(0x1d9)][_0x5ea8c6(0x1dd)]=_0x830177;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x35ae(){const _0x337732=['removeItem','192138QQLMlj','getFullYear','init','updateConversation','getConversations','getTime','getResult','getMonth','12yeEEmr','844UcNHRJ','234VkJgum','pinned','from','updatePinned','findIndex','deleteConversation','30quuoPg','execute','loadItems','splice','itemsLoaded','1715728DPuwKw','itemRemoved','map','createdAt','415PBqRKD','items','6462RYDgre','getItem','find','group','push','890793LfLGSp','fire','updateTitle','itemUpdated','11255288uXWGvP','fetchConversations','updateItemPinned','addItem','826294NLrwsu','connector','error','getItems','updateItemTitle','filter','getDate'];_0x35ae=function(){return _0x337732;};return _0x35ae();}const _0x491442=_0x3a0a;(function(_0x48b131,_0x5d6b2c){const _0x1a8f28=_0x3a0a,_0x1919ee=_0x48b131();while(!![]){try{const _0x39f6e8=parseInt(_0x1a8f28(0xc4))/0x1+parseInt(_0x1a8f28(0xdf))/0x2*(parseInt(_0x1a8f28(0xce))/0x3)+parseInt(_0x1a8f28(0xcd))/0x4*(-parseInt(_0x1a8f28(0xdd))/0x5)+-parseInt(_0x1a8f28(0xcc))/0x6*(-parseInt(_0x1a8f28(0xec))/0x7)+parseInt(_0x1a8f28(0xd9))/0x8+parseInt(_0x1a8f28(0xe4))/0x9*(parseInt(_0x1a8f28(0xd4))/0xa)+-parseInt(_0x1a8f28(0xe8))/0xb;if(_0x39f6e8===_0x5d6b2c)break;else _0x1919ee['push'](_0x1919ee['shift']());}catch(_0x45b8cf){_0x1919ee['push'](_0x1919ee['shift']());}}}(_0x35ae,0x24d84));import{EmitterMixin as _0x3f2120}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x101a3c}from'./aichathistoryitem.js';function _0x3a0a(_0x21fd53,_0x3106c4){const _0x35ae08=_0x35ae();return _0x3a0a=function(_0x3a0a33,_0x2797b4){_0x3a0a33=_0x3a0a33-0xc2;let _0x22a8e8=_0x35ae08[_0x3a0a33];return _0x22a8e8;},_0x3a0a(_0x21fd53,_0x3106c4);}export class AIChatHistoryConversations extends _0x3f2120(){[_0x491442(0xde)]=[];[_0x491442(0xed)];[_0x491442(0xe2)];constructor({connector:_0x5c4d13,group:_0x55fa88}){const _0x2d2b10=_0x491442;super(),this[_0x2d2b10(0xed)]=_0x5c4d13,this[_0x2d2b10(0xe2)]=_0x55fa88;}async[_0x491442(0xc6)](){const _0x1a1915=_0x491442;try{const _0x262da9=this[_0x1a1915(0xed)][_0x1a1915(0xe9)](this[_0x1a1915(0xe2)]),_0x266d2a=await _0x262da9[_0x1a1915(0xc8)]();this[_0x1a1915(0xd6)](_0x266d2a);}catch(_0x5f408e){this[_0x1a1915(0xe5)](_0x1a1915(0xee),{'error':_0x5f408e,'operation':_0x1a1915(0xc6)});}}[_0x491442(0xeb)](_0x271bf1){const _0x5f57a6=_0x491442;this[_0x5f57a6(0xde)][_0x5f57a6(0xe3)](_0x271bf1);}async[_0x491442(0xc3)](_0x56c238){const _0x58904e=_0x491442,_0x169077=this[_0x58904e(0xde)][_0x58904e(0xd2)](_0x1ba240=>_0x1ba240['id']===_0x56c238);if(-0x1===_0x169077)return!0x1;try{return await this[_0x58904e(0xed)][_0x58904e(0xd3)](_0x56c238)[_0x58904e(0xd5)](),this[_0x58904e(0xde)][_0x58904e(0xd7)](_0x169077,0x1),this[_0x58904e(0xe5)](_0x58904e(0xda),{'itemId':_0x56c238}),!0x0;}catch(_0x585093){return this[_0x58904e(0xe5)](_0x58904e(0xee),{'error':_0x585093,'operation':_0x58904e(0xc3),'itemId':_0x56c238}),!0x1;}}[_0x491442(0xe0)](_0x53c24a){const _0x8abcff=_0x491442;return this[_0x8abcff(0xde)][_0x8abcff(0xe1)](_0x3ad66d=>_0x3ad66d['id']===_0x53c24a);}async[_0x491442(0xf0)](_0x36941f,_0x1b59a1){const _0x1ef7a6=_0x491442,_0x4fb656=this[_0x1ef7a6(0xe0)](_0x36941f);if(!_0x4fb656)return!0x1;try{return await this[_0x1ef7a6(0xed)][_0x1ef7a6(0xc7)](_0x36941f,{'title':_0x1b59a1})[_0x1ef7a6(0xca)](),_0x4fb656[_0x1ef7a6(0xe6)](_0x1b59a1),this[_0x1ef7a6(0xe5)](_0x1ef7a6(0xe7),{'itemId':_0x36941f,'updates':{'title':_0x1b59a1}}),!0x0;}catch(_0x54903c){return this[_0x1ef7a6(0xe5)](_0x1ef7a6(0xee),{'error':_0x54903c,'operation':_0x1ef7a6(0xf0),'itemId':_0x36941f}),!0x1;}}async[_0x491442(0xea)](_0x4eeb8b,_0x2edb9d){const _0x5cc5f4=_0x491442,_0x3d4b01=this[_0x5cc5f4(0xe0)](_0x4eeb8b);if(!_0x3d4b01)return!0x1;try{return await this[_0x5cc5f4(0xed)][_0x5cc5f4(0xc7)](_0x4eeb8b,{'pinned':_0x2edb9d})[_0x5cc5f4(0xca)](),_0x3d4b01[_0x5cc5f4(0xd1)](_0x2edb9d),this[_0x5cc5f4(0xe5)](_0x5cc5f4(0xe7),{'itemId':_0x4eeb8b,'updates':{'pinned':_0x2edb9d}}),!0x0;}catch(_0x3c1daa){return this[_0x5cc5f4(0xe5)](_0x5cc5f4(0xee),{'error':_0x3c1daa,'operation':_0x5cc5f4(0xea),'itemId':_0x4eeb8b}),!0x1;}}[_0x491442(0xd6)](_0xb5ff34){const _0x20a7c4=_0x491442;try{this[_0x20a7c4(0xde)]=[],_0xb5ff34[_0x20a7c4(0xdb)](_0xfa1c37=>{const _0xc4b1cf=_0x20a7c4;this[_0xc4b1cf(0xeb)](new _0x101a3c(_0xfa1c37));}),this[_0x20a7c4(0xe5)](_0x20a7c4(0xd8),{'items':[...this[_0x20a7c4(0xde)]]});}catch(_0x33a2fd){this[_0x20a7c4(0xe5)](_0x20a7c4(0xee),{'error':_0x33a2fd,'operation':_0x20a7c4(0xd6)});}}[_0x491442(0xef)](_0x2ea8d5={}){const _0x1c328d=_0x491442,_0x31326a=void 0x0!==_0x2ea8d5[_0x1c328d(0xcf)]&&_0x2ea8d5[_0x1c328d(0xcf)],_0x4e2d0b=_0x2ea8d5[_0x1c328d(0xd0)]?new Date(_0x2ea8d5[_0x1c328d(0xd0)][_0x1c328d(0xc5)](),_0x2ea8d5[_0x1c328d(0xd0)][_0x1c328d(0xcb)](),_0x2ea8d5[_0x1c328d(0xd0)][_0x1c328d(0xc2)]()):null,_0xcd254f=_0x2ea8d5['to']?new Date(_0x2ea8d5['to'][_0x1c328d(0xc5)](),_0x2ea8d5['to'][_0x1c328d(0xcb)](),_0x2ea8d5['to'][_0x1c328d(0xc2)]()):null;return this[_0x1c328d(0xde)][_0x1c328d(0xf1)](_0x8d00dd=>{const _0xe9c469=_0x1c328d;if(_0x8d00dd[_0xe9c469(0xcf)]!==_0x31326a)return!0x1;if(_0xcd254f){const _0x50f288=new Date(_0x8d00dd[_0xe9c469(0xdc)][_0xe9c469(0xc5)](),_0x8d00dd[_0xe9c469(0xdc)][_0xe9c469(0xcb)](),_0x8d00dd[_0xe9c469(0xdc)][_0xe9c469(0xc2)]());return _0x4e2d0b?_0x4e2d0b[_0xe9c469(0xc9)]()===_0xcd254f[_0xe9c469(0xc9)]()?_0x50f288[_0xe9c469(0xc9)]()===_0x4e2d0b[_0xe9c469(0xc9)]():_0x50f288<_0xcd254f&&_0x50f288>=_0x4e2d0b:_0x50f288<_0xcd254f;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5430(_0x1b26f2,_0x17ba28){var _0x5f4662=_0x5f46();return _0x5430=function(_0x54305e,_0xfd25a3){_0x54305e=_0x54305e-0x168;var _0x23e073=_0x5f4662[_0x54305e];return _0x23e073;},_0x5430(_0x1b26f2,_0x17ba28);}var _0x10177e=_0x5430;(function(_0x54d873,_0x50c2b0){var _0x389588=_0x5430,_0x47bc9f=_0x54d873();while(!![]){try{var _0x383b24=-parseInt(_0x389588(0x171))/0x1+parseInt(_0x389588(0x178))/0x2*(parseInt(_0x389588(0x169))/0x3)+-parseInt(_0x389588(0x16c))/0x4+parseInt(_0x389588(0x175))/0x5*(parseInt(_0x389588(0x177))/0x6)+-parseInt(_0x389588(0x173))/0x7+-parseInt(_0x389588(0x176))/0x8+-parseInt(_0x389588(0x16d))/0x9*(-parseInt(_0x389588(0x16a))/0xa);if(_0x383b24===_0x50c2b0)break;else _0x47bc9f['push'](_0x47bc9f['shift']());}catch(_0x2a44c0){_0x47bc9f['push'](_0x47bc9f['shift']());}}}(_0x5f46,0xbc3ff));import{ObservableMixin as _0x553e3d}from'ckeditor5/src/utils.js';function _0x5f46(){var _0x407c35=['8155aibtIn','9783824qslLgb','1314PAKcXQ','2018IVHmaC','set','4398pPVFad','8251090WNWAYE','updatePinned','1857164RhPYgq','18sryQzN','updateTitle','updatedAt','createdAt','264088yslHyz','title','5349211ZxkwRM','pinned'];_0x5f46=function(){return _0x407c35;};return _0x5f46();}import{escape as _0x1a1b21}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x553e3d(){['id'];[_0x10177e(0x170)];constructor({id:_0x5aafba,title:_0x9763ba,createdAt:_0x2ac44c,updatedAt:_0x529a1a,pinned:_0x4d5e8b}){var _0x481cae=_0x10177e;super(),this['id']=_0x5aafba,this[_0x481cae(0x170)]=new Date(_0x2ac44c),this[_0x481cae(0x168)](_0x481cae(0x172),_0x9763ba),this[_0x481cae(0x168)](_0x481cae(0x16f),_0x529a1a?new Date(_0x529a1a):null),this[_0x481cae(0x168)](_0x481cae(0x174),_0x4d5e8b||!0x1);}[_0x10177e(0x16e)](_0x3bac17){var _0x519d6e=_0x10177e;this[_0x519d6e(0x168)](_0x519d6e(0x172),_0x1a1b21(_0x3bac17)),this[_0x519d6e(0x16f)]=new Date();}[_0x10177e(0x16b)](_0x98a8db){var _0x3b7225=_0x10177e;this[_0x3b7225(0x168)](_0x3b7225(0x174),_0x98a8db),this[_0x3b7225(0x16f)]=new Date();}}
|