@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.2
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 _0x3ea27d,IconView as _0xf75ca0,LabeledFieldView as _0x3e2b58,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x524c70,IconCancel as _0x335cb6}from'ckeditor5/src/icons.js';import{getTranslation as _0x12e5af}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x3e2b58{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x50c41b){const t=_0x50c41b['t'],_0x453547={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x12e5af(_0x50c41b,'AI_CHAT_SEARCH_RESOURCES')};super(_0x50c41b,_0x453547['creator']),this['label']=_0x453547['label'],this['_viewConfig']=_0x453547,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x50c41b,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x3f194c){this['fire']('search',_0x3f194c);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0xf75ca0(),this['iconView']['content']=_0x524c70,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x41b386,t){this['resetButtonView']=new _0x3ea27d(_0x41b386),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x335cb6,'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',_0x530bdb=>!_0x530bdb),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 _0x501fb6=_0x500e;(function(_0x3e9709,_0x1bd045){const _0x143c88=_0x500e,_0x22e018=_0x3e9709();while(!![]){try{const _0x2bb9c9=-parseInt(_0x143c88(0x164))/0x1*(parseInt(_0x143c88(0x14e))/0x2)+-parseInt(_0x143c88(0x161))/0x3*(parseInt(_0x143c88(0x15e))/0x4)+-parseInt(_0x143c88(0x15d))/0x5+-parseInt(_0x143c88(0x151))/0x6+-parseInt(_0x143c88(0x15c))/0x7+parseInt(_0x143c88(0x150))/0x8+parseInt(_0x143c88(0x15a))/0x9*(parseInt(_0x143c88(0x153))/0xa);if(_0x2bb9c9===_0x1bd045)break;else _0x22e018['push'](_0x22e018['shift']());}catch(_0x5366e4){_0x22e018['push'](_0x22e018['shift']());}}}(_0xc3e4,0xbed8f));import{View as _0x58d89a}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x6203ab}from'../controls/aichatcontextitembuttonview.js';function _0x500e(_0x3878ac,_0x50ba9e){const _0xc3e4b1=_0xc3e4();return _0x500e=function(_0x500ed9,_0x35d1a8){_0x500ed9=_0x500ed9-0x149;let _0x2166c1=_0xc3e4b1[_0x500ed9];return _0x2166c1;},_0x500e(_0x3878ac,_0x50ba9e);}import{AIChatChipsOverflowManager as _0x53fe93}from'../controls/aichatchipsoverflowmanager.js';const oc=_0x501fb6(0x159),rc=_0x501fb6(0x168),nc=_0x501fb6(0x14c),Xo=_0x501fb6(0x158),$o=_0x501fb6(0x163),Wo=_0x501fb6(0x157);export class AIChatFeedContextChipsView extends _0x58d89a{[_0x501fb6(0x156)]=this[_0x501fb6(0x14d)]();[_0x501fb6(0x165)];[_0x501fb6(0x155)];constructor(_0x57cb6e,_0x377a0b,_0x18c2c6){const _0x3af410=_0x501fb6;super(_0x57cb6e),this[_0x3af410(0x155)]=_0x18c2c6,this[_0x3af410(0x149)](_0x377a0b);const _0x422250={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':nc,'controlsButton':Xo}};this[_0x3af410(0x165)]=new _0x53fe93(_0x57cb6e,this[_0x3af410(0x156)],_0x422250,this[_0x3af410(0x155)],this),this[_0x3af410(0x15f)]({'tag':_0x3af410(0x154),'attributes':{'class':[oc,'ck',_0x3af410(0x152)]},'children':[{'tag':_0x3af410(0x154),'attributes':{'class':rc},'children':this[_0x3af410(0x156)]}]});}[_0x501fb6(0x162)](){const _0x29f84c=_0x501fb6;super[_0x29f84c(0x162)]();const _0x5d8795=this[_0x29f84c(0x14f)][_0x29f84c(0x14b)]('.'+rc);_0x5d8795&&(this[_0x29f84c(0x165)][_0x29f84c(0x166)](_0x5d8795),this[_0x29f84c(0x165)][_0x29f84c(0x160)]());}[_0x501fb6(0x167)](){const _0x2eb092=_0x501fb6;super[_0x2eb092(0x167)](),this[_0x2eb092(0x165)][_0x2eb092(0x167)]();}[_0x501fb6(0x149)](_0x42a648){const _0x1b80a3=_0x501fb6;for(const _0x5aa63d of _0x42a648){const _0x143436=new _0x6203ab(this[_0x1b80a3(0x14a)],_0x5aa63d,!0x0,!0x1);this[_0x1b80a3(0x156)][_0x1b80a3(0x15b)](_0x143436);}}}function _0xc3e4(){const _0x31a4b5=['104DOJBqM','element','12498344viXBGr','7608096xdOKuC','ck-reset_all','2630VvHfkO','div','_bodyCollection','_contextChips','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-controls-button','ck-ai-chat__feed__context-chips','167328SHkBuo','add','5481098TJQcPG','6326510TJWzdu','40McveBC','setTemplate','reorganizeChips','416133RjuEgJ','render','ck-ai-chat-controls_context_show-more-button','18593FXekTs','_overflowManager','setContainerElement','destroy','ck-ai-chat-context-chips-wrapper','_createContextChips','locale','querySelector','ck-ai-chat-context-chips-wrapper-balloon','createCollection'];_0xc3e4=function(){return _0x31a4b5;};return _0xc3e4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2e17(_0x211ff3,_0x339354){var _0x32e7c2=_0x32e7();return _0x2e17=function(_0x2e17c8,_0x3b6fc4){_0x2e17c8=_0x2e17c8-0x164;var _0x2c378b=_0x32e7c2[_0x2e17c8];return _0x2c378b;},_0x2e17(_0x211ff3,_0x339354);}var _0x5f1791=_0x2e17;(function(_0x41b6f7,_0x4c83e4){var _0x568680=_0x2e17,_0x1d89c2=_0x41b6f7();while(!![]){try{var _0x4ab9e9=parseInt(_0x568680(0x167))/0x1+parseInt(_0x568680(0x16d))/0x2*(-parseInt(_0x568680(0x169))/0x3)+parseInt(_0x568680(0x16b))/0x4+parseInt(_0x568680(0x16c))/0x5*(-parseInt(_0x568680(0x166))/0x6)+-parseInt(_0x568680(0x168))/0x7*(parseInt(_0x568680(0x164))/0x8)+-parseInt(_0x568680(0x170))/0x9+parseInt(_0x568680(0x165))/0xa;if(_0x4ab9e9===_0x4c83e4)break;else _0x1d89c2['push'](_0x1d89c2['shift']());}catch(_0x2ef94d){_0x1d89c2['push'](_0x1d89c2['shift']());}}}(_0x32e7,0x4d3fe));import{AIChatFeedItemView as _0x54c99f}from'./aichatfeeditemview.js';export class AIChatFeedCustomElementView extends _0x54c99f{constructor(_0x4dcfb5){var _0x34bbcf=_0x2e17;super(_0x4dcfb5),this[_0x34bbcf(0x175)]({'attributes':{'class':[_0x34bbcf(0x16a)]}});}async[_0x5f1791(0x16f)](){var _0x120f27=_0x5f1791;super[_0x120f27(0x16f)](),_0x120f27(0x173)==typeof this[_0x120f27(0x171)][_0x120f27(0x172)]?this[_0x120f27(0x176)][_0x120f27(0x16e)]=this[_0x120f27(0x171)][_0x120f27(0x172)]:this[_0x120f27(0x176)][_0x120f27(0x174)](this[_0x120f27(0x171)][_0x120f27(0x172)]);}}function _0x32e7(){var _0x1cd3cf=['options','content','string','appendChild','extendTemplate','element','16EdGWFD','17614280QNduze','6afwQwb','40580HIahyx','1280783hIjEJk','1841643FyxNab','ck-ai-chat__feed__custom-element','11380tYSHPL','134935oqgTTB','2CGTMYh','innerHTML','render','4334697NJfnwC'];_0x32e7=function(){return _0x1cd3cf;};return _0x32e7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4bd810=_0x2aef;(function(_0x131ba5,_0x28f1cc){var _0x2cbd42=_0x2aef,_0xb7d851=_0x131ba5();while(!![]){try{var _0x170802=parseInt(_0x2cbd42(0xad))/0x1*(-parseInt(_0x2cbd42(0xac))/0x2)+parseInt(_0x2cbd42(0xab))/0x3+-parseInt(_0x2cbd42(0xa1))/0x4*(parseInt(_0x2cbd42(0xb7))/0x5)+-parseInt(_0x2cbd42(0xa5))/0x6+parseInt(_0x2cbd42(0xb5))/0x7*(-parseInt(_0x2cbd42(0xa7))/0x8)+parseInt(_0x2cbd42(0xa2))/0x9*(-parseInt(_0x2cbd42(0xb4))/0xa)+parseInt(_0x2cbd42(0xb0))/0xb;if(_0x170802===_0x28f1cc)break;else _0xb7d851['push'](_0xb7d851['shift']());}catch(_0x497afc){_0xb7d851['push'](_0xb7d851['shift']());}}}(_0x5555,0x276d1));function _0x2aef(_0x3bc624,_0x407db1){var _0x555526=_0x5555();return _0x2aef=function(_0x2aef7b,_0x1fa675){_0x2aef7b=_0x2aef7b-0xa0;var _0x3c7a9a=_0x555526[_0x2aef7b];return _0x3c7a9a;},_0x2aef(_0x3bc624,_0x407db1);}function _0x5555(){var _0x2571ad=['484060ViNoNe','1981TaWIkH','innerHTML','11635QfTmjj','element','72PdyLcr','9gdLOhb','markAsDone','level','113886bzXmye','setContent','4072TOhnZy','ck-ai-notification_warning','render','ck-ai-notification','578211eMPJEL','26ALXKnt','1286qaaVrd','warning','ck-ai-notification_error','2626690tKsOAd','extendTemplate','initialContent','options'];_0x5555=function(){return _0x2571ad;};return _0x5555();}import{AIChatFeedItemView as _0x1ad229}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x1ad229{constructor(_0x4504f3){var _0x21f9e9=_0x2aef;super(_0x4504f3),this[_0x21f9e9(0xb1)]({'attributes':{'class':[_0x21f9e9(0xaa),_0x21f9e9(0xae)===_0x4504f3[_0x21f9e9(0xa4)]?_0x21f9e9(0xa8):_0x21f9e9(0xaf)]}});}[_0x4bd810(0xa9)](){var _0x31122b=_0x4bd810;super[_0x31122b(0xa9)](),this[_0x31122b(0xa6)](this[_0x31122b(0xb3)][_0x31122b(0xb2)]),this[_0x31122b(0xa3)]();}[_0x4bd810(0xa6)](_0x10f40c){var _0x287676=_0x4bd810;this[_0x287676(0xa0)][_0x287676(0xb6)]=_0x10f40c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4ade(_0xd1ed8f,_0x20eb35){const _0x35f652=_0x35f6();return _0x4ade=function(_0x4adebf,_0x125c0e){_0x4adebf=_0x4adebf-0x153;let _0x241c29=_0x35f652[_0x4adebf];return _0x241c29;},_0x4ade(_0xd1ed8f,_0x20eb35);}const _0x12edce=_0x4ade;(function(_0x421421,_0xdfef0b){const _0x479dd4=_0x4ade,_0x3d5aae=_0x421421();while(!![]){try{const _0x2416ca=parseInt(_0x479dd4(0x163))/0x1+-parseInt(_0x479dd4(0x158))/0x2+parseInt(_0x479dd4(0x167))/0x3*(parseInt(_0x479dd4(0x161))/0x4)+-parseInt(_0x479dd4(0x15f))/0x5+-parseInt(_0x479dd4(0x159))/0x6+-parseInt(_0x479dd4(0x155))/0x7+parseInt(_0x479dd4(0x166))/0x8;if(_0x2416ca===_0xdfef0b)break;else _0x3d5aae['push'](_0x3d5aae['shift']());}catch(_0x236955){_0x3d5aae['push'](_0x3d5aae['shift']());}}}(_0x35f6,0xdd67f));import{IconBulb as _0x1b2fe3,IconWeb as _0x294800}from'@ckeditor/ckeditor5-icons';import{IconView as _0xaddb5a,View as _0x113fa4}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x2bd75c}from'./aichatfeeditemview.js';import{getTranslation as _0x5a22a2}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x2bd75c{[_0x12edce(0x156)];constructor(_0x3fa350,_0x3f919e){const _0x360aa4=_0x12edce;super(_0x3f919e);const {isWebSearchEnabled:_0xd11d8e,isReasoningEnabled:_0x4858ec}=_0x3f919e[_0x360aa4(0x156)],_0x567faf=[];let _0x1f44ae='';_0xd11d8e&&_0x4858ec?(_0x1f44ae=_0x5a22a2(_0x3fa350,_0x360aa4(0x160)),_0x567faf[_0x360aa4(0x164)](aa(_0x294800)),_0x567faf[_0x360aa4(0x164)](aa(_0x1b2fe3))):_0xd11d8e?(_0x1f44ae=_0x5a22a2(_0x3fa350,_0x360aa4(0x153)),_0x567faf[_0x360aa4(0x164)](aa(_0x294800))):_0x4858ec&&(_0x1f44ae=_0x5a22a2(_0x3fa350,_0x360aa4(0x157)),_0x567faf[_0x360aa4(0x164)](aa(_0x1b2fe3))),this[_0x360aa4(0x15b)]({'attributes':{'class':[_0x360aa4(0x169),_0x1f44ae?'':_0x360aa4(0x162)]}});const _0x133950=new _0x113fa4();_0x133950[_0x360aa4(0x15c)]({'tag':_0x360aa4(0x15e),'attributes':{'class':['ck',_0x360aa4(0x15a)]},'children':[..._0x567faf,{'tag':_0x360aa4(0x165),'attributes':{'class':[_0x360aa4(0x16a)]},'children':[_0x1f44ae]}]}),this[_0x360aa4(0x15d)][_0x360aa4(0x168)](_0x133950),this[_0x360aa4(0x156)]=_0x3f919e[_0x360aa4(0x156)];}}function aa(_0x661362){const _0x1cb412=_0x12edce,_0x12e3d4=new _0xaddb5a();return _0x12e3d4[_0x1cb412(0x154)]=_0x661362,_0x12e3d4;}function _0x35f6(){const _0x13e4e4=['ck-hidden','738359QWjjhe','push','span','12944752CZIIIb','14811mQPWjk','add','ck-ai-chat__feed__interaction-header','ck-ai-chat__feed__interaction-header__capabilities__text','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','content','72541wPUNSe','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','2353936SZqQqm','1895940uNkWVr','ck-ai-chat__feed__interaction-header__capabilities','extendTemplate','setTemplate','children','div','6297475DbmdCg','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','1064RKsGJy'];_0x35f6=function(){return _0x13e4e4;};return _0x35f6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40e7ee=_0x3c5e;(function(_0x261be9,_0x1b80bb){const _0x28d1cf=_0x3c5e,_0x513731=_0x261be9();while(!![]){try{const _0x106a4a=parseInt(_0x28d1cf(0xa0))/0x1*(parseInt(_0x28d1cf(0x94))/0x2)+parseInt(_0x28d1cf(0x8c))/0x3*(parseInt(_0x28d1cf(0x9d))/0x4)+parseInt(_0x28d1cf(0x8e))/0x5*(parseInt(_0x28d1cf(0x9b))/0x6)+parseInt(_0x28d1cf(0x81))/0x7*(parseInt(_0x28d1cf(0x87))/0x8)+parseInt(_0x28d1cf(0x97))/0x9*(parseInt(_0x28d1cf(0x8a))/0xa)+parseInt(_0x28d1cf(0x85))/0xb*(-parseInt(_0x28d1cf(0xa3))/0xc)+parseInt(_0x28d1cf(0x96))/0xd*(-parseInt(_0x28d1cf(0xa6))/0xe);if(_0x106a4a===_0x1b80bb)break;else _0x513731['push'](_0x513731['shift']());}catch(_0x487919){_0x513731['push'](_0x513731['shift']());}}}(_0x55d1,0x3d31a));import{View as _0x5ef117}from'ckeditor5/src/ui.js';function _0x3c5e(_0x5c2190,_0x29d07d){const _0x55d10f=_0x55d1();return _0x3c5e=function(_0x3c5ea0,_0x249205){_0x3c5ea0=_0x3c5ea0-0x7f;let _0x58e9b7=_0x55d10f[_0x3c5ea0];return _0x58e9b7;},_0x3c5e(_0x5c2190,_0x29d07d);}import{HTMLStreamer as _0x447ebc}from'../../../aicore/utils/htmlstreamer.js';function _0x55d1(){const _0x39834c=['streamIntoElement','459050RzfUhY','children','forEach','2732604LhbBLK','removeAttribute','ck-ai-chat__feed__text-item','252rAVHul','animation:\x20ck-html-streamer-fade-in\x20.5s','bindTemplate','5173SvoMws','[data-id]','options','cleanUpAnimations','11yJJVAO','querySelectorAll','2648pKEaTp','div','isVisible','2915090DjOJzK','ck-hidden','195LIAocf','htmlStreamer','180445usEbVi','stream','data-id','element','content','createCollection','2chWiGZ','set','626873HdAWmm','9tIAOVG','markAsDone','ck-ai-chat__feed__item_done','setTemplate','48KoiUpV','isDone','3844YbJwCU','ck-ai-chat__feed__item'];_0x55d1=function(){return _0x39834c;};return _0x55d1();}export class AIChatFeedItemView extends _0x5ef117{[_0x40e7ee(0x83)];[_0x40e7ee(0x92)]='';[_0x40e7ee(0x8d)];[_0x40e7ee(0xa1)];constructor(_0x50df26){const _0x4afb8c=_0x40e7ee;super();const _0x5e46d5=this[_0x4afb8c(0x80)];this[_0x4afb8c(0x95)](_0x4afb8c(0x9c),!0x1),this[_0x4afb8c(0x95)](_0x4afb8c(0x89),!0x0),this[_0x4afb8c(0x8d)]=new _0x447ebc({'textNodeStyle':_0x4afb8c(0x7f),'delay':0x14}),this[_0x4afb8c(0x83)]=_0x50df26,this[_0x4afb8c(0xa1)]=this[_0x4afb8c(0x93)](),this[_0x4afb8c(0x9a)]({'tag':_0x4afb8c(0x88),'attributes':{'class':['ck',_0x4afb8c(0x9e),_0x5e46d5['if'](_0x4afb8c(0x9c),_0x4afb8c(0x99)),_0x5e46d5['if'](_0x4afb8c(0x89),_0x4afb8c(0x8b),_0x514ea4=>!_0x514ea4),_0x4afb8c(0xa5)],'data-cke-ai-id':this[_0x4afb8c(0x83)]['id']},'children':this[_0x4afb8c(0xa1)]});}[_0x40e7ee(0x98)](){const _0x34ec89=_0x40e7ee;this[_0x34ec89(0x8d)][_0x34ec89(0x84)]({'targetElement':this[_0x34ec89(0x91)]}),this[_0x34ec89(0x91)][_0x34ec89(0x86)](_0x34ec89(0x82))[_0x34ec89(0xa2)](_0x7cbde6=>{const _0x474dae=_0x34ec89;_0x7cbde6[_0x474dae(0xa4)](_0x474dae(0x90));}),this[_0x34ec89(0x9c)]=!0x0;}async[_0x40e7ee(0x9f)](_0x1c56f8,_0x2870b5,_0x1b7e43){const _0xeb797e=_0x40e7ee;await this[_0xeb797e(0x8d)][_0xeb797e(0x8f)]({'document':_0x1c56f8,'targetElement':_0x2870b5,'abortSignal':_0x1b7e43});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbb5a67=_0xaf4a;(function(_0x5927b8,_0x324a6a){const _0x35de1f=_0xaf4a,_0x3514df=_0x5927b8();while(!![]){try{const _0xf1ea02=parseInt(_0x35de1f(0x187))/0x1+-parseInt(_0x35de1f(0x193))/0x2+parseInt(_0x35de1f(0x189))/0x3+-parseInt(_0x35de1f(0x198))/0x4+parseInt(_0x35de1f(0x183))/0x5+-parseInt(_0x35de1f(0x18d))/0x6*(parseInt(_0x35de1f(0x18e))/0x7)+parseInt(_0x35de1f(0x178))/0x8*(parseInt(_0x35de1f(0x17b))/0x9);if(_0xf1ea02===_0x324a6a)break;else _0x3514df['push'](_0x3514df['shift']());}catch(_0x265592){_0x3514df['push'](_0x3514df['shift']());}}}(_0x125e,0xb0e78));import{AIChatFeedItemView as _0xeb1fdb}from'./aichatfeeditemview.js';import{parse as _0x351b7e,render as _0xe64bb6}from'../../../aicore/utils/htmlparser.js';import{View as _0x8587a3}from'ckeditor5/src/ui.js';function _0xaf4a(_0x5ebb8a,_0x20fc47){const _0x125ea5=_0x125e();return _0xaf4a=function(_0xaf4ad3,_0xad56ae){_0xaf4ad3=_0xaf4ad3-0x178;let _0x47d1b2=_0x125ea5[_0xaf4ad3];return _0x47d1b2;},_0xaf4a(_0x5ebb8a,_0x20fc47);}import{AIWebSourcesView as _0x1aca57,AIWebSourceView as _0x54c0da}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';function _0x125e(){const _0x4d725e=['initialContent','2615500FWcMwc','ck-ai-chat__feed__ai-reply-container','updateSources','static','markAsDone','5353792iVLkoC','div','addMany','10722632FtSIya','render','options','9tyApZY','streamIntoElement','map','children','ck-reset_all-excluded','updateContent','_bodyCollection','element','1962940LobrzJ','add','extendTemplate','isVisible','710979HMRSvc','locale','3552486dvWaDe','setTemplate','balloonPanelView','streaming','4062Zfldub','2660okJShV','innerHTML','ck-ai-chat__feed__ai-reply','replyContainer'];_0x125e=function(){return _0x4d725e;};return _0x125e();}export class AIChatFeedReplyItemView extends _0xeb1fdb{[_0xbb5a67(0x191)];[_0xbb5a67(0x181)];constructor(_0x14dce2,_0x42c2ac,_0x435311){const _0x3ad73d=_0xbb5a67;super(_0x42c2ac),this[_0x3ad73d(0x181)]=_0x435311,this[_0x3ad73d(0x188)]=_0x14dce2,this[_0x3ad73d(0x185)]({'attributes':{'class':[_0x3ad73d(0x190)]}}),this[_0x3ad73d(0x191)]=new _0x8587a3(),this[_0x3ad73d(0x191)][_0x3ad73d(0x18a)]({'tag':_0x3ad73d(0x199),'attributes':{'class':['ck',_0x3ad73d(0x17f),_0x3ad73d(0x194)]}}),this[_0x3ad73d(0x17e)][_0x3ad73d(0x184)](this[_0x3ad73d(0x191)]);}async[_0xbb5a67(0x179)](){const _0x1c4a17=_0xbb5a67;super[_0x1c4a17(0x179)](),this[_0x1c4a17(0x17a)][_0x1c4a17(0x192)]&&(await this[_0x1c4a17(0x180)]({'parsedContent':_0x351b7e(this[_0x1c4a17(0x17a)][_0x1c4a17(0x192)]),'renderingStrategy':_0x1c4a17(0x196)}),this[_0x1c4a17(0x197)]());}async[_0xbb5a67(0x180)]({parsedContent:_0x2c1cf1,renderingStrategy:_0x4a6692,abortSignal:_0x3ff527}){const _0x506fae=_0xbb5a67;_0x506fae(0x18c)===_0x4a6692?await this[_0x506fae(0x17c)](_0x2c1cf1,this[_0x506fae(0x191)][_0x506fae(0x182)],_0x3ff527):this[_0x506fae(0x191)][_0x506fae(0x182)][_0x506fae(0x18f)]=_0xe64bb6(_0x2c1cf1);}[_0xbb5a67(0x195)](_0x52fb5e){const _0x41a246=_0xbb5a67,_0x50bc99=new _0x1aca57(this[_0x41a246(0x188)],this[_0x41a246(0x181)]);_0x50bc99[_0x41a246(0x17e)][_0x41a246(0x19a)](_0x52fb5e[_0x41a246(0x17d)](_0x58e2e8=>new _0x54c0da(this[_0x41a246(0x188)],_0x58e2e8,_0x50bc99[_0x41a246(0x18b)]))),_0x50bc99[_0x41a246(0x186)]=!0x0,this[_0x41a246(0x17e)][_0x41a246(0x184)](_0x50bc99);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x166c86=_0x1a19;(function(_0xe18d53,_0x301a54){const _0x507555=_0x1a19,_0x410e45=_0xe18d53();while(!![]){try{const _0x5da0a2=-parseInt(_0x507555(0x1a3))/0x1*(-parseInt(_0x507555(0x1af))/0x2)+-parseInt(_0x507555(0x19d))/0x3*(-parseInt(_0x507555(0x195))/0x4)+parseInt(_0x507555(0x1a7))/0x5*(-parseInt(_0x507555(0x1a0))/0x6)+-parseInt(_0x507555(0x188))/0x7*(parseInt(_0x507555(0x187))/0x8)+-parseInt(_0x507555(0x185))/0x9+parseInt(_0x507555(0x19a))/0xa+-parseInt(_0x507555(0x1b0))/0xb;if(_0x5da0a2===_0x301a54)break;else _0x410e45['push'](_0x410e45['shift']());}catch(_0x598f7a){_0x410e45['push'](_0x410e45['shift']());}}}(_0x470e,0x326a4));import{ButtonView as _0x30a4cd,View as _0x2c0174}from'ckeditor5/src/ui.js';import{getTranslation as _0x50c708}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x3438b6}from'ckeditor5/src/icons.js';export const AI_REPLY_ACTIONS=[_0x166c86(0x197),_0x166c86(0x192)];export class AIChatFeedSuggestionItemActionsView extends _0x2c0174{[_0x166c86(0x186)];[_0x166c86(0x1b2)];[_0x166c86(0x1a1)];constructor(_0x2bcc60,_0x402446=[...AI_REPLY_ACTIONS],_0x3bc7e3){const _0x3871e7=_0x166c86;super(_0x2bcc60);const _0x2191ee=this[_0x3871e7(0x1aa)],_0x231543=Boolean(_0x3bc7e3);if(this[_0x3871e7(0x1a6)](_0x3871e7(0x18d),!_0x231543),this[_0x3871e7(0x1a6)](_0x3871e7(0x19f),!0x1),this[_0x3871e7(0x1a6)](_0x3871e7(0x198),!0x1),this[_0x3871e7(0x1a1)]=this[_0x3871e7(0x199)](),_0x231543){const _0x5a4229=new _0x30a4cd(_0x2bcc60);_0x5a4229[_0x3871e7(0x1a6)]({'label':_0x50c708(_0x2bcc60,_0x3871e7(0x1a2)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x3438b6});const _0x195695=new _0x2c0174(_0x2bcc60);_0x195695[_0x3871e7(0x1a8)]({'tag':_0x3871e7(0x18f),'attributes':{'class':_0x3871e7(0x1ab)},'children':[{'tag':'p','children':[_0x50c708(_0x2bcc60,_0x3871e7(0x1a5)),_0x5a4229]}]}),this[_0x3871e7(0x1a1)][_0x3871e7(0x191)](_0x195695);}else this[_0x3871e7(0x186)]=new _0x30a4cd(_0x2bcc60),this[_0x3871e7(0x186)][_0x3871e7(0x1a6)]({'label':_0x50c708(_0x2bcc60,_0x3871e7(0x1a4)),'withText':!0x0,'type':_0x3871e7(0x19c),'isVisible':_0x402446[_0x3871e7(0x184)](_0x3871e7(0x197)),'class':_0x3871e7(0x18a)}),this[_0x3871e7(0x1b2)]=new _0x30a4cd(_0x2bcc60),this[_0x3871e7(0x1b2)][_0x3871e7(0x1a6)]({'label':_0x50c708(_0x2bcc60,_0x3871e7(0x1b3)),'withText':!0x0,'type':_0x3871e7(0x19c),'isVisible':_0x402446[_0x3871e7(0x184)](_0x3871e7(0x192)),'class':_0x3871e7(0x1ad)}),this[_0x3871e7(0x1b2)]['on'](_0x3871e7(0x19b),()=>{const _0x5ade24=_0x3871e7;this[_0x5ade24(0x19e)](_0x5ade24(0x192));}),this[_0x3871e7(0x186)]['on'](_0x3871e7(0x19b),()=>{const _0x15f61f=_0x3871e7;this[_0x15f61f(0x19e)](_0x15f61f(0x197));}),[this[_0x3871e7(0x186)],this[_0x3871e7(0x1b2)]][_0x3871e7(0x18c)](_0x30422d=>{const _0x584820=_0x3871e7;_0x30422d[_0x584820(0x1a9)](_0x584820(0x18d))['to'](this);}),this[_0x3871e7(0x1a1)][_0x3871e7(0x1ae)]([this[_0x3871e7(0x186)],this[_0x3871e7(0x1b2)]]);this[_0x3871e7(0x1a8)]({'tag':_0x3871e7(0x18f),'attributes':{'class':['ck',_0x3871e7(0x193),_0x2191ee['if'](_0x3871e7(0x19f),_0x3871e7(0x190),_0x3f8dfc=>!_0x3f8dfc)]},'children':this[_0x3871e7(0x1a1)]}),this['on'](_0x3871e7(0x1ac),()=>{const _0x5efcc0=_0x3871e7;this[_0x5efcc0(0x186)]&&(this[_0x5efcc0(0x186)][_0x5efcc0(0x19f)]=!this[_0x5efcc0(0x198)]);});}[_0x166c86(0x1b1)](_0x2ae319){const _0x45386e=_0x166c86;this[_0x45386e(0x19f)]=_0x2ae319;}[_0x166c86(0x18b)](_0x3cfcbe){const _0x1d6a76=_0x166c86;this[_0x1d6a76(0x186)]&&this[_0x1d6a76(0x1b2)]&&(_0x3cfcbe?(this[_0x1d6a76(0x186)][_0x1d6a76(0x196)]=_0x50c708(this[_0x1d6a76(0x18e)],_0x1d6a76(0x1a4)),this[_0x1d6a76(0x1b2)][_0x1d6a76(0x196)]=_0x50c708(this[_0x1d6a76(0x18e)],_0x1d6a76(0x1b3))):(this[_0x1d6a76(0x186)][_0x1d6a76(0x196)]=_0x50c708(this[_0x1d6a76(0x18e)],_0x1d6a76(0x189)),this[_0x1d6a76(0x1b2)][_0x1d6a76(0x196)]=_0x50c708(this[_0x1d6a76(0x18e)],_0x1d6a76(0x194))));}}function _0x1a19(_0x160a6f,_0x5172f8){const _0x470eb5=_0x470e();return _0x1a19=function(_0x1a19f6,_0x2a3c90){_0x1a19f6=_0x1a19f6-0x184;let _0x5d800e=_0x470eb5[_0x1a19f6];return _0x5d800e;},_0x1a19(_0x160a6f,_0x5172f8);}function _0x470e(){const _0x8070d3=['AI_CHAT_SUGGESTION_ACTION_APPLY','ck-ai-button-primary','_switchButtonLabelsPlurality','forEach','isEnabled','locale','div','ck-hidden','add','insertSuggestion','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_SUGGEST','344TIIieM','label','applySuggestion','isTrackChangesOn','createCollection','2906180VAzuRN','execute','button','4554ofSWfR','fire','isVisible','5262APchdR','children','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','17cLAugm','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','AI_SUGGESTION_DISABLED_FEED_MESSAGE','set','305KthaAw','setTemplate','bind','bindTemplate','ck-ai-chat__feed__suggestion__actions__info','change:isTrackChangesOn','ck-ai-button-secondary','addMany','37866WSBUPl','294503gcntaU','updateVisibility','_insertSuggestionsButton','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','includes','2869506gRSJTI','_applyChangesButton','1144aewJnT','6727PUbOpZ'];_0x470e=function(){return _0x8070d3;};return _0x470e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4c29(_0x24457,_0x4ef93d){var _0x4683c9=_0x4683();return _0x4c29=function(_0x4c297e,_0x55bb2f){_0x4c297e=_0x4c297e-0xdb;var _0x2ee4d2=_0x4683c9[_0x4c297e];return _0x2ee4d2;},_0x4c29(_0x24457,_0x4ef93d);}function _0x4683(){var _0x36cefc=['toggleSuggestionDisplayMode','ck-ai-chat__feed__ai-suggestion','dislike','setPartActive','options','mouseOverSuggestion','addMany','rejectSuggestion','isTrackChangesOn','4086144GoGCwP','6rOLcYP','fire','28WYqBmf','207535WfOdxs','updateSources','showChangeInText','139055YJINch','availableActions','30hagUAh','markAsDone','273096jydKVN','81370wdKeND','6169009snSypm','set','updatePartState','getPartView','children','bind','828HcOkkq','areActionsDisabled','like','extendTemplate','updateContent','applySuggestion','containerView','showDiff','insertSuggestion','279432yPcpbP','mouseLeaveSuggestion','bodyView'];_0x4683=function(){return _0x36cefc;};return _0x4683();}var _0xd735eb=_0x4c29;(function(_0x1dfcd9,_0x7f9170){var _0x557a8f=_0x4c29,_0x1a8844=_0x1dfcd9();while(!![]){try{var _0x3d3c7c=-parseInt(_0x557a8f(0xf6))/0x1+-parseInt(_0x557a8f(0xe5))/0x2*(-parseInt(_0x557a8f(0xdb))/0x3)+parseInt(_0x557a8f(0xdd))/0x4*(-parseInt(_0x557a8f(0xde))/0x5)+-parseInt(_0x557a8f(0xe3))/0x6*(parseInt(_0x557a8f(0xe1))/0x7)+-parseInt(_0x557a8f(0x102))/0x8+-parseInt(_0x557a8f(0xed))/0x9*(-parseInt(_0x557a8f(0xe6))/0xa)+parseInt(_0x557a8f(0xe7))/0xb;if(_0x3d3c7c===_0x7f9170)break;else _0x1a8844['push'](_0x1a8844['shift']());}catch(_0x1a8c8a){_0x1a8844['push'](_0x1a8844['shift']());}}}(_0x4683,0x6240d));import{AIChatFeedItemView as _0x57797b}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x273d1e}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedSuggestionItemView extends _0x57797b{[_0xd735eb(0xf3)];constructor(_0xc959b5,_0x184760,_0x5a23c7){var _0x4b23bf=_0xd735eb;super(_0x184760),this[_0x4b23bf(0xe8)](_0x4b23bf(0x101),!0x1),this[_0x4b23bf(0xf3)]=new _0x273d1e(_0xc959b5,{'showDiff':_0x184760[_0x4b23bf(0xf4)],'areActionsDisabled':_0x184760[_0x4b23bf(0xee)],'availableActions':_0x184760[_0x4b23bf(0xe2)]},_0x5a23c7),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xf9),(_0xd12765,_0x49f19d)=>{var _0x50ac54=_0x4b23bf;this[_0x50ac54(0xdc)](_0x50ac54(0xf9),{'replyId':this[_0x50ac54(0xfd)]['id'],'showDiff':_0x49f19d[_0x50ac54(0xf4)]});}),this[_0x4b23bf(0xf3)][_0x4b23bf(0xec)](_0x4b23bf(0x101))['to'](this),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xef),()=>{var _0x36b8e3=_0x4b23bf;this[_0x36b8e3(0xdc)](_0x36b8e3(0xef),{'replyId':this[_0x36b8e3(0xfd)]['id']});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xfb),()=>{var _0x10ec03=_0x4b23bf;this[_0x10ec03(0xdc)](_0x10ec03(0xfb),{'replyId':this[_0x10ec03(0xfd)]['id']});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xe0),(_0x3d57a0,{index:_0x3ccc1f})=>{var _0x110fcc=_0x4b23bf;this[_0x110fcc(0xdc)](_0x110fcc(0xe0),{'replyId':this[_0x110fcc(0xfd)]['id'],'partIndex':_0x3ccc1f});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xf2),(_0x32faf3,{index:_0x17fd2d}={})=>{var _0x5cdc1a=_0x4b23bf;this[_0x5cdc1a(0xdc)](_0x5cdc1a(0xf2),{'replyId':this[_0x5cdc1a(0xfd)]['id'],'partIndex':_0x17fd2d});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xf5),(_0x38cca5,{index:_0x2091d9}={})=>{var _0x1e713c=_0x4b23bf;this[_0x1e713c(0xdc)](_0x1e713c(0xf5),{'replyId':this[_0x1e713c(0xfd)]['id'],'partIndex':_0x2091d9});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0x100),(_0x2a4687,{index:_0x473b49})=>{var _0x1cb792=_0x4b23bf;this[_0x1cb792(0xdc)](_0x1cb792(0x100),{'replyId':this[_0x1cb792(0xfd)]['id'],'partIndex':_0x473b49});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xfe),(_0xd26235,{index:_0x46ba48})=>{var _0x433d2b=_0x4b23bf;this[_0x433d2b(0xdc)](_0x433d2b(0xfe),{'replyId':this[_0x433d2b(0xfd)]['id'],'partIndex':_0x46ba48});}),this[_0x4b23bf(0xf3)]['on'](_0x4b23bf(0xf7),(_0xa37672,{index:_0x5a1934})=>{var _0xe755fb=_0x4b23bf;this[_0xe755fb(0xdc)](_0xe755fb(0xf7),{'replyId':this[_0xe755fb(0xfd)]['id'],'partIndex':_0x5a1934});}),this[_0x4b23bf(0xeb)][_0x4b23bf(0xff)]([this[_0x4b23bf(0xf3)]]),this[_0x4b23bf(0xf0)]({'attributes':{'class':[_0x4b23bf(0xfa)]}});}async[_0xd735eb(0xf1)](_0x356176){var _0x3370ad=_0xd735eb;await this[_0x3370ad(0xf3)][_0x3370ad(0xf1)](_0x356176);}[_0xd735eb(0xe9)](_0x275019,_0x3d9336){var _0x4ffc0b=_0xd735eb;this[_0x4ffc0b(0xf3)][_0x4ffc0b(0xf8)][_0x4ffc0b(0xe9)](_0x275019,_0x3d9336);}[_0xd735eb(0xfc)](_0x795516,_0x5d1b42){var _0x408cfa=_0xd735eb;!0x1===_0x795516?this[_0x408cfa(0xf3)][_0x408cfa(0xf8)][_0x408cfa(0xfc)](!0x1):this[_0x408cfa(0xf3)][_0x408cfa(0xf8)][_0x408cfa(0xfc)](_0x795516,_0x5d1b42);}[_0xd735eb(0xdf)](_0x3e0b17){var _0x53d6a0=_0xd735eb;this[_0x53d6a0(0xf3)][_0x53d6a0(0xdf)](_0x3e0b17);}[_0xd735eb(0xea)](_0x3b217e){var _0x430d5f=_0xd735eb;return this[_0x430d5f(0xf3)][_0x430d5f(0xf8)][_0x430d5f(0xea)](_0x3b217e);}[_0xd735eb(0xe4)](){var _0x484a60=_0xd735eb;super[_0x484a60(0xe4)](),this[_0x484a60(0xf3)][_0x484a60(0xe4)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x448428=_0x2cb2;function _0x2cb2(_0x272959,_0x1bb7c3){var _0x1ccd51=_0x1ccd();return _0x2cb2=function(_0x2cb235,_0x203df9){_0x2cb235=_0x2cb235-0x191;var _0x261305=_0x1ccd51[_0x2cb235];return _0x261305;},_0x2cb2(_0x272959,_0x1bb7c3);}(function(_0xcd2155,_0x1efdb6){var _0x16f4ad=_0x2cb2,_0x58bab3=_0xcd2155();while(!![]){try{var _0x6ab921=parseInt(_0x16f4ad(0x1ab))/0x1*(-parseInt(_0x16f4ad(0x1a6))/0x2)+-parseInt(_0x16f4ad(0x1aa))/0x3+-parseInt(_0x16f4ad(0x196))/0x4*(parseInt(_0x16f4ad(0x1a7))/0x5)+-parseInt(_0x16f4ad(0x1b0))/0x6+parseInt(_0x16f4ad(0x1a4))/0x7*(-parseInt(_0x16f4ad(0x193))/0x8)+-parseInt(_0x16f4ad(0x1b2))/0x9+parseInt(_0x16f4ad(0x1a0))/0xa;if(_0x6ab921===_0x1efdb6)break;else _0x58bab3['push'](_0x58bab3['shift']());}catch(_0x1d1836){_0x58bab3['push'](_0x58bab3['shift']());}}}(_0x1ccd,0xc3f5b));import{AIChatFeedItemView as _0x45e81c}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x9fbfab}from'./aichatfeedcontextchipsview.js';function _0x1ccd(){var _0x158946=['_locale','ck-ai-chat__feed__message-content','_createMessageContentView','innerHTML','50999540RXtiQE','element','children','_messageContentView','10156818jqPjcl','_createContextChipsView','570vstxyN','85fpjnzL','extendTemplate','_bodyCollection','2123853QdDUcj','3433outtqM','hidden','contextItems','length','markAsDone','4157640XXDpry','ck-ai-chat__feed__context-chips','1292931xvymkM','setTemplate','_contextChipsView','8RcPVdu','options','add','76088FyUgrY','ck-ai-chat__feed__user-message','filter','render','initialContent','div'];_0x1ccd=function(){return _0x158946;};return _0x1ccd();}import{View as _0x5de540}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x45e81c{[_0x448428(0x192)]=null;[_0x448428(0x19c)];[_0x448428(0x1a9)];[_0x448428(0x1a3)];constructor(_0x53d278,_0x6ac1bf,_0x225764){var _0x16343d=_0x448428;super(_0x6ac1bf),this[_0x16343d(0x19c)]=_0x53d278,this[_0x16343d(0x1a9)]=_0x225764,this[_0x16343d(0x1a5)](),this[_0x16343d(0x19e)](),this[_0x16343d(0x1a8)]({'attributes':{'class':[_0x16343d(0x197)]}});}[_0x448428(0x1a5)](){var _0x5105b1=_0x448428;this[_0x5105b1(0x194)][_0x5105b1(0x1ad)]&&this[_0x5105b1(0x194)][_0x5105b1(0x1ad)][_0x5105b1(0x1ae)]>0x0&&(this[_0x5105b1(0x192)]=new _0x9fbfab(this[_0x5105b1(0x19c)],this[_0x5105b1(0x194)][_0x5105b1(0x1ad)][_0x5105b1(0x198)](_0x5cc6ee=>!_0x5cc6ee[_0x5105b1(0x1ac)]),this[_0x5105b1(0x1a9)]),this[_0x5105b1(0x192)][_0x5105b1(0x1a8)]({'attributes':{'class':_0x5105b1(0x1b1)}}),this[_0x5105b1(0x1a2)][_0x5105b1(0x195)](this[_0x5105b1(0x192)]));}[_0x448428(0x19e)](){var _0x5e7031=_0x448428;this[_0x5e7031(0x1a3)]=new _0x5de540(this[_0x5e7031(0x19c)]),this[_0x5e7031(0x1a3)][_0x5e7031(0x191)]({'tag':_0x5e7031(0x19b),'attributes':{'class':_0x5e7031(0x19d)}}),this[_0x5e7031(0x1a2)][_0x5e7031(0x195)](this[_0x5e7031(0x1a3)]);}[_0x448428(0x199)](){var _0x205f0d=_0x448428;super[_0x205f0d(0x199)](),this[_0x205f0d(0x1a3)][_0x205f0d(0x1a1)][_0x205f0d(0x19f)]=this[_0x205f0d(0x194)][_0x205f0d(0x19a)],this[_0x205f0d(0x1af)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2d1775=_0x1581;(function(_0x2572a7,_0x5ea7f3){const _0x40ae70=_0x1581,_0x5ac890=_0x2572a7();while(!![]){try{const _0x88c12e=-parseInt(_0x40ae70(0xf3))/0x1+parseInt(_0x40ae70(0xed))/0x2+parseInt(_0x40ae70(0xf2))/0x3+-parseInt(_0x40ae70(0xe8))/0x4+-parseInt(_0x40ae70(0xf9))/0x5*(parseInt(_0x40ae70(0xf6))/0x6)+-parseInt(_0x40ae70(0xe7))/0x7+parseInt(_0x40ae70(0xe9))/0x8;if(_0x88c12e===_0x5ea7f3)break;else _0x5ac890['push'](_0x5ac890['shift']());}catch(_0x385968){_0x5ac890['push'](_0x5ac890['shift']());}}}(_0x23b0,0xe7c17));function _0x23b0(){const _0x5b436d=['105chsiSh','executeCustomItemCallback','addFileToContext','addDocumentToContext','9110038taKRKa','6022680LOAlzZ','19105816wpWhdG','startConversation','selectModel','loadSourceResources','2374600SnDDBg','sendUserMessage','toggleWebSearch','resizeTabs','addResourceToContext','2583390SXvCqt','495293TsJwxG','removeContextItem','addUrlToContext','52854TnUQjD','abortPromptStream','toggleReasoning'];_0x23b0=function(){return _0x5b436d;};return _0x23b0();}function _0x1581(_0x349d53,_0x1e7a0d){const _0x23b0e9=_0x23b0();return _0x1581=function(_0x158194,_0x5d83a0){_0x158194=_0x158194-0xe7;let _0x2e58b9=_0x23b0e9[_0x158194];return _0x2e58b9;},_0x1581(_0x349d53,_0x1e7a0d);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x196f57}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x196f57,_0x2d1775(0xea),_0x2d1775(0xf0),_0x2d1775(0xee),_0x2d1775(0xf7),_0x2d1775(0xfc),_0x2d1775(0xfb),_0x2d1775(0xf5),_0x2d1775(0xfa),_0x2d1775(0xf1),_0x2d1775(0xf4),_0x2d1775(0xec),_0x2d1775(0xef),_0x2d1775(0xf8),_0x2d1775(0xeb)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6205c9=_0x16df;(function(_0x1ab7aa,_0x2cbdb5){const _0x58845e=_0x16df,_0x5197f4=_0x1ab7aa();while(!![]){try{const _0x400d8b=parseInt(_0x58845e(0x204))/0x1+-parseInt(_0x58845e(0x20c))/0x2+parseInt(_0x58845e(0x1ff))/0x3+parseInt(_0x58845e(0x1f7))/0x4+parseInt(_0x58845e(0x20b))/0x5*(parseInt(_0x58845e(0x206))/0x6)+-parseInt(_0x58845e(0x1fd))/0x7+parseInt(_0x58845e(0x1f4))/0x8*(-parseInt(_0x58845e(0x1fe))/0x9);if(_0x400d8b===_0x2cbdb5)break;else _0x5197f4['push'](_0x5197f4['shift']());}catch(_0x5921a1){_0x5197f4['push'](_0x5197f4['shift']());}}}(_0x5a21,0x3959b));function _0x5a21(){const _0xae6d32=['queue','signal','shift','1437560RDlDNu','210846usvCaG','isProcessing','_abortController','length','288RAmPjZ','resolve','enqueue','1640892AgdpGq','reject','createTask','completePromise','_queueEmpty','_processQueue','33908OEoIme','296145kDFRYz','1351392vEFdpG','push','queueEmptyPromise','once','fire','381555ZZzkfm','abort','6NZwghN','callback'];_0x5a21=function(){return _0xae6d32;};return _0x5a21();}import{EmitterMixin as _0x4c9782}from'ckeditor5/src/utils.js';function _0x16df(_0x541d34,_0x2108c7){const _0x5a21a3=_0x5a21();return _0x16df=function(_0x16df31,_0x2d01a0){_0x16df31=_0x16df31-0x1f3;let _0x1cf8cf=_0x5a21a3[_0x16df31];return _0x1cf8cf;},_0x16df(_0x541d34,_0x2108c7);}export class PromiseQueue extends _0x4c9782(){[_0x6205c9(0x208)]=[];[_0x6205c9(0x20d)]=!0x1;[_0x6205c9(0x20e)];async[_0x6205c9(0x1f6)](_0x20a72a){const _0x59b636=_0x6205c9,_0x5ed726=this[_0x59b636(0x1f9)](_0x20a72a);return this[_0x59b636(0x208)][_0x59b636(0x200)](_0x5ed726),this[_0x59b636(0x1fc)](),_0x5ed726[_0x59b636(0x1fa)];}[_0x6205c9(0x205)](){const _0xdbb5b0=_0x6205c9;this[_0xdbb5b0(0x20d)]&&(this[_0xdbb5b0(0x20e)][_0xdbb5b0(0x205)](),this[_0xdbb5b0(0x20e)]=void 0x0,this[_0xdbb5b0(0x208)]=[],this[_0xdbb5b0(0x203)](_0xdbb5b0(0x1fb)),this[_0xdbb5b0(0x20d)]=!0x1);}get[_0x6205c9(0x201)](){const _0xbdb10a=_0x6205c9;return this[_0xbdb10a(0x208)][_0xbdb10a(0x1f3)]||this[_0xbdb10a(0x20d)]?new Promise(_0x22c4a6=>{const _0x19747a=_0xbdb10a;this[_0x19747a(0x202)](_0x19747a(0x1fb),()=>{_0x22c4a6();});}):Promise[_0xbdb10a(0x1f5)]();}async[_0x6205c9(0x1fc)](){const _0x3f5025=_0x6205c9;if(!this[_0x3f5025(0x20d)]){this[_0x3f5025(0x20e)]=new AbortController(),this[_0x3f5025(0x20d)]=!0x0;try{for(;this[_0x3f5025(0x208)][_0x3f5025(0x1f3)]&&this[_0x3f5025(0x20d)];){const _0xecd806=this[_0x3f5025(0x208)][_0x3f5025(0x20a)]();try{await _0xecd806[_0x3f5025(0x207)](this[_0x3f5025(0x20e)][_0x3f5025(0x209)]),_0xecd806[_0x3f5025(0x1f5)]();}catch(_0x49fe3a){_0xecd806[_0x3f5025(0x1f8)](_0x49fe3a);}}}finally{this[_0x3f5025(0x20d)]=!0x1,this[_0x3f5025(0x20e)]=void 0x0;}this[_0x3f5025(0x203)](_0x3f5025(0x1fb));}}[_0x6205c9(0x1f9)](_0x259744){let _0x4236b7,_0x3bd433;const _0x4fa791=new Promise((_0x4fe21d,_0x422788)=>{_0x4236b7=_0x4fe21d,_0x3bd433=_0x422788;});return{'callback':_0x259744,'resolve':_0x4236b7,'reject':_0x3bd433,'completePromise':_0x4fa791};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x51a2(_0x22b653,_0x5ab8e6){var _0x39ca6f=_0x39ca();return _0x51a2=function(_0x51a294,_0x33c472){_0x51a294=_0x51a294-0x143;var _0x63746f=_0x39ca6f[_0x51a294];return _0x63746f;},_0x51a2(_0x22b653,_0x5ab8e6);}var _0x4671ab=_0x51a2;(function(_0x80b426,_0x2991ac){var _0x2a1f73=_0x51a2,_0x17b58b=_0x80b426();while(!![]){try{var _0x28f79a=parseInt(_0x2a1f73(0x150))/0x1+-parseInt(_0x2a1f73(0x146))/0x2+parseInt(_0x2a1f73(0x14d))/0x3*(parseInt(_0x2a1f73(0x14c))/0x4)+parseInt(_0x2a1f73(0x14e))/0x5*(parseInt(_0x2a1f73(0x147))/0x6)+parseInt(_0x2a1f73(0x14f))/0x7+-parseInt(_0x2a1f73(0x14a))/0x8+parseInt(_0x2a1f73(0x143))/0x9;if(_0x28f79a===_0x2991ac)break;else _0x17b58b['push'](_0x17b58b['shift']());}catch(_0x26368e){_0x17b58b['push'](_0x17b58b['shift']());}}}(_0x39ca,0x58dca));import{ContextPlugin as _0x53a7f4}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x2b4e95}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x4b23c3}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x53a7f4{static get[_0x4671ab(0x14b)](){return[_0x2b4e95,_0x4b23c3];}static get[_0x4671ab(0x145)](){var _0x1adcac=_0x4671ab;return _0x1adcac(0x149);}static get[_0x4671ab(0x148)](){return!0x0;}static get[_0x4671ab(0x144)](){return!0x0;}}function _0x39ca(){var _0x1ddf1f=['isPremiumPlugin','pluginName','978994fIatkJ','384HANFSV','isOfficialPlugin','AIChatHistory','4820024nXlTBF','requires','12dTkpJV','202074EmxwXF','49685KQdiyd','1540364eenkuh','237323mZldSd','1445049RDPZWe'];_0x39ca=function(){return _0x1ddf1f;};return _0x39ca();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4553b5=_0x4beb;(function(_0x424a70,_0x20ea6d){const _0x324f94=_0x4beb,_0x5bc909=_0x424a70();while(!![]){try{const _0x46641e=parseInt(_0x324f94(0x176))/0x1+-parseInt(_0x324f94(0x17e))/0x2*(parseInt(_0x324f94(0x192))/0x3)+parseInt(_0x324f94(0x168))/0x4*(parseInt(_0x324f94(0x1af))/0x5)+-parseInt(_0x324f94(0x19c))/0x6*(parseInt(_0x324f94(0x1b6))/0x7)+parseInt(_0x324f94(0x1b9))/0x8*(parseInt(_0x324f94(0x169))/0x9)+-parseInt(_0x324f94(0x164))/0xa+parseInt(_0x324f94(0x16b))/0xb;if(_0x46641e===_0x20ea6d)break;else _0x5bc909['push'](_0x5bc909['shift']());}catch(_0x3806be){_0x5bc909['push'](_0x5bc909['shift']());}}}(_0x88aa,0xab20f));import{ContextPlugin as _0x39e2a0}from'ckeditor5/src/core.js';import{AIConnector as _0x3162ad}from'../aicore/aiconnector.js';import{AIChatController as _0x5db346}from'../aichat/aichatcontroller.js';function _0x88aa(){const _0x51bba6=['operation','_updateHistoryItemsUI','chat','2042770AktOeD','toLocaleDateString','itemUpdated','pluginName','240cMvbSE','9080793kBGKox','init','6847852gKihlt','push','map','plugins','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','activateTab','itemsLoaded','requires','_setIsMaximized','AI_CHAT_HISTORY_ERROR_GENERIC','481563QvvVzT','updates','length','removeHistoryItem','AI_CHAT_HISTORY_UNPIN_ACTION','unpin','AI_CHAT_HISTORY_PIN_ACTION','_setItemLoading','3170RTlgDY','getDate','remove','_handleRemove','error','editConversationTitle','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','items','setLoadingSkeleton','change:activeConversation','itemRemoved','_handleTogglePin','setConversationPinned','_showConversationHistory','openChat','setIsMaximized','context','title','createdAt','1821pCNhrO','resizedTabs','AI_CHAT_HISTORY_CATEGORY_TODAY','locale','_clearItemLoading','_aiConnector','removeConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','itemId','getMonth','438QszAlX','getItems','activateTab:history','activeConversation','history','_generateErrorMessage','AI_CHAT_HISTORY_CATEGORY_LATER','AIChatHistoryController','getItem','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','isPremiumPlugin','_getCategorizedItems','showError','resize','removeItem','view','AI_CHAT_UNTITLED_CONVERSATION','updateItemPinned','get','57685qORAJN','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setDate','pin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getFullYear','_handleHistoryErrorUI','89943UkIovI','selectConversation','getGroupId','8hiuLGI','listenTo','updateItemLoadingState','updateItems','isOfficialPlugin','_aiChatHistoryUi','resizeTabs','loadItems','_handleSelectConversation','_handleEditTitle','_aiChatController','rename','pinned','loadConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS'];_0x88aa=function(){return _0x51bba6;};return _0x88aa();}import{AITabs as _0x4bf232}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3002b2}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x40e805}from'./model/aichathistoryconversations.js';function _0x4beb(_0x29a2d8,_0x1d3055){const _0x88aa93=_0x88aa();return _0x4beb=function(_0x4beb69,_0x3e5d33){_0x4beb69=_0x4beb69-0x160;let _0x27140f=_0x88aa93[_0x4beb69];return _0x27140f;},_0x4beb(_0x29a2d8,_0x1d3055);}import{getTranslation as _0x565e8e}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x39e2a0{[_0x4553b5(0x197)];[_0x4553b5(0x1be)];[_0x4553b5(0x1c3)];static get[_0x4553b5(0x173)](){return[_0x3162ad,_0x5db346,_0x3002b2,_0x4bf232];}static get[_0x4553b5(0x167)](){const _0x35fb45=_0x4553b5;return _0x35fb45(0x1a3);}static get[_0x4553b5(0x1bd)](){return!0x0;}static get[_0x4553b5(0x1a6)](){return!0x0;}[_0x4553b5(0x16a)](){const _0x5c3cac=_0x4553b5;this[_0x5c3cac(0x197)]=this[_0x5c3cac(0x18f)][_0x5c3cac(0x16e)][_0x5c3cac(0x1ae)](_0x3162ad),this[_0x5c3cac(0x1be)]=this[_0x5c3cac(0x18f)][_0x5c3cac(0x16e)][_0x5c3cac(0x1ae)](_0x3002b2),this[_0x5c3cac(0x1c3)]=this[_0x5c3cac(0x18f)][_0x5c3cac(0x16e)][_0x5c3cac(0x1ae)](_0x5db346);const _0x353aae=this[_0x5c3cac(0x18f)][_0x5c3cac(0x16e)][_0x5c3cac(0x1ae)](_0x4bf232);try{const _0x21cac6=this[_0x5c3cac(0x1c3)][_0x5c3cac(0x1b8)]();this[_0x5c3cac(0x1a0)]=new _0x40e805({'connector':this[_0x5c3cac(0x197)],'group':_0x21cac6}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1be)],_0x5c3cac(0x198),(_0x6582f4,_0x4cb786)=>{const _0x367d53=_0x5c3cac;this[_0x367d53(0x17d)](_0x4cb786['id'],_0x367d53(0x180)),this[_0x367d53(0x181)](_0x4cb786['id']);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1be)],_0x5c3cac(0x183),(_0x3a7246,_0x16897e)=>{const _0x9d64e9=_0x5c3cac;this[_0x9d64e9(0x17d)](_0x16897e['id'],_0x9d64e9(0x1c4)),this[_0x9d64e9(0x1c2)](_0x16897e['id'],_0x16897e[_0x9d64e9(0x190)]);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1a0)],_0x5c3cac(0x166),(_0x3adb92,_0x79be25)=>{const _0x111638=_0x5c3cac;void 0x0!==_0x79be25[_0x111638(0x177)][_0x111638(0x190)]&&this[_0x111638(0x1be)][_0x111638(0x185)](_0x79be25[_0x111638(0x19a)],_0x79be25[_0x111638(0x177)][_0x111638(0x190)]),void 0x0!==_0x79be25[_0x111638(0x177)][_0x111638(0x1c5)]&&this[_0x111638(0x162)](),this[_0x111638(0x196)](_0x79be25[_0x111638(0x19a)]);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1a0)],_0x5c3cac(0x189),(_0x3ba798,_0x3d539f)=>{const _0x476ce4=_0x5c3cac;this[_0x476ce4(0x1c3)][_0x476ce4(0x16f)](_0x3d539f[_0x476ce4(0x19a)]),this[_0x476ce4(0x1be)][_0x476ce4(0x179)](_0x3d539f[_0x476ce4(0x19a)]),this[_0x476ce4(0x196)](_0x3d539f[_0x476ce4(0x19a)]);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1a0)],_0x5c3cac(0x172),()=>{const _0x3c66fd=_0x5c3cac;this[_0x3c66fd(0x162)]();}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1a0)],_0x5c3cac(0x182),(_0x26ab07,_0x241be1)=>{const _0x2f52e1=_0x5c3cac;this[_0x2f52e1(0x1b5)](_0x241be1[_0x2f52e1(0x182)],_0x241be1[_0x2f52e1(0x161)],_0x241be1[_0x2f52e1(0x19a)]);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1be)],_0x5c3cac(0x1b7),(_0x527cda,_0x40f1cb)=>{const _0xe774a0=_0x5c3cac;this[_0xe774a0(0x1c1)](_0x40f1cb['id']);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1be)],_0x5c3cac(0x18b),(_0x5cb7f9,_0x1989ab)=>{const _0x394a18=_0x5c3cac,_0x21482a=_0x1989ab[_0x394a18(0x1c5)]?_0x394a18(0x1b2):_0x394a18(0x17b);this[_0x394a18(0x17d)](_0x1989ab['id'],_0x21482a),this[_0x394a18(0x18a)](_0x1989ab['id'],_0x1989ab[_0x394a18(0x1c5)]);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1be)],_0x5c3cac(0x18d),()=>{const _0x4172fa=_0x5c3cac;_0x353aae[_0x4172fa(0x1ab)][_0x4172fa(0x171)](_0x4172fa(0x163));}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1c3)],_0x5c3cac(0x188),()=>{const _0x2905ab=_0x5c3cac;this[_0x2905ab(0x162)]();}),_0x353aae[_0x5c3cac(0x1ab)]['on'](_0x5c3cac(0x19e),()=>{const _0x2f13fd=_0x5c3cac;this[_0x2f13fd(0x18c)]();}),this[_0x5c3cac(0x1ba)](_0x353aae,_0x5c3cac(0x193),(_0x2d5db3,_0x36c1d8)=>{const _0x2346c5=_0x5c3cac;this[_0x2346c5(0x174)](_0x36c1d8);}),this[_0x5c3cac(0x1ba)](this[_0x5c3cac(0x1be)],_0x5c3cac(0x1bf),()=>{const _0xbdce19=_0x5c3cac;_0x353aae[_0xbdce19(0x1a9)]();});}catch(_0x1f72f9){this[_0x5c3cac(0x1b5)](_0x1f72f9,_0x5c3cac(0x16a));}}async[_0x4553b5(0x1c2)](_0x23b111,_0x17502a){const _0x4a15f6=_0x4553b5;await this[_0x4a15f6(0x1a0)][_0x4a15f6(0x185)](_0x23b111,_0x17502a);}async[_0x4553b5(0x18a)](_0x28d691,_0x60fbc2){const _0x593acb=_0x4553b5;await this[_0x593acb(0x1a0)][_0x593acb(0x1ad)](_0x28d691,_0x60fbc2);}async[_0x4553b5(0x181)](_0x28479b){const _0x3ec006=_0x4553b5;await this[_0x3ec006(0x1a0)][_0x3ec006(0x1aa)](_0x28479b);}async[_0x4553b5(0x1c1)](_0x1b567b){const _0x1f78ab=_0x4553b5;await this[_0x1f78ab(0x1c3)][_0x1f78ab(0x1c6)](_0x1b567b);}async[_0x4553b5(0x18c)](){const _0x37f423=_0x4553b5;this[_0x37f423(0x1be)][_0x37f423(0x1a8)](''),this[_0x37f423(0x1be)][_0x37f423(0x187)](!0x0),await this[_0x37f423(0x1a0)][_0x37f423(0x16a)](),this[_0x37f423(0x1be)][_0x37f423(0x187)](!0x1);}[_0x4553b5(0x162)](){const _0x5e2582=_0x4553b5,_0x12e9de=this[_0x5e2582(0x1c3)][_0x5e2582(0x19f)]?.['id'],_0x131176=this[_0x5e2582(0x1a7)]()[_0x5e2582(0x16d)](_0x595b4f=>({'title':_0x595b4f[_0x5e2582(0x190)],'items':_0x595b4f[_0x5e2582(0x186)][_0x5e2582(0x16d)](_0x45ffda=>({'id':_0x45ffda['id'],'title':_0x45ffda[_0x5e2582(0x190)]||_0x565e8e(this[_0x5e2582(0x18f)][_0x5e2582(0x195)],_0x5e2582(0x1ac)),'createdAt':new Date(_0x45ffda[_0x5e2582(0x191)])[_0x5e2582(0x165)](),'active':_0x45ffda['id']===_0x12e9de,'pinned':_0x45ffda[_0x5e2582(0x1c5)]}))}));this[_0x5e2582(0x1be)][_0x5e2582(0x1bc)](_0x131176);}[_0x4553b5(0x17d)](_0x1d25c5,_0x17c8c8){const _0x531567=_0x4553b5;this[_0x531567(0x1be)][_0x531567(0x1bb)](_0x1d25c5,_0x17c8c8,!0x0);}[_0x4553b5(0x196)](_0x5dd1d8){const _0x40390b=_0x4553b5;this[_0x40390b(0x1be)][_0x40390b(0x1bb)](_0x5dd1d8,null,!0x1);}[_0x4553b5(0x1b5)](_0x363589,_0x293d57,_0x549315){const _0x344438=_0x4553b5,_0x27d66a=this[_0x344438(0x1a1)](_0x293d57,_0x549315);this[_0x344438(0x1be)][_0x344438(0x1a8)](_0x27d66a),_0x549315&&this[_0x344438(0x196)](_0x549315),this[_0x344438(0x1be)][_0x344438(0x187)](!0x1);}[_0x4553b5(0x1a1)](_0x253e47,_0x3346e5){const _0x2c31d6=_0x4553b5,_0x4710c4=_0x3346e5?this[_0x2c31d6(0x1a0)][_0x2c31d6(0x1a4)](_0x3346e5):null,_0x1cfe21=_0x4710c4?.[_0x2c31d6(0x190)]||_0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x2c31d6(0x1ac));switch(_0x253e47){case _0x2c31d6(0x185):return _0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x2c31d6(0x170),_0x1cfe21);case _0x2c31d6(0x1ad):{const _0x124f4e=_0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x4710c4?.[_0x2c31d6(0x1c5)]?_0x2c31d6(0x17a):_0x2c31d6(0x17c));return _0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x2c31d6(0x1a5),[_0x124f4e,_0x1cfe21]);}case _0x2c31d6(0x1aa):return _0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x2c31d6(0x184),_0x1cfe21);case _0x2c31d6(0x16a):case _0x2c31d6(0x1c0):return _0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x2c31d6(0x160));default:return _0x565e8e(this[_0x2c31d6(0x18f)][_0x2c31d6(0x195)],_0x2c31d6(0x175));}}[_0x4553b5(0x1a7)](){const _0x12c594=_0x4553b5,_0x2b6236=new Date(),_0x5f569e=new Date(_0x2b6236[_0x12c594(0x1b4)](),_0x2b6236[_0x12c594(0x19b)](),_0x2b6236[_0x12c594(0x17f)]()),_0x27e2fa=new Date(_0x5f569e);_0x27e2fa[_0x12c594(0x1b1)](_0x27e2fa[_0x12c594(0x17f)]()-0x1);const _0x45d6db=new Date(_0x5f569e);_0x45d6db[_0x12c594(0x1b1)](_0x45d6db[_0x12c594(0x17f)]()-0xe);const _0x8c1071=this[_0x12c594(0x1a0)][_0x12c594(0x19d)]({'pinned':!0x0}),_0x23f351=this[_0x12c594(0x1a0)][_0x12c594(0x19d)]({'from':_0x5f569e,'to':_0x5f569e}),_0x4e8be3=this[_0x12c594(0x1a0)][_0x12c594(0x19d)]({'from':_0x27e2fa,'to':_0x27e2fa}),_0x51b24a=this[_0x12c594(0x1a0)][_0x12c594(0x19d)]({'from':_0x45d6db,'to':_0x27e2fa}),_0x3c0708=this[_0x12c594(0x1a0)][_0x12c594(0x19d)]({'to':_0x45d6db}),_0x7f0008=[];return _0x8c1071[_0x12c594(0x178)]>0x0&&_0x7f0008[_0x12c594(0x16c)]({'title':_0x565e8e(this[_0x12c594(0x18f)][_0x12c594(0x195)],_0x12c594(0x199)),'items':_0x8c1071}),_0x23f351[_0x12c594(0x178)]>0x0&&_0x7f0008[_0x12c594(0x16c)]({'title':_0x565e8e(this[_0x12c594(0x18f)][_0x12c594(0x195)],_0x12c594(0x194)),'items':_0x23f351}),_0x4e8be3[_0x12c594(0x178)]>0x0&&_0x7f0008[_0x12c594(0x16c)]({'title':_0x565e8e(this[_0x12c594(0x18f)][_0x12c594(0x195)],_0x12c594(0x1b3)),'items':_0x4e8be3}),_0x51b24a[_0x12c594(0x178)]>0x0&&_0x7f0008[_0x12c594(0x16c)]({'title':_0x565e8e(this[_0x12c594(0x18f)][_0x12c594(0x195)],_0x12c594(0x1b0)),'items':_0x51b24a}),_0x3c0708[_0x12c594(0x178)]>0x0&&_0x7f0008[_0x12c594(0x16c)]({'title':_0x565e8e(this[_0x12c594(0x18f)][_0x12c594(0x195)],_0x12c594(0x1a2)),'items':_0x3c0708}),_0x7f0008;}[_0x4553b5(0x174)](_0x318e0d){const _0x277f7b=_0x4553b5;this[_0x277f7b(0x1be)][_0x277f7b(0x18e)](_0x318e0d);}}
|
|
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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x182bb0=_0x33f7;(function(_0x734ffb,_0x938eae){const _0x4a1d3c=_0x33f7,_0x2f8a7b=_0x734ffb();while(!![]){try{const _0x58d63e=-parseInt(_0x4a1d3c(0xeb))/0x1+parseInt(_0x4a1d3c(0xe5))/0x2*(parseInt(_0x4a1d3c(0xe6))/0x3)+-parseInt(_0x4a1d3c(0xe3))/0x4*(-parseInt(_0x4a1d3c(0x10c))/0x5)+-parseInt(_0x4a1d3c(0xfc))/0x6+parseInt(_0x4a1d3c(0xe9))/0x7*(-parseInt(_0x4a1d3c(0xe4))/0x8)+-parseInt(_0x4a1d3c(0xff))/0x9+parseInt(_0x4a1d3c(0xf5))/0xa*(parseInt(_0x4a1d3c(0xf3))/0xb);if(_0x58d63e===_0x938eae)break;else _0x2f8a7b['push'](_0x2f8a7b['shift']());}catch(_0x5754a1){_0x2f8a7b['push'](_0x2f8a7b['shift']());}}}(_0x252f,0xbd68c));import{ContextPlugin as _0x20029e}from'ckeditor5/src/core.js';function _0x33f7(_0x485df6,_0x25db4b){const _0x252ffc=_0x252f();return _0x33f7=function(_0x33f719,_0x56e5e2){_0x33f719=_0x33f719-0xe2;let _0x200d7e=_0x252ffc[_0x33f719];return _0x200d7e;},_0x33f7(_0x485df6,_0x25db4b);}import{AITabs as _0x5d6230}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3d93cc}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x25f00f}from'./ui/aichathistoryview.js';import{getTranslation as _0x2d7cf3}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x182bb0(0x107),_0x182bb0(0xf4),_0x182bb0(0x10e),_0x182bb0(0x106),_0x182bb0(0xfb),_0x182bb0(0xef),_0x182bb0(0xf8)];export class AIChatHistoryUI extends _0x20029e{static get[_0x182bb0(0x109)](){return[_0x5d6230];}[_0x182bb0(0xee)];static get[_0x182bb0(0x102)](){const _0x4c3a69=_0x182bb0;return _0x4c3a69(0xec);}static get[_0x182bb0(0xfe)](){return!0x0;}static get[_0x182bb0(0xf7)](){return!0x0;}constructor(_0x3e0e01){const _0x59e5ed=_0x182bb0;super(_0x3e0e01);const _0x9fbd9d=this[_0x59e5ed(0xfd)][_0x59e5ed(0xea)][_0x59e5ed(0x108)](_0x59e5ed(0xfa));this[_0x59e5ed(0xee)]=new _0x25f00f(this[_0x59e5ed(0xfd)][_0x59e5ed(0xe8)],_0x9fbd9d[_0x59e5ed(0x100)]),this[_0x59e5ed(0xee)][_0x59e5ed(0x101)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x9fbd9d[_0x59e5ed(0xed)][_0x59e5ed(0xf1)]({'id':_0x59e5ed(0x104),'buttonLabel':_0x2d7cf3(this[_0x59e5ed(0xfd)][_0x59e5ed(0xe8)],_0x59e5ed(0xf0)),'buttonIcon':_0x3d93cc,'order':0x0,'content':this[_0x59e5ed(0xee)]});}[_0x182bb0(0xe7)](_0x4de197){const _0x3a7122=_0x182bb0;this[_0x3a7122(0xee)][_0x3a7122(0xe7)](_0x4de197);}[_0x182bb0(0xf2)](_0x686018){const _0x1a2603=_0x182bb0;this[_0x1a2603(0xee)][_0x1a2603(0x10f)](_0x686018);}[_0x182bb0(0xf9)](_0x317ae2,_0x18b190){const _0x3f50cf=_0x182bb0;this[_0x3f50cf(0xee)][_0x3f50cf(0xf9)](_0x317ae2,_0x18b190);}[_0x182bb0(0x105)](_0x514531,_0x46a3f9,_0x481de8){const _0x5e9dc0=_0x182bb0;this[_0x5e9dc0(0xee)][_0x5e9dc0(0x105)](_0x514531,_0x46a3f9,_0x481de8);}[_0x182bb0(0x110)](_0x59af59){const _0x5957d8=_0x182bb0;this[_0x5957d8(0xee)][_0x5957d8(0xe2)]=_0x59af59;}[_0x182bb0(0xf6)](_0x3a535c){const _0xa37086=_0x182bb0;this[_0xa37086(0xee)][_0xa37086(0x10a)]=_0x3a535c;}[_0x182bb0(0x10b)](){const _0x55df9a=_0x182bb0;this[_0x55df9a(0xee)][_0x55df9a(0x10a)]='';}[_0x182bb0(0x10d)](_0x485f01){const _0xd4d970=_0x182bb0;this[_0xd4d970(0xee)][_0xd4d970(0x103)]=_0x485f01;}}function _0x252f(){const _0x3a153f=['removeHistoryItem','locale','42ZgWLdu','plugins','706065pqbJYY','AIChatHistoryUI','view','_historyView','openChat','AI_CHAT_HISTORY_HEADING','addTab','updateItems','341eCJhTZ','removeConversation','710410hMZeGD','showError','isPremiumPlugin','resizeTabs','updateItemTitle','AITabs','selectConversation','8255004JMuAlt','context','isOfficialPlugin','4549086JdFkCb','showResizeButton','delegate','pluginName','isMaximized','history','updateItemLoadingState','setConversationPinned','showConversationHistory','get','requires','errorMessage','hideError','5jxgOdJ','setIsMaximized','editConversationTitle','updateHistoryItemsWithCategories','setLoadingSkeleton','isLoading','2052268duKlwK','458576Gkhttv','1983534IvubOs','3YoGPpZ'];_0x252f=function(){return _0x3a153f;};return _0x252f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x705da2=_0x2ffd;(function(_0x915c34,_0x3df62b){const _0x4fff63=_0x2ffd,_0x236b82=_0x915c34();while(!![]){try{const _0x27f611=parseInt(_0x4fff63(0x133))/0x1+parseInt(_0x4fff63(0x110))/0x2*(-parseInt(_0x4fff63(0x128))/0x3)+-parseInt(_0x4fff63(0x12a))/0x4*(-parseInt(_0x4fff63(0x138))/0x5)+-parseInt(_0x4fff63(0x125))/0x6+-parseInt(_0x4fff63(0x119))/0x7*(-parseInt(_0x4fff63(0x10d))/0x8)+-parseInt(_0x4fff63(0x10f))/0x9*(parseInt(_0x4fff63(0x116))/0xa)+parseInt(_0x4fff63(0x12f))/0xb*(-parseInt(_0x4fff63(0x12e))/0xc);if(_0x27f611===_0x3df62b)break;else _0x236b82['push'](_0x236b82['shift']());}catch(_0x44aed8){_0x236b82['push'](_0x236b82['shift']());}}}(_0x14a0,0x476b6));import{EmitterMixin as _0x3a35ce}from'ckeditor5/src/utils.js';function _0x2ffd(_0x49079f,_0xbcd975){const _0x14a003=_0x14a0();return _0x2ffd=function(_0x2ffdda,_0x57fa83){_0x2ffdda=_0x2ffdda-0x10c;let _0x57de04=_0x14a003[_0x2ffdda];return _0x57de04;},_0x2ffd(_0x49079f,_0xbcd975);}import{AIChatHistoryItem as _0x2aea75}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3a35ce(){[_0x705da2(0x12b)]=[];[_0x705da2(0x113)];[_0x705da2(0x12d)];constructor({connector:_0x4562c3,group:_0x1d89c0}){const _0x231e0b=_0x705da2;super(),this[_0x231e0b(0x113)]=_0x4562c3,this[_0x231e0b(0x12d)]=_0x1d89c0;}async[_0x705da2(0x136)](){const _0x27f419=_0x705da2;try{const _0x4f620e=this[_0x27f419(0x113)][_0x27f419(0x123)](this[_0x27f419(0x12d)]),_0x4619a9=await _0x4f620e[_0x27f419(0x139)]();this[_0x27f419(0x11b)](_0x4619a9);}catch(_0x20cee6){this[_0x27f419(0x130)](_0x27f419(0x13a),{'error':_0x20cee6,'operation':_0x27f419(0x136)});}}[_0x705da2(0x135)](_0x591671){const _0x5429da=_0x705da2;this[_0x5429da(0x12b)][_0x5429da(0x13c)](_0x591671);}async[_0x705da2(0x129)](_0x1e4fac){const _0x3ec2ce=_0x705da2,_0x4f818c=this[_0x3ec2ce(0x12b)][_0x3ec2ce(0x114)](_0x419c14=>_0x419c14['id']===_0x1e4fac);if(-0x1===_0x4f818c)return!0x1;try{return await this[_0x3ec2ce(0x113)][_0x3ec2ce(0x11a)](_0x1e4fac)[_0x3ec2ce(0x121)](),this[_0x3ec2ce(0x12b)][_0x3ec2ce(0x120)](_0x4f818c,0x1),this[_0x3ec2ce(0x130)](_0x3ec2ce(0x13b),{'itemId':_0x1e4fac}),!0x0;}catch(_0x52d396){return this[_0x3ec2ce(0x130)](_0x3ec2ce(0x13a),{'error':_0x52d396,'operation':_0x3ec2ce(0x129),'itemId':_0x1e4fac}),!0x1;}}[_0x705da2(0x111)](_0x5cc73a){const _0x8ba3a0=_0x705da2;return this[_0x8ba3a0(0x12b)][_0x8ba3a0(0x10c)](_0x3e9425=>_0x3e9425['id']===_0x5cc73a);}async[_0x705da2(0x11e)](_0x52f1f0,_0x11026c){const _0x248a75=_0x705da2,_0x28a6d4=this[_0x248a75(0x111)](_0x52f1f0);if(!_0x28a6d4)return!0x1;try{return await this[_0x248a75(0x113)][_0x248a75(0x118)](_0x52f1f0,{'title':_0x11026c})[_0x248a75(0x10e)](),_0x28a6d4[_0x248a75(0x117)](_0x11026c),this[_0x248a75(0x130)](_0x248a75(0x112),{'itemId':_0x52f1f0,'updates':{'title':_0x11026c}}),!0x0;}catch(_0x26e5a4){return this[_0x248a75(0x130)](_0x248a75(0x13a),{'error':_0x26e5a4,'operation':_0x248a75(0x11e),'itemId':_0x52f1f0}),!0x1;}}async[_0x705da2(0x115)](_0xbef043,_0x551192){const _0x3fecff=_0x705da2,_0x2e03ee=this[_0x3fecff(0x111)](_0xbef043);if(!_0x2e03ee)return!0x1;try{return await this[_0x3fecff(0x113)][_0x3fecff(0x118)](_0xbef043,{'pinned':_0x551192})[_0x3fecff(0x10e)](),_0x2e03ee[_0x3fecff(0x126)](_0x551192),this[_0x3fecff(0x130)](_0x3fecff(0x112),{'itemId':_0xbef043,'updates':{'pinned':_0x551192}}),!0x0;}catch(_0x5e9d42){return this[_0x3fecff(0x130)](_0x3fecff(0x13a),{'error':_0x5e9d42,'operation':_0x3fecff(0x115),'itemId':_0xbef043}),!0x1;}}[_0x705da2(0x11b)](_0x48d1e4){const _0x24dd7f=_0x705da2;try{this[_0x24dd7f(0x12b)]=[],_0x48d1e4[_0x24dd7f(0x124)](_0x2764fa=>{const _0x37b6cd=_0x24dd7f;this[_0x37b6cd(0x135)](new _0x2aea75(_0x2764fa));}),this[_0x24dd7f(0x130)](_0x24dd7f(0x132),{'items':[...this[_0x24dd7f(0x12b)]]});}catch(_0x14a0a7){this[_0x24dd7f(0x130)](_0x24dd7f(0x13a),{'error':_0x14a0a7,'operation':_0x24dd7f(0x11b)});}}[_0x705da2(0x11c)](_0x329840={}){const _0x4993f9=_0x705da2,_0x5f1f36=void 0x0!==_0x329840[_0x4993f9(0x11f)]&&_0x329840[_0x4993f9(0x11f)],_0x3ec8b5=_0x329840[_0x4993f9(0x127)]?new Date(_0x329840[_0x4993f9(0x127)][_0x4993f9(0x11d)](),_0x329840[_0x4993f9(0x127)][_0x4993f9(0x131)](),_0x329840[_0x4993f9(0x127)][_0x4993f9(0x137)]()):null,_0x5c80d1=_0x329840['to']?new Date(_0x329840['to'][_0x4993f9(0x11d)](),_0x329840['to'][_0x4993f9(0x131)](),_0x329840['to'][_0x4993f9(0x137)]()):null;return this[_0x4993f9(0x12b)][_0x4993f9(0x122)](_0x280eeb=>{const _0x1f1202=_0x4993f9;if(_0x280eeb[_0x1f1202(0x11f)]!==_0x5f1f36)return!0x1;if(_0x5c80d1){const _0x83bf17=new Date(_0x280eeb[_0x1f1202(0x134)][_0x1f1202(0x11d)](),_0x280eeb[_0x1f1202(0x134)][_0x1f1202(0x131)](),_0x280eeb[_0x1f1202(0x134)][_0x1f1202(0x137)]());return _0x3ec8b5?_0x3ec8b5[_0x1f1202(0x12c)]()===_0x5c80d1[_0x1f1202(0x12c)]()?_0x83bf17[_0x1f1202(0x12c)]()===_0x3ec8b5[_0x1f1202(0x12c)]():_0x83bf17<_0x5c80d1&&_0x83bf17>=_0x3ec8b5:_0x83bf17<_0x5c80d1;}return!0x0;});}}function _0x14a0(){const _0x3d903d=['group','23952Nyipmy','11ivyrFf','fire','getMonth','itemsLoaded','458408szwKnm','createdAt','addItem','init','getDate','5JawNMX','getConversations','error','itemRemoved','push','find','4016104IFlIIJ','getResult','216yykKnG','8DYdyxt','getItem','itemUpdated','connector','findIndex','updateItemPinned','176260fvUNuo','updateTitle','updateConversation','7GjMznk','deleteConversation','loadItems','getItems','getFullYear','updateItemTitle','pinned','splice','execute','filter','fetchConversations','map','1517400GKaMTl','updatePinned','from','257964GjdQKd','removeItem','1415940rLREfg','items','getTime'];_0x14a0=function(){return _0x3d903d;};return _0x14a0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5e89(){var _0x1c7b4e=['477TqNVcw','2360652oBkhCF','77sXuymr','3908532lDdGln','241886IkgYxz','55435JpwAFp','createdAt','304450DpcBdW','143568ApWIuD','738dgIMza','updateTitle','6sZkoqX','pinned','title','252iPlwuS','updatedAt','updatePinned','669020WHgJys','set'];_0x5e89=function(){return _0x1c7b4e;};return _0x5e89();}var _0x59c973=_0xa2cf;(function(_0x49d836,_0x137319){var _0x55dc19=_0xa2cf,_0x33c0f0=_0x49d836();while(!![]){try{var _0x895e0b=-parseInt(_0x55dc19(0xb8))/0x1*(-parseInt(_0x55dc19(0xb1))/0x2)+parseInt(_0x55dc19(0xb0))/0x3+-parseInt(_0x55dc19(0xbe))/0x4+parseInt(_0x55dc19(0xb2))/0x5*(-parseInt(_0x55dc19(0xb6))/0x6)+-parseInt(_0x55dc19(0xbb))/0x7*(-parseInt(_0x55dc19(0xb5))/0x8)+parseInt(_0x55dc19(0xad))/0x9*(-parseInt(_0x55dc19(0xb4))/0xa)+-parseInt(_0x55dc19(0xaf))/0xb*(-parseInt(_0x55dc19(0xae))/0xc);if(_0x895e0b===_0x137319)break;else _0x33c0f0['push'](_0x33c0f0['shift']());}catch(_0x58ca08){_0x33c0f0['push'](_0x33c0f0['shift']());}}}(_0x5e89,0xdd738));import{ObservableMixin as _0x34822f}from'ckeditor5/src/utils.js';function _0xa2cf(_0x4cd9a4,_0x20113e){var _0x5e894b=_0x5e89();return _0xa2cf=function(_0xa2cf1f,_0x5380b4){_0xa2cf1f=_0xa2cf1f-0xac;var _0x2d38df=_0x5e894b[_0xa2cf1f];return _0x2d38df;},_0xa2cf(_0x4cd9a4,_0x20113e);}import{escape as _0x364549}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x34822f(){['id'];[_0x59c973(0xb3)];constructor({id:_0x3b70d4,title:_0x4bf35f,createdAt:_0x26c67f,updatedAt:_0x180de0,pinned:_0x42cd13}){var _0x1d0913=_0x59c973;super(),this['id']=_0x3b70d4,this[_0x1d0913(0xb3)]=new Date(_0x26c67f),this[_0x1d0913(0xac)](_0x1d0913(0xba),_0x4bf35f),this[_0x1d0913(0xac)](_0x1d0913(0xbc),_0x180de0?new Date(_0x180de0):null),this[_0x1d0913(0xac)](_0x1d0913(0xb9),_0x42cd13||!0x1);}[_0x59c973(0xb7)](_0x39e9a9){var _0x29b282=_0x59c973;this[_0x29b282(0xac)](_0x29b282(0xba),_0x364549(_0x39e9a9)),this[_0x29b282(0xbc)]=new Date();}[_0x59c973(0xbd)](_0x32cf2a){var _0x39e4c1=_0x59c973;this[_0x39e4c1(0xac)](_0x39e4c1(0xb9),_0x32cf2a),this[_0x39e4c1(0xbc)]=new Date();}}
|