@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2-alpha.1
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 _0x323fbc,IconView as _0x5ca3ad,LabeledFieldView as _0x40c1ed,createLabeledInputText as _0x143b3c}from'ckeditor5/src/ui.js';import{IconLoupe as _0x3a4671,IconCancel as _0x1f2e2f}from'ckeditor5/src/icons.js';import{getTranslation as _0x3e919b}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x40c1ed{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x4c59f6){const t=_0x4c59f6['t'],_0x40af0e={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x143b3c,'label':_0x3e919b(_0x4c59f6,'AI_CHAT_SEARCH_RESOURCES')};super(_0x4c59f6,_0x40af0e['creator']),this['label']=_0x40af0e['label'],this['_viewConfig']=_0x40af0e,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x4c59f6,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x1ca97e){this['fire']('search',_0x1ca97e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x5ca3ad(),this['iconView']['content']=_0x3a4671,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x220682,t){this['resetButtonView']=new _0x323fbc(_0x220682),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x1f2e2f,'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',_0x516e75=>!_0x516e75),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
|
-
|
|
23
|
+
const _0x3250f0=_0xd7d8;(function(_0x186c24,_0x3bb578){const _0x56d631=_0xd7d8,_0x45ee87=_0x186c24();while(!![]){try{const _0x5d5dfd=parseInt(_0x56d631(0x1c9))/0x1*(parseInt(_0x56d631(0x1de))/0x2)+-parseInt(_0x56d631(0x1d9))/0x3*(-parseInt(_0x56d631(0x1cb))/0x4)+parseInt(_0x56d631(0x1e6))/0x5+parseInt(_0x56d631(0x1c8))/0x6*(parseInt(_0x56d631(0x1d3))/0x7)+-parseInt(_0x56d631(0x1e3))/0x8*(-parseInt(_0x56d631(0x1d0))/0x9)+-parseInt(_0x56d631(0x1cf))/0xa*(parseInt(_0x56d631(0x1df))/0xb)+-parseInt(_0x56d631(0x1d8))/0xc;if(_0x5d5dfd===_0x3bb578)break;else _0x45ee87['push'](_0x45ee87['shift']());}catch(_0x2dab57){_0x45ee87['push'](_0x45ee87['shift']());}}}(_0x2602,0xaa846));function _0xd7d8(_0x1823c5,_0x250120){const _0x2602d5=_0x2602();return _0xd7d8=function(_0xd7d893,_0x205d12){_0xd7d893=_0xd7d893-0x1c7;let _0x335bc7=_0x2602d5[_0xd7d893];return _0x335bc7;},_0xd7d8(_0x1823c5,_0x250120);}import{View as _0x162f21}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x254cf4}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x557c8d}from'../controls/aichatchipsoverflowmanager.js';const Bo=_0x3250f0(0x1e7),Mo=_0x3250f0(0x1d6),yo=_0x3250f0(0x1e2),Fo=_0x3250f0(0x1d1),Io=_0x3250f0(0x1d7),Vo=_0x3250f0(0x1c7);function _0x2602(){const _0x266abb=['_createContextChips','20CUtEqH','destroy','setTemplate','setContainerElement','70xHfNws','9XRoJbK','ck-ai-chat-controls-button','div','2457FIEPPc','element','reorganizeChips','ck-ai-chat-context-chips-wrapper','ck-ai-chat-controls_context_show-more-button','35852460DDtkwm','248553XcBwgZ','render','locale','querySelector','ck-reset_all','2LoLwVd','1842214WBnNjH','createCollection','add','ck-ai-chat-context-chips-wrapper-balloon','10945912hahbRQ','_contextChips','_overflowManager','6118120ZoxNZV','ck-ai-chat__feed__context-chips','_bodyCollection','ck-ai-chat-context-controls__show-more-balloon-panel','16194gkJCBL','904994kEKUOa'];_0x2602=function(){return _0x266abb;};return _0x2602();}export class AIChatFeedContextChipsView extends _0x162f21{[_0x3250f0(0x1e4)]=this[_0x3250f0(0x1e0)]();[_0x3250f0(0x1e5)];[_0x3250f0(0x1e8)];constructor(_0x423bc4,_0x246340,_0x5d1cf5){const _0x19af1c=_0x3250f0;super(_0x423bc4),this[_0x19af1c(0x1e8)]=_0x5d1cf5,this[_0x19af1c(0x1ca)](_0x246340);const _0x795885={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Vo,'overflowContainer':yo,'controlsButton':Fo}};this[_0x19af1c(0x1e5)]=new _0x557c8d(_0x423bc4,this[_0x19af1c(0x1e4)],_0x795885,this[_0x19af1c(0x1e8)],this),this[_0x19af1c(0x1cd)]({'tag':_0x19af1c(0x1d2),'attributes':{'class':[Bo,'ck',_0x19af1c(0x1dd)]},'children':[{'tag':_0x19af1c(0x1d2),'attributes':{'class':Mo},'children':this[_0x19af1c(0x1e4)]}]});}[_0x3250f0(0x1da)](){const _0x278494=_0x3250f0;super[_0x278494(0x1da)]();const _0x14610c=this[_0x278494(0x1d4)][_0x278494(0x1dc)]('.'+Mo);_0x14610c&&(this[_0x278494(0x1e5)][_0x278494(0x1ce)](_0x14610c),this[_0x278494(0x1e5)][_0x278494(0x1d5)]());}[_0x3250f0(0x1cc)](){const _0x9cce10=_0x3250f0;super[_0x9cce10(0x1cc)](),this[_0x9cce10(0x1e5)][_0x9cce10(0x1cc)]();}[_0x3250f0(0x1ca)](_0x5bbe9b){const _0x11df9b=_0x3250f0;for(const _0xca3dbf of _0x5bbe9b){const _0x63bdcf=new _0x254cf4(this[_0x11df9b(0x1db)],_0xca3dbf,!0x0,!0x1);this[_0x11df9b(0x1e4)][_0x11df9b(0x1e1)](_0x63bdcf);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x393d57=_0x4e9d;(function(_0x5943b8,_0x4dcd25){var _0x30f28c=_0x4e9d,_0x4d3721=_0x5943b8();while(!![]){try{var _0x1d1f4e=parseInt(_0x30f28c(0x16d))/0x1+parseInt(_0x30f28c(0x16b))/0x2*(parseInt(_0x30f28c(0x170))/0x3)+-parseInt(_0x30f28c(0x16e))/0x4+-parseInt(_0x30f28c(0x16c))/0x5*(-parseInt(_0x30f28c(0x15e))/0x6)+-parseInt(_0x30f28c(0x16a))/0x7+-parseInt(_0x30f28c(0x161))/0x8*(-parseInt(_0x30f28c(0x165))/0x9)+-parseInt(_0x30f28c(0x166))/0xa*(-parseInt(_0x30f28c(0x16f))/0xb);if(_0x1d1f4e===_0x4dcd25)break;else _0x4d3721['push'](_0x4d3721['shift']());}catch(_0x44ccfd){_0x4d3721['push'](_0x4d3721['shift']());}}}(_0x44d9,0xc194a));import{AIChatFeedItemView as _0x340c97}from'./aichatfeeditemview.js';function _0x44d9(){var _0x486e4a=['extendTemplate','innerHTML','45HJgTXD','10cjUVEl','element','render','ck-ai-chat__feed__custom-element','10943429wrXuvT','446UXVDRj','11145jsjGYP','319077EcLazH','5151292jphONd','12183369eMORTV','10629ZOGCXK','content','894PtgjGW','options','string','1752336FphrTK','appendChild'];_0x44d9=function(){return _0x486e4a;};return _0x44d9();}function _0x4e9d(_0x2a7d83,_0x37d8c9){var _0x44d97c=_0x44d9();return _0x4e9d=function(_0x4e9dca,_0x1b06cd){_0x4e9dca=_0x4e9dca-0x15d;var _0x4ec42e=_0x44d97c[_0x4e9dca];return _0x4ec42e;},_0x4e9d(_0x2a7d83,_0x37d8c9);}export class AIChatFeedCustomElementView extends _0x340c97{constructor(_0x57eee4){var _0x3f1a15=_0x4e9d;super(_0x57eee4),this[_0x3f1a15(0x163)]({'attributes':{'class':[_0x3f1a15(0x169)]}});}async[_0x393d57(0x168)](){var _0x39d9c4=_0x393d57;super[_0x39d9c4(0x168)](),_0x39d9c4(0x160)==typeof this[_0x39d9c4(0x15f)][_0x39d9c4(0x15d)]?this[_0x39d9c4(0x167)][_0x39d9c4(0x164)]=this[_0x39d9c4(0x15f)][_0x39d9c4(0x15d)]:this[_0x39d9c4(0x167)][_0x39d9c4(0x162)](this[_0x39d9c4(0x15f)][_0x39d9c4(0x15d)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x34bf(_0x583a76,_0x3a54a9){var _0x1601bb=_0x1601();return _0x34bf=function(_0x34bf01,_0x2e27e8){_0x34bf01=_0x34bf01-0x133;var _0x570b19=_0x1601bb[_0x34bf01];return _0x570b19;},_0x34bf(_0x583a76,_0x3a54a9);}var _0x5b3600=_0x34bf;(function(_0x54f529,_0x3dc9d7){var _0x437575=_0x34bf,_0x1bf6fb=_0x54f529();while(!![]){try{var _0x261975=parseInt(_0x437575(0x136))/0x1*(parseInt(_0x437575(0x135))/0x2)+parseInt(_0x437575(0x143))/0x3*(parseInt(_0x437575(0x13b))/0x4)+parseInt(_0x437575(0x13f))/0x5*(parseInt(_0x437575(0x142))/0x6)+-parseInt(_0x437575(0x144))/0x7+-parseInt(_0x437575(0x14a))/0x8+-parseInt(_0x437575(0x139))/0x9*(parseInt(_0x437575(0x13a))/0xa)+parseInt(_0x437575(0x146))/0xb;if(_0x261975===_0x3dc9d7)break;else _0x1bf6fb['push'](_0x1bf6fb['shift']());}catch(_0x583db6){_0x1bf6fb['push'](_0x1bf6fb['shift']());}}}(_0x1601,0x26538));function _0x1601(){var _0x1cd07b=['3970iqhoAj','level','innerHTML','24qmWfcc','3NBYcVA','1777496pEQfew','element','3083685edexNh','options','initialContent','extendTemplate','357832fSCTHf','setContent','warning','2JhJQVd','59119ZvjgDq','ck-ai-notification','markAsDone','8010KqGKCW','480dIhCRz','622924LawWkU','ck-ai-notification_error','render','ck-ai-notification_warning'];_0x1601=function(){return _0x1cd07b;};return _0x1601();}import{AIChatFeedItemView as _0x54b370}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x54b370{constructor(_0x14a0b6){var _0x39ffb1=_0x34bf;super(_0x14a0b6),this[_0x39ffb1(0x149)]({'attributes':{'class':[_0x39ffb1(0x137),_0x39ffb1(0x134)===_0x14a0b6[_0x39ffb1(0x140)]?_0x39ffb1(0x13e):_0x39ffb1(0x13c)]}});}[_0x5b3600(0x13d)](){var _0x218480=_0x5b3600;super[_0x218480(0x13d)](),this[_0x218480(0x133)](this[_0x218480(0x147)][_0x218480(0x148)]),this[_0x218480(0x138)]();}[_0x5b3600(0x133)](_0x40a086){var _0x3573d5=_0x5b3600;this[_0x3573d5(0x145)][_0x3573d5(0x141)]=_0x40a086;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2f3e(){const _0x55a272=['ck-hidden','capabilities','ck-ai-chat__feed__interaction-header__capabilities__text','children','add','11728701EHZMQU','div','176892Gpwvee','4340728cuxvph','705445wnoJHR','extendTemplate','2513456riyxux','68qnOyGT','content','ck-ai-chat__feed__interaction-header__capabilities','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','22215OGIPkv','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','span','setTemplate','54WQFVPg','12854104TdzcRb','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'];_0x2f3e=function(){return _0x55a272;};return _0x2f3e();}const _0x14baae=_0x28ee;(function(_0x2c6442,_0x5142ca){const _0x67219b=_0x28ee,_0x2c6487=_0x2c6442();while(!![]){try{const _0x5e6a6c=parseInt(_0x67219b(0xca))/0x1+-parseInt(_0x67219b(0xce))/0x2+parseInt(_0x67219b(0xd4))/0x3*(-parseInt(_0x67219b(0xcf))/0x4)+-parseInt(_0x67219b(0xcc))/0x5*(-parseInt(_0x67219b(0xd9))/0x6)+parseInt(_0x67219b(0xcb))/0x7+parseInt(_0x67219b(0xc1))/0x8+-parseInt(_0x67219b(0xc8))/0x9;if(_0x5e6a6c===_0x5142ca)break;else _0x2c6487['push'](_0x2c6487['shift']());}catch(_0x25dff5){_0x2c6487['push'](_0x2c6487['shift']());}}}(_0x2f3e,0xf126e));import{IconBulb as _0x15ac79,IconWeb as _0x2a9c43}from'@ckeditor/ckeditor5-icons';function _0x28ee(_0x4187cf,_0x5d9a4b){const _0x2f3e97=_0x2f3e();return _0x28ee=function(_0x28eecd,_0x198a48){_0x28eecd=_0x28eecd-0xc1;let _0x1fa799=_0x2f3e97[_0x28eecd];return _0x1fa799;},_0x28ee(_0x4187cf,_0x5d9a4b);}import{IconView as _0x3a94b3,View as _0x2a0312}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x8f7c58}from'./aichatfeeditemview.js';import{getTranslation as _0x10afe7}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x8f7c58{[_0x14baae(0xc4)];constructor(_0xf5ce20,_0x3f6e67){const _0x362823=_0x14baae;super(_0x3f6e67);const {isWebSearchEnabled:_0x595891,isReasoningEnabled:_0x64276c}=_0x3f6e67[_0x362823(0xc4)],_0x3a8740=[];let _0xdf928='';_0x595891&&_0x64276c?(_0xdf928=_0x10afe7(_0xf5ce20,_0x362823(0xc2)),_0x3a8740[_0x362823(0xd2)](ca(_0x2a9c43)),_0x3a8740[_0x362823(0xd2)](ca(_0x15ac79))):_0x595891?(_0xdf928=_0x10afe7(_0xf5ce20,_0x362823(0xd6)),_0x3a8740[_0x362823(0xd2)](ca(_0x2a9c43))):_0x64276c&&(_0xdf928=_0x10afe7(_0xf5ce20,_0x362823(0xd3)),_0x3a8740[_0x362823(0xd2)](ca(_0x15ac79))),this[_0x362823(0xcd)]({'attributes':{'class':[_0x362823(0xd5),_0xdf928?'':_0x362823(0xc3)]}});const _0x2d4a44=new _0x2a0312();_0x2d4a44[_0x362823(0xd8)]({'tag':_0x362823(0xc9),'attributes':{'class':['ck',_0x362823(0xd1)]},'children':[..._0x3a8740,{'tag':_0x362823(0xd7),'attributes':{'class':[_0x362823(0xc5)]},'children':[_0xdf928]}]}),this[_0x362823(0xc6)][_0x362823(0xc7)](_0x2d4a44),this[_0x362823(0xc4)]=_0x3f6e67[_0x362823(0xc4)];}}function ca(_0x5249ed){const _0x38e710=_0x14baae,_0x21c16a=new _0x3a94b3();return _0x21c16a[_0x38e710(0xd0)]=_0x5249ed,_0x21c16a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d11da=_0x32b8;(function(_0x306f21,_0x29e7d1){const _0x4717ff=_0x32b8,_0x50da5a=_0x306f21();while(!![]){try{const _0x27c590=-parseInt(_0x4717ff(0x1c2))/0x1+parseInt(_0x4717ff(0x1b3))/0x2*(-parseInt(_0x4717ff(0x1c7))/0x3)+-parseInt(_0x4717ff(0x1b9))/0x4*(-parseInt(_0x4717ff(0x1ac))/0x5)+-parseInt(_0x4717ff(0x1c6))/0x6*(parseInt(_0x4717ff(0x1c9))/0x7)+-parseInt(_0x4717ff(0x1bb))/0x8+-parseInt(_0x4717ff(0x1b8))/0x9+parseInt(_0x4717ff(0x1b4))/0xa;if(_0x27c590===_0x29e7d1)break;else _0x50da5a['push'](_0x50da5a['shift']());}catch(_0x2ac617){_0x50da5a['push'](_0x50da5a['shift']());}}}(_0x1f6e,0xbb5cf));import{View as _0x526338}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x4fff8d}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x526338{[_0x2d11da(0x1c3)];[_0x2d11da(0x1ae)]='';[_0x2d11da(0x1ad)];[_0x2d11da(0x1ba)];constructor(_0x25efe5){const _0x3dd744=_0x2d11da;super();const _0x3398ca=this[_0x3dd744(0x1a7)];this[_0x3dd744(0x1a9)](_0x3dd744(0x1b5),!0x1),this[_0x3dd744(0x1a9)](_0x3dd744(0x1b2),!0x0),this[_0x3dd744(0x1ad)]=new _0x4fff8d({'textNodeStyle':_0x3dd744(0x1be),'delay':0x14}),this[_0x3dd744(0x1c3)]=_0x25efe5,this[_0x3dd744(0x1ba)]=this[_0x3dd744(0x1b0)](),this[_0x3dd744(0x1a8)]({'tag':_0x3dd744(0x1c1),'attributes':{'class':['ck',_0x3dd744(0x1b7),_0x3398ca['if'](_0x3dd744(0x1b5),_0x3dd744(0x1bf)),_0x3398ca['if'](_0x3dd744(0x1b2),_0x3dd744(0x1c5),_0x4db550=>!_0x4db550),_0x3dd744(0x1aa)],'data-cke-ai-id':this[_0x3dd744(0x1c3)]['id']},'children':this[_0x3dd744(0x1ba)]});}[_0x2d11da(0x1c0)](){const _0x46a82b=_0x2d11da;this[_0x46a82b(0x1ad)][_0x46a82b(0x1a6)]({'targetElement':this[_0x46a82b(0x1bd)]}),this[_0x46a82b(0x1bd)][_0x46a82b(0x1b6)](_0x46a82b(0x1c8))[_0x46a82b(0x1b1)](_0x38275c=>{const _0x5c509e=_0x46a82b;_0x38275c[_0x5c509e(0x1ab)](_0x5c509e(0x1af));}),this[_0x46a82b(0x1b5)]=!0x0;}async[_0x2d11da(0x1c4)](_0x2c6c92,_0x2db971,_0x591a39){const _0x3dee4d=_0x2d11da;await this[_0x3dee4d(0x1ad)][_0x3dee4d(0x1bc)]({'document':_0x2c6c92,'targetElement':_0x2db971,'abortSignal':_0x591a39});}}function _0x32b8(_0x528354,_0x5bbe94){const _0x1f6e61=_0x1f6e();return _0x32b8=function(_0x32b818,_0x41e932){_0x32b818=_0x32b818-0x1a6;let _0x76a388=_0x1f6e61[_0x32b818];return _0x76a388;},_0x32b8(_0x528354,_0x5bbe94);}function _0x1f6e(){const _0x15dd9b=['element','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-ai-chat__feed__item_done','markAsDone','div','1373657MEiaLQ','options','streamIntoElement','ck-hidden','2055648nrhSNh','2607747odtzEQ','[data-id]','21ZeJMJN','cleanUpAnimations','bindTemplate','setTemplate','set','ck-ai-chat__feed__text-item','removeAttribute','1045CndsgA','htmlStreamer','content','data-id','createCollection','forEach','isVisible','2ygQFDM','50187940KDvpxO','isDone','querySelectorAll','ck-ai-chat__feed__item','5648175igjfNd','18932WnByOh','children','10737976MWTMoh','stream'];_0x1f6e=function(){return _0x15dd9b;};return _0x1f6e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37e7f5=_0x4221;(function(_0x57b427,_0x9914fe){const _0x316f96=_0x4221,_0xc6d895=_0x57b427();while(!![]){try{const _0x2d9b33=-parseInt(_0x316f96(0x8b))/0x1*(parseInt(_0x316f96(0x97))/0x2)+parseInt(_0x316f96(0xa6))/0x3+-parseInt(_0x316f96(0x94))/0x4*(-parseInt(_0x316f96(0x91))/0x5)+parseInt(_0x316f96(0x93))/0x6*(-parseInt(_0x316f96(0x88))/0x7)+-parseInt(_0x316f96(0x92))/0x8+parseInt(_0x316f96(0xa7))/0x9+parseInt(_0x316f96(0x9c))/0xa*(parseInt(_0x316f96(0x9a))/0xb);if(_0x2d9b33===_0x9914fe)break;else _0xc6d895['push'](_0xc6d895['shift']());}catch(_0x5bf9ca){_0xc6d895['push'](_0xc6d895['shift']());}}}(_0x13ab,0x7c19e));import{AIChatFeedItemView as _0x525617}from'./aichatfeeditemview.js';import{parse as _0x10eaef,render as _0x3cb0db}from'../../../aicore/utils/htmlparser.js';import{View as _0x4f47e1}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x536f94,AIWebSourceView as _0x270e42}from'../../../aicore/ui/suggestioncontainer/aiwebsourcesview.js';export class AIChatFeedReplyItemView extends _0x525617{[_0x37e7f5(0x85)];[_0x37e7f5(0x9b)];constructor(_0x2a9698,_0x3e35b7,_0x1687ee){const _0x16aea6=_0x37e7f5;super(_0x3e35b7),this[_0x16aea6(0x9b)]=_0x1687ee,this[_0x16aea6(0x9e)]=_0x2a9698,this[_0x16aea6(0x98)]({'attributes':{'class':[_0x16aea6(0x95)]}}),this[_0x16aea6(0x85)]=new _0x4f47e1(),this[_0x16aea6(0x85)][_0x16aea6(0x89)]({'tag':_0x16aea6(0x99),'attributes':{'class':['ck',_0x16aea6(0xa4),_0x16aea6(0x96)]}}),this[_0x16aea6(0x8c)][_0x16aea6(0xa8)](this[_0x16aea6(0x85)]);}async[_0x37e7f5(0x8f)](){const _0x4ef04c=_0x37e7f5;super[_0x4ef04c(0x8f)](),this[_0x4ef04c(0x87)][_0x4ef04c(0xa3)]&&(await this[_0x4ef04c(0xa1)]({'parsedContent':_0x10eaef(this[_0x4ef04c(0x87)][_0x4ef04c(0xa3)]),'renderingStrategy':_0x4ef04c(0x9d)}),this[_0x4ef04c(0x9f)]());}async[_0x37e7f5(0xa1)]({parsedContent:_0x4d47a7,renderingStrategy:_0x3905c7,abortSignal:_0x2daf58}){const _0x17ff7c=_0x37e7f5;_0x17ff7c(0xa2)===_0x3905c7?await this[_0x17ff7c(0x8d)](_0x4d47a7,this[_0x17ff7c(0x85)][_0x17ff7c(0x8a)],_0x2daf58):this[_0x17ff7c(0x85)][_0x17ff7c(0x8a)][_0x17ff7c(0xa9)]=_0x3cb0db(_0x4d47a7);}[_0x37e7f5(0xa0)](_0x42d14c){const _0x4c017c=_0x37e7f5,_0x10c0e1=new _0x536f94(this[_0x4c017c(0x9e)],this[_0x4c017c(0x9b)]);_0x10c0e1[_0x4c017c(0x8c)][_0x4c017c(0xa5)](_0x42d14c[_0x4c017c(0x90)](_0x37c01f=>new _0x270e42(this[_0x4c017c(0x9e)],_0x37c01f,_0x10c0e1[_0x4c017c(0x8e)]))),_0x10c0e1[_0x4c017c(0x86)]=!0x0,this[_0x4c017c(0x8c)][_0x4c017c(0xa8)](_0x10c0e1);}}function _0x4221(_0x5252ed,_0xee5792){const _0x13abef=_0x13ab();return _0x4221=function(_0x4221c3,_0x14c0e5){_0x4221c3=_0x4221c3-0x85;let _0x3f348e=_0x13abef[_0x4221c3];return _0x3f348e;},_0x4221(_0x5252ed,_0xee5792);}function _0x13ab(){const _0x48d771=['initialContent','ck-reset_all-excluded','addMany','775545iHgohW','4275585TurkqI','add','innerHTML','replyContainer','isVisible','options','14VttASv','setTemplate','element','271ZQtJjN','children','streamIntoElement','balloonPanelView','render','map','187010bTVESc','7497088vYxcZp','1392990vJDpxj','108DmOOce','ck-ai-chat__feed__ai-reply','ck-ai-chat__feed__ai-reply-container','5042mEwNcv','extendTemplate','div','649RScfmz','_bodyCollection','143990eSfcWu','static','locale','markAsDone','updateSources','updateContent','streaming'];_0x13ab=function(){return _0x48d771;};return _0x13ab();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2e08(_0x21b87b,_0x3e462a){const _0x37d3c3=_0x37d3();return _0x2e08=function(_0x2e08ed,_0x5e2387){_0x2e08ed=_0x2e08ed-0xd2;let _0x4caece=_0x37d3c3[_0x2e08ed];return _0x4caece;},_0x2e08(_0x21b87b,_0x3e462a);}const _0x49e69a=_0x2e08;(function(_0xa23f4e,_0x4144aa){const _0x20a82f=_0x2e08,_0x2ba060=_0xa23f4e();while(!![]){try{const _0xecb60b=-parseInt(_0x20a82f(0x100))/0x1*(parseInt(_0x20a82f(0xf0))/0x2)+parseInt(_0x20a82f(0xda))/0x3*(-parseInt(_0x20a82f(0xe7))/0x4)+parseInt(_0x20a82f(0xe2))/0x5*(parseInt(_0x20a82f(0xe6))/0x6)+parseInt(_0x20a82f(0xeb))/0x7+-parseInt(_0x20a82f(0xe8))/0x8+-parseInt(_0x20a82f(0xdd))/0x9*(-parseInt(_0x20a82f(0xf1))/0xa)+parseInt(_0x20a82f(0x101))/0xb;if(_0xecb60b===_0x4144aa)break;else _0x2ba060['push'](_0x2ba060['shift']());}catch(_0x1dbfb0){_0x2ba060['push'](_0x2ba060['shift']());}}}(_0x37d3,0x198e4));import{ButtonView as _0x5f4219,View as _0x28a1f2}from'ckeditor5/src/ui.js';import{getTranslation as _0x371c62}from'../../../aicore/utils/common-translations.js';import{IconInfo as _0x1f1324}from'ckeditor5/src/icons.js';function _0x37d3(){const _0x42cc2a=['40qCnzcc','1399032RDWPLN','includes','ck-hidden','577031tOJhDL','set','ck-ai-chat__feed__ai-suggestion__actions','add','div','21778prtAAd','30TKWRbR','fire','_switchButtonLabelsPlurality','_insertSuggestionsButton','AI_CHAT_SUGGESTION_ACTION_APPLY','AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','locale','updateVisibility','setTemplate','AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL','isTrackChangesOn','AI_SUGGESTION_DISABLED_FEED_MESSAGE','label','execute','ck-ai-chat__feed__suggestion__actions__info','13ubdQxw','3223583DfNXvK','ck-ai-button-primary','AI_CHAT_SUGGESTION_ACTION_APPLY_ALL','addMany','_applyChangesButton','ck-ai-button-secondary','forEach','children','insertSuggestion','35814MhBSIi','change:isTrackChangesOn','isVisible','275697tSbJDW','bindTemplate','button','isEnabled','createCollection','15NDQWoO','AI_CHAT_SUGGESTION_ACTION_SUGGEST','bind','applySuggestion','146214DkWJek'];_0x37d3=function(){return _0x42cc2a;};return _0x37d3();}export const AI_REPLY_ACTIONS=[_0x49e69a(0xe5),_0x49e69a(0xd9)];export class AIChatFeedSuggestionItemActionsView extends _0x28a1f2{[_0x49e69a(0xd5)];[_0x49e69a(0xf4)];[_0x49e69a(0xd8)];constructor(_0x3bc099,_0x15d42f=[...AI_REPLY_ACTIONS],_0x5d05ea){const _0x3c0da1=_0x49e69a;super(_0x3bc099);const _0x45395b=this[_0x3c0da1(0xde)],_0x8ee3cc=Boolean(_0x5d05ea);if(this[_0x3c0da1(0xec)](_0x3c0da1(0xe0),!_0x8ee3cc),this[_0x3c0da1(0xec)](_0x3c0da1(0xdc),!0x1),this[_0x3c0da1(0xec)](_0x3c0da1(0xfb),!0x1),this[_0x3c0da1(0xd8)]=this[_0x3c0da1(0xe1)](),_0x8ee3cc){const _0x3031eb=new _0x5f4219(_0x3bc099);_0x3031eb[_0x3c0da1(0xec)]({'label':_0x371c62(_0x3bc099,_0x3c0da1(0xf6)),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':_0x1f1324});const _0x40520b=new _0x28a1f2(_0x3bc099);_0x40520b[_0x3c0da1(0xf9)]({'tag':_0x3c0da1(0xef),'attributes':{'class':_0x3c0da1(0xff)},'children':[{'tag':'p','children':[_0x371c62(_0x3bc099,_0x3c0da1(0xfc)),_0x3031eb]}]}),this[_0x3c0da1(0xd8)][_0x3c0da1(0xee)](_0x40520b);}else this[_0x3c0da1(0xd5)]=new _0x5f4219(_0x3bc099),this[_0x3c0da1(0xd5)][_0x3c0da1(0xec)]({'label':_0x371c62(_0x3bc099,_0x3c0da1(0xd3)),'withText':!0x0,'type':_0x3c0da1(0xdf),'isVisible':_0x15d42f[_0x3c0da1(0xe9)](_0x3c0da1(0xe5)),'class':_0x3c0da1(0xd2)}),this[_0x3c0da1(0xf4)]=new _0x5f4219(_0x3bc099),this[_0x3c0da1(0xf4)][_0x3c0da1(0xec)]({'label':_0x371c62(_0x3bc099,_0x3c0da1(0xfa)),'withText':!0x0,'type':_0x3c0da1(0xdf),'isVisible':_0x15d42f[_0x3c0da1(0xe9)](_0x3c0da1(0xd9)),'class':_0x3c0da1(0xd6)}),this[_0x3c0da1(0xf4)]['on'](_0x3c0da1(0xfe),()=>{const _0x338891=_0x3c0da1;this[_0x338891(0xf2)](_0x338891(0xd9));}),this[_0x3c0da1(0xd5)]['on'](_0x3c0da1(0xfe),()=>{const _0x5b6a9e=_0x3c0da1;this[_0x5b6a9e(0xf2)](_0x5b6a9e(0xe5));}),[this[_0x3c0da1(0xd5)],this[_0x3c0da1(0xf4)]][_0x3c0da1(0xd7)](_0x3c1ff5=>{const _0x31ae63=_0x3c0da1;_0x3c1ff5[_0x31ae63(0xe4)](_0x31ae63(0xe0))['to'](this);}),this[_0x3c0da1(0xd8)][_0x3c0da1(0xd4)]([this[_0x3c0da1(0xd5)],this[_0x3c0da1(0xf4)]]);this[_0x3c0da1(0xf9)]({'tag':_0x3c0da1(0xef),'attributes':{'class':['ck',_0x3c0da1(0xed),_0x45395b['if'](_0x3c0da1(0xdc),_0x3c0da1(0xea),_0x3f243c=>!_0x3f243c)]},'children':this[_0x3c0da1(0xd8)]}),this['on'](_0x3c0da1(0xdb),()=>{const _0x32c652=_0x3c0da1;this[_0x32c652(0xd5)]&&(this[_0x32c652(0xd5)][_0x32c652(0xdc)]=!this[_0x32c652(0xfb)]);});}[_0x49e69a(0xf8)](_0x5dddef){const _0x5c8266=_0x49e69a;this[_0x5c8266(0xdc)]=_0x5dddef;}[_0x49e69a(0xf3)](_0x20bf77){const _0x2a927f=_0x49e69a;this[_0x2a927f(0xd5)]&&this[_0x2a927f(0xf4)]&&(_0x20bf77?(this[_0x2a927f(0xd5)][_0x2a927f(0xfd)]=_0x371c62(this[_0x2a927f(0xf7)],_0x2a927f(0xd3)),this[_0x2a927f(0xf4)][_0x2a927f(0xfd)]=_0x371c62(this[_0x2a927f(0xf7)],_0x2a927f(0xfa))):(this[_0x2a927f(0xd5)][_0x2a927f(0xfd)]=_0x371c62(this[_0x2a927f(0xf7)],_0x2a927f(0xf5)),this[_0x2a927f(0xf4)][_0x2a927f(0xfd)]=_0x371c62(this[_0x2a927f(0xf7)],_0x2a927f(0xe3))));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x340f(){var _0x2773ff=['bind','insertSuggestion','bodyView','updatePartState','availableActions','14496447ZMiDts','updateContent','addMany','dislike','containerView','mouseLeaveSuggestion','rejectSuggestion','set','4321760YYkRJe','ck-ai-chat__feed__ai-suggestion','206732kQdmiN','showDiff','like','getPartView','extendTemplate','setPartActive','fire','children','updateSources','areActionsDisabled','mouseOverSuggestion','4764555tNKGig','697076rTdEUz','isTrackChangesOn','applySuggestion','toggleSuggestionDisplayMode','markAsDone','options','showChangeInText','5853570ZUIySb','1390542MjTMDV'];_0x340f=function(){return _0x2773ff;};return _0x340f();}var _0x3614f9=_0x5bc0;(function(_0x1cf776,_0x2e4234){var _0x14622a=_0x5bc0,_0x2e69f6=_0x1cf776();while(!![]){try{var _0x51819c=-parseInt(_0x14622a(0x93))/0x1+-parseInt(_0x14622a(0x87))/0x2+parseInt(_0x14622a(0x9b))/0x3+parseInt(_0x14622a(0xa9))/0x4+parseInt(_0x14622a(0x92))/0x5+parseInt(_0x14622a(0x9a))/0x6+-parseInt(_0x14622a(0xa1))/0x7;if(_0x51819c===_0x2e4234)break;else _0x2e69f6['push'](_0x2e69f6['shift']());}catch(_0x189e7b){_0x2e69f6['push'](_0x2e69f6['shift']());}}}(_0x340f,0x92c09));import{AIChatFeedItemView as _0x28f39c}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x3c6c83}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5bc0(_0x7b7034,_0x2dc244){var _0x340f35=_0x340f();return _0x5bc0=function(_0x5bc01,_0x3baba9){_0x5bc01=_0x5bc01-0x86;var _0x1d3e68=_0x340f35[_0x5bc01];return _0x1d3e68;},_0x5bc0(_0x7b7034,_0x2dc244);}export class AIChatFeedSuggestionItemView extends _0x28f39c{[_0x3614f9(0xa5)];constructor(_0x458830,_0x142f6b,_0x42429d){var _0x23c977=_0x3614f9;super(_0x142f6b),this[_0x23c977(0xa8)](_0x23c977(0x94),!0x1),this[_0x23c977(0xa5)]=new _0x3c6c83(_0x458830,{'showDiff':_0x142f6b[_0x23c977(0x88)],'areActionsDisabled':_0x142f6b[_0x23c977(0x90)],'availableActions':_0x142f6b[_0x23c977(0xa0)]},_0x42429d),this[_0x23c977(0xa5)]['on'](_0x23c977(0x96),(_0x161b95,_0x45a81c)=>{var _0x143689=_0x23c977;this[_0x143689(0x8d)](_0x143689(0x96),{'replyId':this[_0x143689(0x98)]['id'],'showDiff':_0x45a81c[_0x143689(0x88)]});}),this[_0x23c977(0xa5)][_0x23c977(0x9c)](_0x23c977(0x94))['to'](this),this[_0x23c977(0xa5)]['on'](_0x23c977(0x89),()=>{var _0x44a61b=_0x23c977;this[_0x44a61b(0x8d)](_0x44a61b(0x89),{'replyId':this[_0x44a61b(0x98)]['id']});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0xa4),()=>{var _0x21bd75=_0x23c977;this[_0x21bd75(0x8d)](_0x21bd75(0xa4),{'replyId':this[_0x21bd75(0x98)]['id']});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0x99),(_0x2b0b0e,{index:_0x49b76d})=>{var _0x3764ed=_0x23c977;this[_0x3764ed(0x8d)](_0x3764ed(0x99),{'replyId':this[_0x3764ed(0x98)]['id'],'partIndex':_0x49b76d});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0x95),(_0x5e9393,{index:_0x507f1a}={})=>{var _0x4ee18d=_0x23c977;this[_0x4ee18d(0x8d)](_0x4ee18d(0x95),{'replyId':this[_0x4ee18d(0x98)]['id'],'partIndex':_0x507f1a});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0x9d),(_0x186bd3,{index:_0x583aa7}={})=>{var _0x4364be=_0x23c977;this[_0x4364be(0x8d)](_0x4364be(0x9d),{'replyId':this[_0x4364be(0x98)]['id'],'partIndex':_0x583aa7});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0xa7),(_0x501b0d,{index:_0x5c345e})=>{var _0x53a0a2=_0x23c977;this[_0x53a0a2(0x8d)](_0x53a0a2(0xa7),{'replyId':this[_0x53a0a2(0x98)]['id'],'partIndex':_0x5c345e});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0x91),(_0x867e72,{index:_0x5a0727})=>{var _0x19846e=_0x23c977;this[_0x19846e(0x8d)](_0x19846e(0x91),{'replyId':this[_0x19846e(0x98)]['id'],'partIndex':_0x5a0727});}),this[_0x23c977(0xa5)]['on'](_0x23c977(0xa6),(_0x6a9ab6,{index:_0x4e3018})=>{var _0x29d596=_0x23c977;this[_0x29d596(0x8d)](_0x29d596(0xa6),{'replyId':this[_0x29d596(0x98)]['id'],'partIndex':_0x4e3018});}),this[_0x23c977(0x8e)][_0x23c977(0xa3)]([this[_0x23c977(0xa5)]]),this[_0x23c977(0x8b)]({'attributes':{'class':[_0x23c977(0x86)]}});}async[_0x3614f9(0xa2)](_0x2773e4){var _0x3efa78=_0x3614f9;await this[_0x3efa78(0xa5)][_0x3efa78(0xa2)](_0x2773e4);}[_0x3614f9(0x9f)](_0x177da9,_0xda3b8){var _0xca5134=_0x3614f9;this[_0xca5134(0xa5)][_0xca5134(0x9e)][_0xca5134(0x9f)](_0x177da9,_0xda3b8);}[_0x3614f9(0x8c)](_0x6b8a0b,_0x2102b1){var _0x158258=_0x3614f9;!0x1===_0x6b8a0b?this[_0x158258(0xa5)][_0x158258(0x9e)][_0x158258(0x8c)](!0x1):this[_0x158258(0xa5)][_0x158258(0x9e)][_0x158258(0x8c)](_0x6b8a0b,_0x2102b1);}[_0x3614f9(0x8f)](_0x174201){var _0x5432bf=_0x3614f9;this[_0x5432bf(0xa5)][_0x5432bf(0x8f)](_0x174201);}[_0x3614f9(0x8a)](_0x14e9df){var _0x4204db=_0x3614f9;return this[_0x4204db(0xa5)][_0x4204db(0x9e)][_0x4204db(0x8a)](_0x14e9df);}[_0x3614f9(0x97)](){var _0x5b8313=_0x3614f9;super[_0x5b8313(0x97)](),this[_0x5b8313(0xa5)][_0x5b8313(0x97)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1632(){var _0x47adf4=['ck-ai-chat__feed__message-content','markAsDone','ck-ai-chat__feed__context-chips','filter','innerHTML','2158514fHiXNw','length','_bodyCollection','_messageContentView','_createContextChipsView','children','div','contextItems','hidden','393570XgArEw','options','505588HFJwwq','8822848MzoiTY','initialContent','_locale','setTemplate','6437018NfxLSG','add','34573880dAwVVs','_contextChipsView','216NqyVTk','6SQfmwv','33vJqefn','1xcmYBC','extendTemplate','element','_createMessageContentView','render','ck-ai-chat__feed__user-message','5660615pwbaBk'];_0x1632=function(){return _0x47adf4;};return _0x1632();}var _0x1b5862=_0x41f7;(function(_0x57132c,_0x1750d8){var _0x388ce8=_0x41f7,_0x3e06bc=_0x57132c();while(!![]){try{var _0x35ae44=parseInt(_0x388ce8(0xc8))/0x1*(-parseInt(_0x388ce8(0xd4))/0x2)+parseInt(_0x388ce8(0xc7))/0x3*(-parseInt(_0x388ce8(0xbc))/0x4)+-parseInt(_0x388ce8(0xce))/0x5*(-parseInt(_0x388ce8(0xc6))/0x6)+-parseInt(_0x388ce8(0xc1))/0x7+-parseInt(_0x388ce8(0xbd))/0x8+-parseInt(_0x388ce8(0xc5))/0x9*(-parseInt(_0x388ce8(0xba))/0xa)+parseInt(_0x388ce8(0xc3))/0xb;if(_0x35ae44===_0x1750d8)break;else _0x3e06bc['push'](_0x3e06bc['shift']());}catch(_0x5b55a5){_0x3e06bc['push'](_0x3e06bc['shift']());}}}(_0x1632,0xb1aa5));import{AIChatFeedItemView as _0x4a0403}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x2e06b9}from'./aichatfeedcontextchipsview.js';import{View as _0x29e144}from'ckeditor5/src/ui.js';function _0x41f7(_0x199516,_0x2d845a){var _0x163256=_0x1632();return _0x41f7=function(_0x41f71c,_0x5857c3){_0x41f71c=_0x41f71c-0xb2;var _0x41bab3=_0x163256[_0x41f71c];return _0x41bab3;},_0x41f7(_0x199516,_0x2d845a);}export class AIChatFeedUserMessageItemView extends _0x4a0403{[_0x1b5862(0xc4)]=null;[_0x1b5862(0xbf)];[_0x1b5862(0xb3)];[_0x1b5862(0xb4)];constructor(_0x2764e1,_0x366a6a,_0x39cc2a){var _0x4565cc=_0x1b5862;super(_0x366a6a),this[_0x4565cc(0xbf)]=_0x2764e1,this[_0x4565cc(0xb3)]=_0x39cc2a,this[_0x4565cc(0xb5)](),this[_0x4565cc(0xcb)](),this[_0x4565cc(0xc9)]({'attributes':{'class':[_0x4565cc(0xcd)]}});}[_0x1b5862(0xb5)](){var _0x56521a=_0x1b5862;this[_0x56521a(0xbb)][_0x56521a(0xb8)]&&this[_0x56521a(0xbb)][_0x56521a(0xb8)][_0x56521a(0xb2)]>0x0&&(this[_0x56521a(0xc4)]=new _0x2e06b9(this[_0x56521a(0xbf)],this[_0x56521a(0xbb)][_0x56521a(0xb8)][_0x56521a(0xd2)](_0x549058=>!_0x549058[_0x56521a(0xb9)]),this[_0x56521a(0xb3)]),this[_0x56521a(0xc4)][_0x56521a(0xc9)]({'attributes':{'class':_0x56521a(0xd1)}}),this[_0x56521a(0xb6)][_0x56521a(0xc2)](this[_0x56521a(0xc4)]));}[_0x1b5862(0xcb)](){var _0x599395=_0x1b5862;this[_0x599395(0xb4)]=new _0x29e144(this[_0x599395(0xbf)]),this[_0x599395(0xb4)][_0x599395(0xc0)]({'tag':_0x599395(0xb7),'attributes':{'class':_0x599395(0xcf)}}),this[_0x599395(0xb6)][_0x599395(0xc2)](this[_0x599395(0xb4)]);}[_0x1b5862(0xcc)](){var _0x8ba626=_0x1b5862;super[_0x8ba626(0xcc)](),this[_0x8ba626(0xb4)][_0x8ba626(0xca)][_0x8ba626(0xd3)]=this[_0x8ba626(0xbb)][_0x8ba626(0xbe)],this[_0x8ba626(0xd0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x425c36=_0x4a5a;(function(_0x468c7a,_0x22fab8){const _0x1b9ef6=_0x4a5a,_0x4e642d=_0x468c7a();while(!![]){try{const _0x4e2bf4=parseInt(_0x1b9ef6(0xd4))/0x1*(-parseInt(_0x1b9ef6(0xd6))/0x2)+parseInt(_0x1b9ef6(0xca))/0x3+-parseInt(_0x1b9ef6(0xd1))/0x4*(-parseInt(_0x1b9ef6(0xd8))/0x5)+-parseInt(_0x1b9ef6(0xcb))/0x6*(parseInt(_0x1b9ef6(0xd7))/0x7)+-parseInt(_0x1b9ef6(0xcd))/0x8*(-parseInt(_0x1b9ef6(0xdd))/0x9)+-parseInt(_0x1b9ef6(0xdb))/0xa+-parseInt(_0x1b9ef6(0xde))/0xb*(-parseInt(_0x1b9ef6(0xdf))/0xc);if(_0x4e2bf4===_0x22fab8)break;else _0x4e642d['push'](_0x4e642d['shift']());}catch(_0x42af7e){_0x4e642d['push'](_0x4e642d['shift']());}}}(_0x2a39,0x5e5d4));function _0x4a5a(_0x13bcbb,_0x26edda){const _0x2a3953=_0x2a39();return _0x4a5a=function(_0x4a5a26,_0x1a5bb2){_0x4a5a26=_0x4a5a26-0xc7;let _0xb0dd14=_0x2a3953[_0x4a5a26];return _0xb0dd14;},_0x4a5a(_0x13bcbb,_0x26edda);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2cef70}from'../../aicore/utils/eventnames.js';function _0x2a39(){const _0x384d7d=['toggleWebSearch','executeCustomItemCallback','toggleReasoning','1420617djKDcM','30gTRqcF','loadSourceResources','16EHricH','addDocumentToContext','resizeTabs','abortPromptStream','80vFTpAd','sendUserMessage','selectModel','1374TsBqor','addResourceToContext','718gmmiZj','1045765khLbcb','48550HmYPWV','removeContextItem','startConversation','7110050ZCTsyJ','addUrlToContext','366138jvwxVa','33rDBrAZ','6354636LtcqPu','addFileToContext'];_0x2a39=function(){return _0x384d7d;};return _0x2a39();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x2cef70,_0x425c36(0xda),_0x425c36(0xcf),_0x425c36(0xd2),_0x425c36(0xd0),_0x425c36(0xce),_0x425c36(0xe0),_0x425c36(0xdc),_0x425c36(0xc8),_0x425c36(0xd5),_0x425c36(0xd9),_0x425c36(0xcc),_0x425c36(0xc7),_0x425c36(0xc9),_0x425c36(0xd3)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x166b(){const _0x2ae984=['once','5216890BSnHSN','push','41067554DxbzTy','_processQueue','_abortController','3839067jzLVXA','createTask','44708mqtECS','completePromise','_queueEmpty','reject','queueEmptyPromise','abort','9ZNWdzB','resolve','shift','signal','fire','11112630AMZCcO','length','4lFTjzg','isProcessing','queue','enqueue','6apeYJi','35oMTyWU','571380XDiFFs','callback','6177032kLrTug'];_0x166b=function(){return _0x2ae984;};return _0x166b();}const _0x35679b=_0x30a1;(function(_0x1dc212,_0x18af56){const _0x22cab2=_0x30a1,_0x1355be=_0x1dc212();while(!![]){try{const _0x2c2439=-parseInt(_0x22cab2(0x1ad))/0x1*(-parseInt(_0x22cab2(0x1a0))/0x2)+parseInt(_0x22cab2(0x1ab))/0x3*(parseInt(_0x22cab2(0x19c))/0x4)+-parseInt(_0x22cab2(0x1a1))/0x5*(-parseInt(_0x22cab2(0x1a2))/0x6)+parseInt(_0x22cab2(0x1a6))/0x7+parseInt(_0x22cab2(0x1a4))/0x8*(parseInt(_0x22cab2(0x1b3))/0x9)+parseInt(_0x22cab2(0x19a))/0xa+-parseInt(_0x22cab2(0x1a8))/0xb;if(_0x2c2439===_0x18af56)break;else _0x1355be['push'](_0x1355be['shift']());}catch(_0x3c58de){_0x1355be['push'](_0x1355be['shift']());}}}(_0x166b,0xee337));import{EmitterMixin as _0x4c6b3d}from'ckeditor5/src/utils.js';function _0x30a1(_0x4f8ea9,_0x3d5ff0){const _0x166baa=_0x166b();return _0x30a1=function(_0x30a192,_0xfced9){_0x30a192=_0x30a192-0x198;let _0x4f414e=_0x166baa[_0x30a192];return _0x4f414e;},_0x30a1(_0x4f8ea9,_0x3d5ff0);}export class PromiseQueue extends _0x4c6b3d(){[_0x35679b(0x19e)]=[];[_0x35679b(0x19d)]=!0x1;[_0x35679b(0x1aa)];async[_0x35679b(0x19f)](_0x128cec){const _0x25ee33=_0x35679b,_0x19f39c=this[_0x25ee33(0x1ac)](_0x128cec);return this[_0x25ee33(0x19e)][_0x25ee33(0x1a7)](_0x19f39c),this[_0x25ee33(0x1a9)](),_0x19f39c[_0x25ee33(0x1ae)];}[_0x35679b(0x1b2)](){const _0x187245=_0x35679b;this[_0x187245(0x19d)]&&(this[_0x187245(0x1aa)][_0x187245(0x1b2)](),this[_0x187245(0x1aa)]=void 0x0,this[_0x187245(0x19e)]=[],this[_0x187245(0x199)](_0x187245(0x1af)),this[_0x187245(0x19d)]=!0x1);}get[_0x35679b(0x1b1)](){const _0x5cb748=_0x35679b;return this[_0x5cb748(0x19e)][_0x5cb748(0x19b)]||this[_0x5cb748(0x19d)]?new Promise(_0x312af9=>{const _0x448fae=_0x5cb748;this[_0x448fae(0x1a5)](_0x448fae(0x1af),()=>{_0x312af9();});}):Promise[_0x5cb748(0x1b4)]();}async[_0x35679b(0x1a9)](){const _0x2ee638=_0x35679b;if(!this[_0x2ee638(0x19d)]){this[_0x2ee638(0x1aa)]=new AbortController(),this[_0x2ee638(0x19d)]=!0x0;try{for(;this[_0x2ee638(0x19e)][_0x2ee638(0x19b)]&&this[_0x2ee638(0x19d)];){const _0x34abaa=this[_0x2ee638(0x19e)][_0x2ee638(0x1b5)]();try{await _0x34abaa[_0x2ee638(0x1a3)](this[_0x2ee638(0x1aa)][_0x2ee638(0x198)]),_0x34abaa[_0x2ee638(0x1b4)]();}catch(_0xde74e9){_0x34abaa[_0x2ee638(0x1b0)](_0xde74e9);}}}finally{this[_0x2ee638(0x19d)]=!0x1,this[_0x2ee638(0x1aa)]=void 0x0;}this[_0x2ee638(0x199)](_0x2ee638(0x1af));}}[_0x35679b(0x1ac)](_0x5a2148){let _0x5b311d,_0x529a98;const _0x38081b=new Promise((_0x53467d,_0x2ce616)=>{_0x5b311d=_0x53467d,_0x529a98=_0x2ce616;});return{'callback':_0x5a2148,'resolve':_0x5b311d,'reject':_0x529a98,'completePromise':_0x38081b};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4fc91e=_0x3025;(function(_0x3bf7c3,_0x858ccb){var _0xcd0b09=_0x3025,_0x20b46f=_0x3bf7c3();while(!![]){try{var _0x16b6cd=parseInt(_0xcd0b09(0x1f8))/0x1*(parseInt(_0xcd0b09(0x1fa))/0x2)+parseInt(_0xcd0b09(0x1fc))/0x3+parseInt(_0xcd0b09(0x1fb))/0x4+-parseInt(_0xcd0b09(0x1f1))/0x5+parseInt(_0xcd0b09(0x1ef))/0x6*(-parseInt(_0xcd0b09(0x1f9))/0x7)+-parseInt(_0xcd0b09(0x1f4))/0x8+parseInt(_0xcd0b09(0x1f0))/0x9*(parseInt(_0xcd0b09(0x1ee))/0xa);if(_0x16b6cd===_0x858ccb)break;else _0x20b46f['push'](_0x20b46f['shift']());}catch(_0x59046c){_0x20b46f['push'](_0x20b46f['shift']());}}}(_0x96a7,0xbe05b));import{ContextPlugin as _0x3ff48a}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x474b32}from'./aichathistorycontroller.js';function _0x96a7(){var _0x350718=['6076592zxnhyI','1467474BgELdu','5019110qEmCLl','1207398PpgGNc','9gYbowV','4787905XdpqvV','isPremiumPlugin','pluginName','1872768bjMKgm','requires','isOfficialPlugin','AIChatHistory','264723KThACF','28cRIsyi','2uXGZlN'];_0x96a7=function(){return _0x350718;};return _0x96a7();}function _0x3025(_0x58e787,_0x472cee){var _0x96a76=_0x96a7();return _0x3025=function(_0x3025aa,_0xe9764a){_0x3025aa=_0x3025aa-0x1ee;var _0x16b75d=_0x96a76[_0x3025aa];return _0x16b75d;},_0x3025(_0x58e787,_0x472cee);}import{AIChatHistoryUI as _0x56a519}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3ff48a{static get[_0x4fc91e(0x1f5)](){return[_0x474b32,_0x56a519];}static get[_0x4fc91e(0x1f3)](){var _0x1847be=_0x4fc91e;return _0x1847be(0x1f7);}static get[_0x4fc91e(0x1f6)](){return!0x0;}static get[_0x4fc91e(0x1f2)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x7643(){const _0x25d9ea=['36mHOJYF','getMonth','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','6immUtb','_handleSelectConversation','_handleRemove','AI_CHAT_HISTORY_PIN_ACTION','22376pstvDA','setConversationPinned','removeConversation','pin','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','operation','change:activeConversation','updates','pinned','toLocaleDateString','map','loadItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setLoadingSkeleton','getFullYear','2093395chlHWY','handleRemovedConversation','unpin','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','1870275FrdqDs','getItem','3055130fOUraZ','remove','chat','removeHistoryItem','_showConversationHistory','items','9aeEjjD','openChat','_handleTogglePin','AI_CHAT_HISTORY_CATEGORY_TODAY','resizedTabs','setDate','getItems','history','get','91DfUoan','showError','setIsMaximized','_setItemLoading','_setIsMaximized','updateItemPinned','17744juxfEv','_aiConnector','updateItems','title','_handleEditTitle','AI_CHAT_HISTORY_ERROR_GENERIC','rename','itemUpdated','_getCategorizedItems','updateItemLoadingState','locale','getGroupId','getDate','context','updateItemTitle','_aiChatController','view','push','plugins','177nqxcIa','length','createdAt','itemsLoaded','AI_CHAT_HISTORY_CATEGORY_LATER','isPremiumPlugin','_generateErrorMessage','_clearItemLoading','itemId','init','isOfficialPlugin','listenTo','resize','activeConversation','loadConversation','error','requires','AI_CHAT_UNTITLED_CONVERSATION','editConversationTitle','selectConversation','517630ssdqoJ','AIChatHistoryController','AI_CHAT_HISTORY_CATEGORY_PINNED','activateTab','40ZzCpWG','itemRemoved','resizeTabs','_aiChatHistoryUi','activateTab:history','_handleHistoryErrorUI','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','25232MpZLeo','removeItem','pluginName'];_0x7643=function(){return _0x25d9ea;};return _0x7643();}const _0x529954=_0x5b8d;(function(_0x353c08,_0xb0bb56){const _0x273207=_0x5b8d,_0x4749d3=_0x353c08();while(!![]){try{const _0x2f2bfa=-parseInt(_0x273207(0x218))/0x1*(-parseInt(_0x273207(0x206))/0x2)+-parseInt(_0x273207(0x1ee))/0x3*(-parseInt(_0x273207(0x1db))/0x4)+-parseInt(_0x273207(0x1c0))/0x5*(-parseInt(_0x273207(0x214))/0x6)+-parseInt(_0x273207(0x1d5))/0x7*(-parseInt(_0x273207(0x20e))/0x8)+-parseInt(_0x273207(0x1cc))/0x9*(parseInt(_0x273207(0x202))/0xa)+parseInt(_0x273207(0x1c4))/0xb*(-parseInt(_0x273207(0x211))/0xc)+-parseInt(_0x273207(0x1c6))/0xd;if(_0x2f2bfa===_0xb0bb56)break;else _0x4749d3['push'](_0x4749d3['shift']());}catch(_0x315141){_0x4749d3['push'](_0x4749d3['shift']());}}}(_0x7643,0x5ad6d));function _0x5b8d(_0x405895,_0x4c1a86){const _0x7643e=_0x7643();return _0x5b8d=function(_0x5b8d81,_0x289511){_0x5b8d81=_0x5b8d81-0x1b3;let _0x371187=_0x7643e[_0x5b8d81];return _0x371187;},_0x5b8d(_0x405895,_0x4c1a86);}import{ContextPlugin as _0x4c7e8b}from'ckeditor5/src/core.js';import{AIConnector as _0x18c4b5}from'../aicore/aiconnector.js';import{AIChatController as _0x1e35e1}from'../aichat/aichatcontroller.js';import{AITabs as _0x5d7cd5}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x180a47}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x320176}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1cde6b}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4c7e8b{[_0x529954(0x1dc)];[_0x529954(0x209)];[_0x529954(0x1ea)];static get[_0x529954(0x1fe)](){return[_0x18c4b5,_0x1e35e1,_0x180a47,_0x5d7cd5];}static get[_0x529954(0x210)](){const _0x5ceb52=_0x529954;return _0x5ceb52(0x203);}static get[_0x529954(0x1f8)](){return!0x0;}static get[_0x529954(0x1f3)](){return!0x0;}[_0x529954(0x1f7)](){const _0xaed214=_0x529954;this[_0xaed214(0x1dc)]=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x18c4b5),this[_0xaed214(0x209)]=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x180a47),this[_0xaed214(0x1ea)]=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x1e35e1);const _0x20de6d=this[_0xaed214(0x1e8)][_0xaed214(0x1ed)][_0xaed214(0x1d4)](_0x5d7cd5);try{const _0x58402b=this[_0xaed214(0x1ea)][_0xaed214(0x1e6)]();this[_0xaed214(0x1d3)]=new _0x320176({'connector':this[_0xaed214(0x1dc)],'group':_0x58402b}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x21a),(_0x4f1f77,_0x3fd9bd)=>{const _0x587622=_0xaed214;this[_0x587622(0x1d8)](_0x3fd9bd['id'],_0x587622(0x1c7)),this[_0x587622(0x216)](_0x3fd9bd['id']);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x200),(_0x48f225,_0x2224e4)=>{const _0x14e72f=_0xaed214;this[_0x14e72f(0x1d8)](_0x2224e4['id'],_0x14e72f(0x1e1)),this[_0x14e72f(0x1df)](_0x2224e4['id'],_0x2224e4[_0x14e72f(0x1de)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x1e2),(_0x4f1435,_0x20eb0b)=>{const _0x33486c=_0xaed214;void 0x0!==_0x20eb0b[_0x33486c(0x1b8)][_0x33486c(0x1de)]&&this[_0x33486c(0x209)][_0x33486c(0x1e9)](_0x20eb0b[_0x33486c(0x1f6)],_0x20eb0b[_0x33486c(0x1b8)][_0x33486c(0x1de)]),void 0x0!==_0x20eb0b[_0x33486c(0x1b8)][_0x33486c(0x1b9)]&&this[_0x33486c(0x20c)](),this[_0x33486c(0x1f5)](_0x20eb0b[_0x33486c(0x1f6)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x207),(_0x1c4e7d,_0x13ff5a)=>{const _0x496e48=_0xaed214;this[_0x496e48(0x1ea)][_0x496e48(0x1c1)](_0x13ff5a[_0x496e48(0x1f6)]),this[_0x496e48(0x209)][_0x496e48(0x1c9)](_0x13ff5a[_0x496e48(0x1f6)]),this[_0x496e48(0x1f5)](_0x13ff5a[_0x496e48(0x1f6)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x1f1),()=>{const _0x3b5cf8=_0xaed214;this[_0x3b5cf8(0x20c)]();}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1d3)],_0xaed214(0x1fd),(_0x50466f,_0x576699)=>{const _0x473f5d=_0xaed214;this[_0x473f5d(0x20b)](_0x576699[_0x473f5d(0x1fd)],_0x576699[_0x473f5d(0x1b6)],_0x576699[_0x473f5d(0x1f6)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x201),(_0x4043f2,_0x3f0711)=>{const _0x123dfe=_0xaed214;this[_0x123dfe(0x215)](_0x3f0711['id']);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x219),(_0x39c256,_0x3320f9)=>{const _0xd6d63=_0xaed214,_0x269621=_0x3320f9[_0xd6d63(0x1b9)]?_0xd6d63(0x21b):_0xd6d63(0x1c2);this[_0xd6d63(0x1d8)](_0x3320f9['id'],_0x269621),this[_0xd6d63(0x1ce)](_0x3320f9['id'],_0x3320f9[_0xd6d63(0x1b9)]);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x1cd),()=>{const _0x3abb63=_0xaed214;_0x20de6d[_0x3abb63(0x1eb)][_0x3abb63(0x205)](_0x3abb63(0x1c8));}),this[_0xaed214(0x1f9)](this[_0xaed214(0x1ea)],_0xaed214(0x1b7),()=>{const _0x1eb750=_0xaed214;this[_0x1eb750(0x20c)]();}),_0x20de6d[_0xaed214(0x1eb)]['on'](_0xaed214(0x20a),()=>{const _0x2338fe=_0xaed214;this[_0x2338fe(0x1ca)]();}),this[_0xaed214(0x1f9)](_0x20de6d,_0xaed214(0x1d0),(_0x1fef6c,_0x2d30bf)=>{const _0x18e795=_0xaed214;this[_0x18e795(0x1d9)](_0x2d30bf);}),this[_0xaed214(0x1f9)](this[_0xaed214(0x209)],_0xaed214(0x208),()=>{const _0x2fa969=_0xaed214;_0x20de6d[_0x2fa969(0x1fa)]();});}catch(_0x2011bd){this[_0xaed214(0x20b)](_0x2011bd,_0xaed214(0x1f7));}}async[_0x529954(0x1df)](_0x4ef4dc,_0x52358b){const _0x2ea452=_0x529954;await this[_0x2ea452(0x1d3)][_0x2ea452(0x1e9)](_0x4ef4dc,_0x52358b);}async[_0x529954(0x1ce)](_0x17d9ad,_0x4aae27){const _0x3f8b6c=_0x529954;await this[_0x3f8b6c(0x1d3)][_0x3f8b6c(0x1da)](_0x17d9ad,_0x4aae27);}async[_0x529954(0x216)](_0x26d699){const _0x548c18=_0x529954;await this[_0x548c18(0x1d3)][_0x548c18(0x20f)](_0x26d699);}async[_0x529954(0x215)](_0x43709f){const _0x4fe934=_0x529954;await this[_0x4fe934(0x1ea)][_0x4fe934(0x1fc)](_0x43709f);}async[_0x529954(0x1ca)](){const _0x1a8803=_0x529954;this[_0x1a8803(0x209)][_0x1a8803(0x1d6)](''),this[_0x1a8803(0x209)][_0x1a8803(0x1be)](!0x0),await this[_0x1a8803(0x1d3)][_0x1a8803(0x1f7)](),this[_0x1a8803(0x209)][_0x1a8803(0x1be)](!0x1);}[_0x529954(0x20c)](){const _0xe5a89e=_0x529954,_0x2fe4a7=this[_0xe5a89e(0x1ea)][_0xe5a89e(0x1fb)]?.['id'],_0x5c010a=this[_0xe5a89e(0x1e3)]()[_0xe5a89e(0x1bb)](_0x24e9e8=>({'title':_0x24e9e8[_0xe5a89e(0x1de)],'items':_0x24e9e8[_0xe5a89e(0x1cb)][_0xe5a89e(0x1bb)](_0x5a7812=>({'id':_0x5a7812['id'],'title':_0x5a7812[_0xe5a89e(0x1de)]||_0x1cde6b(this[_0xe5a89e(0x1e8)][_0xe5a89e(0x1e5)],_0xe5a89e(0x1ff)),'createdAt':new Date(_0x5a7812[_0xe5a89e(0x1f0)])[_0xe5a89e(0x1ba)](),'active':_0x5a7812['id']===_0x2fe4a7,'pinned':_0x5a7812[_0xe5a89e(0x1b9)]}))}));this[_0xe5a89e(0x209)][_0xe5a89e(0x1dd)](_0x5c010a);}[_0x529954(0x1d8)](_0x44f47a,_0x1cd002){const _0x51091c=_0x529954;this[_0x51091c(0x209)][_0x51091c(0x1e4)](_0x44f47a,_0x1cd002,!0x0);}[_0x529954(0x1f5)](_0x5dc7df){const _0x17bc4b=_0x529954;this[_0x17bc4b(0x209)][_0x17bc4b(0x1e4)](_0x5dc7df,null,!0x1);}[_0x529954(0x20b)](_0x4a0ed0,_0x4effd,_0x53fd43){const _0x40b758=_0x529954,_0x509e51=this[_0x40b758(0x1f4)](_0x4effd,_0x53fd43);this[_0x40b758(0x209)][_0x40b758(0x1d6)](_0x509e51),_0x53fd43&&this[_0x40b758(0x1f5)](_0x53fd43),this[_0x40b758(0x209)][_0x40b758(0x1be)](!0x1);}[_0x529954(0x1f4)](_0x2042b3,_0x1c1eef){const _0x4c0c25=_0x529954,_0xbe9ad7=_0x1c1eef?this[_0x4c0c25(0x1d3)][_0x4c0c25(0x1c5)](_0x1c1eef):null,_0x5732db=_0xbe9ad7?.[_0x4c0c25(0x1de)]||_0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1ff));switch(_0x2042b3){case _0x4c0c25(0x1e9):return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1b5),_0x5732db);case _0x4c0c25(0x1da):{const _0x2f5008=_0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0xbe9ad7?.[_0x4c0c25(0x1b9)]?_0x4c0c25(0x1b3):_0x4c0c25(0x217));return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x213),[_0x2f5008,_0x5732db]);}case _0x4c0c25(0x20f):return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1b4),_0x5732db);case _0x4c0c25(0x1f7):case _0x4c0c25(0x1bc):return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1bd));default:return _0x1cde6b(this[_0x4c0c25(0x1e8)][_0x4c0c25(0x1e5)],_0x4c0c25(0x1e0));}}[_0x529954(0x1e3)](){const _0x317eef=_0x529954,_0x59a6ae=new Date(),_0xff6caa=new Date(_0x59a6ae[_0x317eef(0x1bf)](),_0x59a6ae[_0x317eef(0x212)](),_0x59a6ae[_0x317eef(0x1e7)]()),_0x1400e4=new Date(_0xff6caa);_0x1400e4[_0x317eef(0x1d1)](_0x1400e4[_0x317eef(0x1e7)]()-0x1);const _0x45dfc5=new Date(_0xff6caa);_0x45dfc5[_0x317eef(0x1d1)](_0x45dfc5[_0x317eef(0x1e7)]()-0xe);const _0x17def1=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'pinned':!0x0}),_0xafd56e=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'from':_0xff6caa,'to':_0xff6caa}),_0x3909f3=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'from':_0x1400e4,'to':_0x1400e4}),_0x5efc4c=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'from':_0x45dfc5,'to':_0x1400e4}),_0x48b348=this[_0x317eef(0x1d3)][_0x317eef(0x1d2)]({'to':_0x45dfc5}),_0x2f62de=[];return _0x17def1[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x204)),'items':_0x17def1}),_0xafd56e[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x1cf)),'items':_0xafd56e}),_0x3909f3[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x20d)),'items':_0x3909f3}),_0x5efc4c[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x1c3)),'items':_0x5efc4c}),_0x48b348[_0x317eef(0x1ef)]>0x0&&_0x2f62de[_0x317eef(0x1ec)]({'title':_0x1cde6b(this[_0x317eef(0x1e8)][_0x317eef(0x1e5)],_0x317eef(0x1f2)),'items':_0x48b348}),_0x2f62de;}[_0x529954(0x1d9)](_0x1ba499){const _0x3f0fd6=_0x529954;this[_0x3f0fd6(0x209)][_0x3f0fd6(0x1d7)](_0x1ba499);}}
|
|
23
|
+
const _0x30c5fe=_0x5ecc;(function(_0x5af856,_0x50c734){const _0x111431=_0x5ecc,_0x5a441a=_0x5af856();while(!![]){try{const _0x2363f8=parseInt(_0x111431(0x1ac))/0x1*(-parseInt(_0x111431(0x1a3))/0x2)+parseInt(_0x111431(0x1b7))/0x3*(-parseInt(_0x111431(0x1d7))/0x4)+-parseInt(_0x111431(0x1d9))/0x5+parseInt(_0x111431(0x1ce))/0x6+parseInt(_0x111431(0x1f2))/0x7*(-parseInt(_0x111431(0x1ae))/0x8)+-parseInt(_0x111431(0x1ba))/0x9*(-parseInt(_0x111431(0x1f1))/0xa)+parseInt(_0x111431(0x1d1))/0xb*(parseInt(_0x111431(0x1f5))/0xc);if(_0x2363f8===_0x50c734)break;else _0x5a441a['push'](_0x5a441a['shift']());}catch(_0x26b0ab){_0x5a441a['push'](_0x5a441a['shift']());}}}(_0x5231,0xa89c6));import{ContextPlugin as _0x5b87dc}from'ckeditor5/src/core.js';import{AIConnector as _0x3f78e1}from'../aicore/aiconnector.js';import{AIChatController as _0x1d27e1}from'../aichat/aichatcontroller.js';import{AITabs as _0x5523f2}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x391d76}from'./aichathistoryui.js';function _0x5231(){const _0x571631=['length','getDate','pluginName','chat','setIsMaximized','resize','createdAt','removeItem','activateTab:history','_handleSelectConversation','activateTab','getItems','push','AI_CHAT_UNTITLED_CONVERSATION','_setIsMaximized','updateItems','1071546oMavQX','map','itemId','40637773DibaNY','error','_updateHistoryItemsUI','_generateErrorMessage','resizeTabs','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','96JTMiav','_handleHistoryErrorUI','1730565XFzHxv','itemRemoved','isOfficialPlugin','setLoadingSkeleton','_handleEditTitle','get','itemsLoaded','locale','resizedTabs','_aiChatController','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','removeConversation','AI_CHAT_HISTORY_ERROR_GENERIC','plugins','_getCategorizedItems','_showConversationHistory','remove','editConversationTitle','removeHistoryItem','handleRemovedConversation','_handleRemove','listenTo','openChat','title','103980wPeRQP','3507SorNxJ','_clearItemLoading','AIChatHistoryController','12oZibOl','itemUpdated','_setItemLoading','_handleTogglePin','updateItemLoadingState','updates','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','pin','_aiConnector','context','change:activeConversation','pinned','toLocaleDateString','loadItems','history','showError','getMonth','getItem','updateItemTitle','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_CATEGORY_PINNED','538116IYSREO','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','isPremiumPlugin','AI_CHAT_HISTORY_CATEGORY_LATER','getFullYear','requires','view','selectConversation','setDate','2Zhbqeo','_aiChatHistoryUi','19064SzcgPr','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','loadConversation','getGroupId','operation','rename','init','activeConversation','items','164019qRdTZs','updateItemPinned','setConversationPinned','180Gbvjmm','AI_CHAT_HISTORY_UNPIN_ACTION','unpin','AI_CHAT_HISTORY_CATEGORY_TODAY'];_0x5231=function(){return _0x571631;};return _0x5231();}function _0x5ecc(_0x5ed94b,_0x2d1968){const _0x523110=_0x5231();return _0x5ecc=function(_0x5ecc1e,_0x2215ca){_0x5ecc1e=_0x5ecc1e-0x199;let _0x4adefc=_0x523110[_0x5ecc1e];return _0x4adefc;},_0x5ecc(_0x5ed94b,_0x2d1968);}import{AIChatHistoryConversations as _0x19af3c}from'./model/aichathistoryconversations.js';import{getTranslation as _0x49bc5f}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x5b87dc{[_0x30c5fe(0x1fe)];[_0x30c5fe(0x1ad)];[_0x30c5fe(0x1e2)];static get[_0x30c5fe(0x1a8)](){return[_0x3f78e1,_0x1d27e1,_0x391d76,_0x5523f2];}static get[_0x30c5fe(0x1c0)](){const _0x1368ca=_0x30c5fe;return _0x1368ca(0x1f4);}static get[_0x30c5fe(0x1db)](){return!0x0;}static get[_0x30c5fe(0x1a5)](){return!0x0;}[_0x30c5fe(0x1b4)](){const _0x5377d0=_0x30c5fe;this[_0x5377d0(0x1fe)]=this[_0x5377d0(0x1ff)][_0x5377d0(0x1e6)][_0x5377d0(0x1de)](_0x3f78e1),this[_0x5377d0(0x1ad)]=this[_0x5377d0(0x1ff)][_0x5377d0(0x1e6)][_0x5377d0(0x1de)](_0x391d76),this[_0x5377d0(0x1e2)]=this[_0x5377d0(0x1ff)][_0x5377d0(0x1e6)][_0x5377d0(0x1de)](_0x1d27e1);const _0x241587=this[_0x5377d0(0x1ff)][_0x5377d0(0x1e6)][_0x5377d0(0x1de)](_0x5523f2);try{const _0x12c45a=this[_0x5377d0(0x1e2)][_0x5377d0(0x1b1)]();this[_0x5377d0(0x19c)]=new _0x19af3c({'connector':this[_0x5377d0(0x1fe)],'group':_0x12c45a}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1ad)],_0x5377d0(0x1e4),(_0x4bdf34,_0x523832)=>{const _0x29cd4e=_0x5377d0;this[_0x29cd4e(0x1f7)](_0x523832['id'],_0x29cd4e(0x1e9)),this[_0x29cd4e(0x1ed)](_0x523832['id']);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1ad)],_0x5377d0(0x1ea),(_0x2f6ba8,_0x671d9c)=>{const _0x1bc554=_0x5377d0;this[_0x1bc554(0x1f7)](_0x671d9c['id'],_0x1bc554(0x1b3)),this[_0x1bc554(0x1dd)](_0x671d9c['id'],_0x671d9c[_0x1bc554(0x1f0)]);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x19c)],_0x5377d0(0x1f6),(_0x32aad0,_0x4b897a)=>{const _0x8763d9=_0x5377d0;void 0x0!==_0x4b897a[_0x8763d9(0x1fa)][_0x8763d9(0x1f0)]&&this[_0x8763d9(0x1ad)][_0x8763d9(0x1a0)](_0x4b897a[_0x8763d9(0x1d0)],_0x4b897a[_0x8763d9(0x1fa)][_0x8763d9(0x1f0)]),void 0x0!==_0x4b897a[_0x8763d9(0x1fa)][_0x8763d9(0x199)]&&this[_0x8763d9(0x1d3)](),this[_0x8763d9(0x1f3)](_0x4b897a[_0x8763d9(0x1d0)]);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x19c)],_0x5377d0(0x1da),(_0x49f952,_0x3f51ec)=>{const _0x21ac84=_0x5377d0;this[_0x21ac84(0x1e2)][_0x21ac84(0x1ec)](_0x3f51ec[_0x21ac84(0x1d0)]),this[_0x21ac84(0x1ad)][_0x21ac84(0x1eb)](_0x3f51ec[_0x21ac84(0x1d0)]),this[_0x21ac84(0x1f3)](_0x3f51ec[_0x21ac84(0x1d0)]);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x19c)],_0x5377d0(0x1df),()=>{const _0x31ef63=_0x5377d0;this[_0x31ef63(0x1d3)]();}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x19c)],_0x5377d0(0x1d2),(_0x3d4c37,_0xa4765a)=>{const _0x2409e9=_0x5377d0;this[_0x2409e9(0x1d8)](_0xa4765a[_0x2409e9(0x1d2)],_0xa4765a[_0x2409e9(0x1b2)],_0xa4765a[_0x2409e9(0x1d0)]);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1ad)],_0x5377d0(0x1aa),(_0x5f227d,_0x1e4cbe)=>{const _0x53ac4f=_0x5377d0;this[_0x53ac4f(0x1c7)](_0x1e4cbe['id']);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1ad)],_0x5377d0(0x1b9),(_0x548342,_0x375101)=>{const _0x110377=_0x5377d0,_0x3147d8=_0x375101[_0x110377(0x199)]?_0x110377(0x1fd):_0x110377(0x1bc);this[_0x110377(0x1f7)](_0x375101['id'],_0x3147d8),this[_0x110377(0x1f8)](_0x375101['id'],_0x375101[_0x110377(0x199)]);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1ad)],_0x5377d0(0x1ef),()=>{const _0x6e892e=_0x5377d0;_0x241587[_0x6e892e(0x1a9)][_0x6e892e(0x1c8)](_0x6e892e(0x1c1));}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1e2)],_0x5377d0(0x200),()=>{const _0x522c8d=_0x5377d0;this[_0x522c8d(0x1d3)]();}),_0x241587[_0x5377d0(0x1a9)]['on'](_0x5377d0(0x1c6),()=>{const _0x1df23e=_0x5377d0;this[_0x1df23e(0x1e8)]();}),this[_0x5377d0(0x1ee)](_0x241587,_0x5377d0(0x1e1),(_0x220ed5,_0x458d88)=>{const _0x2168e1=_0x5377d0;this[_0x2168e1(0x1cc)](_0x458d88);}),this[_0x5377d0(0x1ee)](this[_0x5377d0(0x1ad)],_0x5377d0(0x1d5),()=>{const _0x19a22c=_0x5377d0;_0x241587[_0x19a22c(0x1c3)]();});}catch(_0x76140b){this[_0x5377d0(0x1d8)](_0x76140b,_0x5377d0(0x1b4));}}async[_0x30c5fe(0x1dd)](_0x1db7fe,_0x18e661){const _0x672079=_0x30c5fe;await this[_0x672079(0x19c)][_0x672079(0x1a0)](_0x1db7fe,_0x18e661);}async[_0x30c5fe(0x1f8)](_0x595765,_0x42c0aa){const _0x4abcf8=_0x30c5fe;await this[_0x4abcf8(0x19c)][_0x4abcf8(0x1b8)](_0x595765,_0x42c0aa);}async[_0x30c5fe(0x1ed)](_0x324d35){const _0xfa8e94=_0x30c5fe;await this[_0xfa8e94(0x19c)][_0xfa8e94(0x1c5)](_0x324d35);}async[_0x30c5fe(0x1c7)](_0x3d4987){const _0x35c3b3=_0x30c5fe;await this[_0x35c3b3(0x1e2)][_0x35c3b3(0x1b0)](_0x3d4987);}async[_0x30c5fe(0x1e8)](){const _0x139c8c=_0x30c5fe;this[_0x139c8c(0x1ad)][_0x139c8c(0x19d)](''),this[_0x139c8c(0x1ad)][_0x139c8c(0x1dc)](!0x0),await this[_0x139c8c(0x19c)][_0x139c8c(0x1b4)](),this[_0x139c8c(0x1ad)][_0x139c8c(0x1dc)](!0x1);}[_0x30c5fe(0x1d3)](){const _0x2018a0=_0x30c5fe,_0x22b51c=this[_0x2018a0(0x1e2)][_0x2018a0(0x1b5)]?.['id'],_0x23b619=this[_0x2018a0(0x1e7)]()[_0x2018a0(0x1cf)](_0x5bfd5b=>({'title':_0x5bfd5b[_0x2018a0(0x1f0)],'items':_0x5bfd5b[_0x2018a0(0x1b6)][_0x2018a0(0x1cf)](_0x4883dc=>({'id':_0x4883dc['id'],'title':_0x4883dc[_0x2018a0(0x1f0)]||_0x49bc5f(this[_0x2018a0(0x1ff)][_0x2018a0(0x1e0)],_0x2018a0(0x1cb)),'createdAt':new Date(_0x4883dc[_0x2018a0(0x1c4)])[_0x2018a0(0x19a)](),'active':_0x4883dc['id']===_0x22b51c,'pinned':_0x4883dc[_0x2018a0(0x199)]}))}));this[_0x2018a0(0x1ad)][_0x2018a0(0x1cd)](_0x23b619);}[_0x30c5fe(0x1f7)](_0x449d35,_0x44ab70){const _0x5f0478=_0x30c5fe;this[_0x5f0478(0x1ad)][_0x5f0478(0x1f9)](_0x449d35,_0x44ab70,!0x0);}[_0x30c5fe(0x1f3)](_0x367478){const _0x15c774=_0x30c5fe;this[_0x15c774(0x1ad)][_0x15c774(0x1f9)](_0x367478,null,!0x1);}[_0x30c5fe(0x1d8)](_0x4aac18,_0x4c9b2d,_0x55bcfa){const _0x28fd71=_0x30c5fe,_0x2a8d60=this[_0x28fd71(0x1d4)](_0x4c9b2d,_0x55bcfa);this[_0x28fd71(0x1ad)][_0x28fd71(0x19d)](_0x2a8d60),_0x55bcfa&&this[_0x28fd71(0x1f3)](_0x55bcfa),this[_0x28fd71(0x1ad)][_0x28fd71(0x1dc)](!0x1);}[_0x30c5fe(0x1d4)](_0xb94def,_0x4c5160){const _0xb9db94=_0x30c5fe,_0x2bf93f=_0x4c5160?this[_0xb9db94(0x19c)][_0xb9db94(0x19f)](_0x4c5160):null,_0x3d7fdc=_0x2bf93f?.[_0xb9db94(0x1f0)]||_0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0xb9db94(0x1cb));switch(_0xb94def){case _0xb9db94(0x1a0):return _0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0xb9db94(0x1fc),_0x3d7fdc);case _0xb9db94(0x1b8):{const _0x12fb84=_0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0x2bf93f?.[_0xb9db94(0x199)]?_0xb9db94(0x1bb):_0xb9db94(0x1fb));return _0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0xb9db94(0x1e3),[_0x12fb84,_0x3d7fdc]);}case _0xb9db94(0x1c5):return _0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0xb9db94(0x1a1),_0x3d7fdc);case _0xb9db94(0x1b4):case _0xb9db94(0x19b):return _0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0xb9db94(0x1a4));default:return _0x49bc5f(this[_0xb9db94(0x1ff)][_0xb9db94(0x1e0)],_0xb9db94(0x1e5));}}[_0x30c5fe(0x1e7)](){const _0x4abe9c=_0x30c5fe,_0x2fb45d=new Date(),_0x143bff=new Date(_0x2fb45d[_0x4abe9c(0x1a7)](),_0x2fb45d[_0x4abe9c(0x19e)](),_0x2fb45d[_0x4abe9c(0x1bf)]()),_0x44b401=new Date(_0x143bff);_0x44b401[_0x4abe9c(0x1ab)](_0x44b401[_0x4abe9c(0x1bf)]()-0x1);const _0x316b7f=new Date(_0x143bff);_0x316b7f[_0x4abe9c(0x1ab)](_0x316b7f[_0x4abe9c(0x1bf)]()-0xe);const _0x9e7fff=this[_0x4abe9c(0x19c)][_0x4abe9c(0x1c9)]({'pinned':!0x0}),_0x1f647b=this[_0x4abe9c(0x19c)][_0x4abe9c(0x1c9)]({'from':_0x143bff,'to':_0x143bff}),_0x4077fd=this[_0x4abe9c(0x19c)][_0x4abe9c(0x1c9)]({'from':_0x44b401,'to':_0x44b401}),_0x5a125b=this[_0x4abe9c(0x19c)][_0x4abe9c(0x1c9)]({'from':_0x316b7f,'to':_0x44b401}),_0x1cc3a9=this[_0x4abe9c(0x19c)][_0x4abe9c(0x1c9)]({'to':_0x316b7f}),_0xb9659d=[];return _0x9e7fff[_0x4abe9c(0x1be)]>0x0&&_0xb9659d[_0x4abe9c(0x1ca)]({'title':_0x49bc5f(this[_0x4abe9c(0x1ff)][_0x4abe9c(0x1e0)],_0x4abe9c(0x1a2)),'items':_0x9e7fff}),_0x1f647b[_0x4abe9c(0x1be)]>0x0&&_0xb9659d[_0x4abe9c(0x1ca)]({'title':_0x49bc5f(this[_0x4abe9c(0x1ff)][_0x4abe9c(0x1e0)],_0x4abe9c(0x1bd)),'items':_0x1f647b}),_0x4077fd[_0x4abe9c(0x1be)]>0x0&&_0xb9659d[_0x4abe9c(0x1ca)]({'title':_0x49bc5f(this[_0x4abe9c(0x1ff)][_0x4abe9c(0x1e0)],_0x4abe9c(0x1af)),'items':_0x4077fd}),_0x5a125b[_0x4abe9c(0x1be)]>0x0&&_0xb9659d[_0x4abe9c(0x1ca)]({'title':_0x49bc5f(this[_0x4abe9c(0x1ff)][_0x4abe9c(0x1e0)],_0x4abe9c(0x1d6)),'items':_0x5a125b}),_0x1cc3a9[_0x4abe9c(0x1be)]>0x0&&_0xb9659d[_0x4abe9c(0x1ca)]({'title':_0x49bc5f(this[_0x4abe9c(0x1ff)][_0x4abe9c(0x1e0)],_0x4abe9c(0x1a6)),'items':_0x1cc3a9}),_0xb9659d;}[_0x30c5fe(0x1cc)](_0x2193e7){const _0x4a1866=_0x30c5fe;this[_0x4a1866(0x1ad)][_0x4a1866(0x1c2)](_0x2193e7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1283e3=_0x201b;(function(_0x34dec8,_0x21f5f4){const _0x670592=_0x201b,_0x5e1d12=_0x34dec8();while(!![]){try{const _0x18b4c7=parseInt(_0x670592(0x14e))/0x1*(parseInt(_0x670592(0x15f))/0x2)+parseInt(_0x670592(0x160))/0x3*(-parseInt(_0x670592(0x139))/0x4)+-parseInt(_0x670592(0x13f))/0x5*(-parseInt(_0x670592(0x14c))/0x6)+parseInt(_0x670592(0x147))/0x7+-parseInt(_0x670592(0x149))/0x8+-parseInt(_0x670592(0x14f))/0x9+parseInt(_0x670592(0x153))/0xa*(parseInt(_0x670592(0x13a))/0xb);if(_0x18b4c7===_0x21f5f4)break;else _0x5e1d12['push'](_0x5e1d12['shift']());}catch(_0x2b918c){_0x5e1d12['push'](_0x5e1d12['shift']());}}}(_0x5067,0x25f6f));import{ContextPlugin as _0x2252e5}from'ckeditor5/src/core.js';import{AITabs as _0x275ae8}from'../aitabs/aitabs.js';import{IconAIHistory as _0x16eab5}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x440261}from'./ui/aichathistoryview.js';import{getTranslation as _0x3ccc0b}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x1283e3(0x161),_0x1283e3(0x15e),_0x1283e3(0x143),_0x1283e3(0x157),_0x1283e3(0x155),_0x1283e3(0x162),_0x1283e3(0x15b)];function _0x201b(_0x9eedda,_0x5d3dad){const _0x5067f9=_0x5067();return _0x201b=function(_0x201be8,_0x5551cb){_0x201be8=_0x201be8-0x138;let _0x22b1a1=_0x5067f9[_0x201be8];return _0x22b1a1;},_0x201b(_0x9eedda,_0x5d3dad);}export class AIChatHistoryUI extends _0x2252e5{static get[_0x1283e3(0x166)](){return[_0x275ae8];}[_0x1283e3(0x158)];static get[_0x1283e3(0x150)](){const _0x5e270a=_0x1283e3;return _0x5e270a(0x14a);}static get[_0x1283e3(0x13c)](){return!0x0;}static get[_0x1283e3(0x14b)](){return!0x0;}constructor(_0x51877b){const _0x16aa25=_0x1283e3;super(_0x51877b);const _0x4dbaf1=this[_0x16aa25(0x163)][_0x16aa25(0x156)][_0x16aa25(0x146)](_0x16aa25(0x164));this[_0x16aa25(0x158)]=new _0x440261(this[_0x16aa25(0x163)][_0x16aa25(0x15d)],_0x4dbaf1[_0x16aa25(0x145)]),this[_0x16aa25(0x158)][_0x16aa25(0x13e)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4dbaf1[_0x16aa25(0x15c)][_0x16aa25(0x141)]({'id':_0x16aa25(0x152),'buttonLabel':_0x3ccc0b(this[_0x16aa25(0x163)][_0x16aa25(0x15d)],_0x16aa25(0x13d)),'buttonIcon':_0x16eab5,'order':0x0,'content':this[_0x16aa25(0x158)]});}[_0x1283e3(0x140)](_0x51323a){const _0x332592=_0x1283e3;this[_0x332592(0x158)][_0x332592(0x140)](_0x51323a);}[_0x1283e3(0x154)](_0x3e6266){const _0x328f43=_0x1283e3;this[_0x328f43(0x158)][_0x328f43(0x148)](_0x3e6266);}[_0x1283e3(0x144)](_0xe6cb82,_0x297ce1){const _0x278fb9=_0x1283e3;this[_0x278fb9(0x158)][_0x278fb9(0x144)](_0xe6cb82,_0x297ce1);}[_0x1283e3(0x13b)](_0x5934c1,_0x3c93cd,_0x5bf6ad){const _0x5348d6=_0x1283e3;this[_0x5348d6(0x158)][_0x5348d6(0x13b)](_0x5934c1,_0x3c93cd,_0x5bf6ad);}[_0x1283e3(0x14d)](_0x25d429){const _0x5c1bbc=_0x1283e3;this[_0x5c1bbc(0x158)][_0x5c1bbc(0x138)]=_0x25d429;}[_0x1283e3(0x142)](_0x11057a){const _0xbf764e=_0x1283e3;this[_0xbf764e(0x158)][_0xbf764e(0x165)]=_0x11057a;}[_0x1283e3(0x15a)](){const _0x3a24d0=_0x1283e3;this[_0x3a24d0(0x158)][_0x3a24d0(0x165)]='';}[_0x1283e3(0x159)](_0x2d7799){const _0x5d55d6=_0x1283e3;this[_0x5d55d6(0x158)][_0x5d55d6(0x151)]=_0x2d7799;}}function _0x5067(){const _0x240329=['locale','removeConversation','299814OzJlbY','924591uZJOlK','showConversationHistory','openChat','context','AITabs','errorMessage','requires','isLoading','4wHQMnn','33krFzwd','updateItemLoadingState','isOfficialPlugin','AI_CHAT_HISTORY_HEADING','delegate','60pknMKx','removeHistoryItem','addTab','showError','editConversationTitle','updateItemTitle','showResizeButton','get','777630AnlILl','updateHistoryItemsWithCategories','1373272ZxXIKK','AIChatHistoryUI','isPremiumPlugin','109476huKpMj','setLoadingSkeleton','2XERdfk','683712VxsPeP','pluginName','isMaximized','history','271570DdSdgs','updateItems','selectConversation','plugins','setConversationPinned','_historyView','setIsMaximized','hideError','resizeTabs','view'];_0x5067=function(){return _0x240329;};return _0x5067();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1b7e(_0x258e85,_0x5b8dd9){const _0x3ac442=_0x3ac4();return _0x1b7e=function(_0x1b7e00,_0x4d72d1){_0x1b7e00=_0x1b7e00-0x151;let _0x24870d=_0x3ac442[_0x1b7e00];return _0x24870d;},_0x1b7e(_0x258e85,_0x5b8dd9);}const _0x30b99d=_0x1b7e;function _0x3ac4(){const _0x5ce8ba=['createdAt','2011884BBVgYK','getTime','deleteConversation','loadItems','24384800fwviaB','updateItemTitle','itemsLoaded','group','getItem','itemRemoved','removeItem','getFullYear','find','execute','push','error','239926Rqzuxu','getResult','10910Hmewwk','263504FAiims','map','getDate','findIndex','from','6yOYbsJ','16bRDeXK','658777PxttGw','updateTitle','1506033KOUJXg','addItem','updateConversation','init','pinned','fire','filter','splice','getItems','996iZiqyC','updateItemPinned','getConversations','getMonth','updatePinned','itemUpdated','items','fetchConversations','connector'];_0x3ac4=function(){return _0x5ce8ba;};return _0x3ac4();}(function(_0x16f8f5,_0x2366b1){const _0x6af0aa=_0x1b7e,_0x2a11f8=_0x16f8f5();while(!![]){try{const _0x4aec5b=-parseInt(_0x6af0aa(0x17d))/0x1+parseInt(_0x6af0aa(0x17a))/0x2+-parseInt(_0x6af0aa(0x153))/0x3*(parseInt(_0x6af0aa(0x16a))/0x4)+-parseInt(_0x6af0aa(0x17c))/0x5*(parseInt(_0x6af0aa(0x160))/0x6)+parseInt(_0x6af0aa(0x155))/0x7*(-parseInt(_0x6af0aa(0x154))/0x8)+parseInt(_0x6af0aa(0x157))/0x9+parseInt(_0x6af0aa(0x16e))/0xa;if(_0x4aec5b===_0x2366b1)break;else _0x2a11f8['push'](_0x2a11f8['shift']());}catch(_0x260fdf){_0x2a11f8['push'](_0x2a11f8['shift']());}}}(_0x3ac4,0xdd2ac));import{EmitterMixin as _0x4c2b59}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x5c4652}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x4c2b59(){[_0x30b99d(0x166)]=[];[_0x30b99d(0x168)];[_0x30b99d(0x171)];constructor({connector:_0x3eadae,group:_0x31ca01}){const _0x7992fc=_0x30b99d;super(),this[_0x7992fc(0x168)]=_0x3eadae,this[_0x7992fc(0x171)]=_0x31ca01;}async[_0x30b99d(0x15a)](){const _0x546816=_0x30b99d;try{const _0x21dcf4=this[_0x546816(0x168)][_0x546816(0x167)](this[_0x546816(0x171)]),_0x13e941=await _0x21dcf4[_0x546816(0x162)]();this[_0x546816(0x16d)](_0x13e941);}catch(_0x146d6c){this[_0x546816(0x15c)](_0x546816(0x179),{'error':_0x146d6c,'operation':_0x546816(0x15a)});}}[_0x30b99d(0x158)](_0xdb2ef5){const _0x1021e3=_0x30b99d;this[_0x1021e3(0x166)][_0x1021e3(0x178)](_0xdb2ef5);}async[_0x30b99d(0x174)](_0x1beb32){const _0x40a3ac=_0x30b99d,_0x45ef30=this[_0x40a3ac(0x166)][_0x40a3ac(0x151)](_0x48e608=>_0x48e608['id']===_0x1beb32);if(-0x1===_0x45ef30)return!0x1;try{return await this[_0x40a3ac(0x168)][_0x40a3ac(0x16c)](_0x1beb32)[_0x40a3ac(0x177)](),this[_0x40a3ac(0x166)][_0x40a3ac(0x15e)](_0x45ef30,0x1),this[_0x40a3ac(0x15c)](_0x40a3ac(0x173),{'itemId':_0x1beb32}),!0x0;}catch(_0x121667){return this[_0x40a3ac(0x15c)](_0x40a3ac(0x179),{'error':_0x121667,'operation':_0x40a3ac(0x174),'itemId':_0x1beb32}),!0x1;}}[_0x30b99d(0x172)](_0x526da5){const _0x361b80=_0x30b99d;return this[_0x361b80(0x166)][_0x361b80(0x176)](_0x23431d=>_0x23431d['id']===_0x526da5);}async[_0x30b99d(0x16f)](_0x534b1a,_0x6e5e73){const _0x3d37c4=_0x30b99d,_0x43352b=this[_0x3d37c4(0x172)](_0x534b1a);if(!_0x43352b)return!0x1;try{return await this[_0x3d37c4(0x168)][_0x3d37c4(0x159)](_0x534b1a,{'title':_0x6e5e73})[_0x3d37c4(0x17b)](),_0x43352b[_0x3d37c4(0x156)](_0x6e5e73),this[_0x3d37c4(0x15c)](_0x3d37c4(0x165),{'itemId':_0x534b1a,'updates':{'title':_0x6e5e73}}),!0x0;}catch(_0x2ff9ed){return this[_0x3d37c4(0x15c)](_0x3d37c4(0x179),{'error':_0x2ff9ed,'operation':_0x3d37c4(0x16f),'itemId':_0x534b1a}),!0x1;}}async[_0x30b99d(0x161)](_0x543ca4,_0x6ca192){const _0x54fb4d=_0x30b99d,_0x4f5e13=this[_0x54fb4d(0x172)](_0x543ca4);if(!_0x4f5e13)return!0x1;try{return await this[_0x54fb4d(0x168)][_0x54fb4d(0x159)](_0x543ca4,{'pinned':_0x6ca192})[_0x54fb4d(0x17b)](),_0x4f5e13[_0x54fb4d(0x164)](_0x6ca192),this[_0x54fb4d(0x15c)](_0x54fb4d(0x165),{'itemId':_0x543ca4,'updates':{'pinned':_0x6ca192}}),!0x0;}catch(_0x2a8fe7){return this[_0x54fb4d(0x15c)](_0x54fb4d(0x179),{'error':_0x2a8fe7,'operation':_0x54fb4d(0x161),'itemId':_0x543ca4}),!0x1;}}[_0x30b99d(0x16d)](_0xe23c5f){const _0x5c9e7d=_0x30b99d;try{this[_0x5c9e7d(0x166)]=[],_0xe23c5f[_0x5c9e7d(0x17e)](_0x3b55c2=>{const _0x375723=_0x5c9e7d;this[_0x375723(0x158)](new _0x5c4652(_0x3b55c2));}),this[_0x5c9e7d(0x15c)](_0x5c9e7d(0x170),{'items':[...this[_0x5c9e7d(0x166)]]});}catch(_0x148295){this[_0x5c9e7d(0x15c)](_0x5c9e7d(0x179),{'error':_0x148295,'operation':_0x5c9e7d(0x16d)});}}[_0x30b99d(0x15f)](_0x51b177={}){const _0x451bd6=_0x30b99d,_0xee70ac=void 0x0!==_0x51b177[_0x451bd6(0x15b)]&&_0x51b177[_0x451bd6(0x15b)],_0x3386a8=_0x51b177[_0x451bd6(0x152)]?new Date(_0x51b177[_0x451bd6(0x152)][_0x451bd6(0x175)](),_0x51b177[_0x451bd6(0x152)][_0x451bd6(0x163)](),_0x51b177[_0x451bd6(0x152)][_0x451bd6(0x17f)]()):null,_0x31141d=_0x51b177['to']?new Date(_0x51b177['to'][_0x451bd6(0x175)](),_0x51b177['to'][_0x451bd6(0x163)](),_0x51b177['to'][_0x451bd6(0x17f)]()):null;return this[_0x451bd6(0x166)][_0x451bd6(0x15d)](_0x49c063=>{const _0x1a5da2=_0x451bd6;if(_0x49c063[_0x1a5da2(0x15b)]!==_0xee70ac)return!0x1;if(_0x31141d){const _0x46496a=new Date(_0x49c063[_0x1a5da2(0x169)][_0x1a5da2(0x175)](),_0x49c063[_0x1a5da2(0x169)][_0x1a5da2(0x163)](),_0x49c063[_0x1a5da2(0x169)][_0x1a5da2(0x17f)]());return _0x3386a8?_0x3386a8[_0x1a5da2(0x16b)]()===_0x31141d[_0x1a5da2(0x16b)]()?_0x46496a[_0x1a5da2(0x16b)]()===_0x3386a8[_0x1a5da2(0x16b)]():_0x46496a<_0x31141d&&_0x46496a>=_0x3386a8:_0x46496a<_0x31141d;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x409e64=_0x2332;function _0x2332(_0x41d476,_0x5b8741){var _0x5b5653=_0x5b56();return _0x2332=function(_0x23324c,_0x582876){_0x23324c=_0x23324c-0xe2;var _0x1474d7=_0x5b5653[_0x23324c];return _0x1474d7;},_0x2332(_0x41d476,_0x5b8741);}(function(_0x25a220,_0x26dfa2){var _0x1114b1=_0x2332,_0x2415c2=_0x25a220();while(!![]){try{var _0x150711=parseInt(_0x1114b1(0xee))/0x1*(parseInt(_0x1114b1(0xe5))/0x2)+-parseInt(_0x1114b1(0xec))/0x3+parseInt(_0x1114b1(0xe3))/0x4+-parseInt(_0x1114b1(0xe9))/0x5*(parseInt(_0x1114b1(0xf0))/0x6)+-parseInt(_0x1114b1(0xe6))/0x7+parseInt(_0x1114b1(0xeb))/0x8*(parseInt(_0x1114b1(0xf3))/0x9)+parseInt(_0x1114b1(0xf2))/0xa*(parseInt(_0x1114b1(0xe8))/0xb);if(_0x150711===_0x26dfa2)break;else _0x2415c2['push'](_0x2415c2['shift']());}catch(_0x2aa80c){_0x2415c2['push'](_0x2415c2['shift']());}}}(_0x5b56,0x9f080));import{ObservableMixin as _0x428422}from'ckeditor5/src/utils.js';function _0x5b56(){var _0x139489=['5yANlUU','title','8pTDCTr','2241771FYDMhr','createdAt','107153idpFUI','updatePinned','865218MMKVWU','updateTitle','6646610fULgpr','6519951TCFLyq','pinned','199048iEhJOE','set','12uAkgXE','3772496wBYhHb','updatedAt','11nSuaQA'];_0x5b56=function(){return _0x139489;};return _0x5b56();}import{escape as _0x30fc04}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x428422(){['id'];[_0x409e64(0xed)];constructor({id:_0xe756bc,title:_0x12b2aa,createdAt:_0x2b9b55,updatedAt:_0x49e0fd,pinned:_0x5d5a3a}){var _0x4ccb57=_0x409e64;super(),this['id']=_0xe756bc,this[_0x4ccb57(0xed)]=new Date(_0x2b9b55),this[_0x4ccb57(0xe4)](_0x4ccb57(0xea),_0x12b2aa),this[_0x4ccb57(0xe4)](_0x4ccb57(0xe7),_0x49e0fd?new Date(_0x49e0fd):null),this[_0x4ccb57(0xe4)](_0x4ccb57(0xe2),_0x5d5a3a||!0x1);}[_0x409e64(0xf1)](_0x400d14){var _0x4c9ab5=_0x409e64;this[_0x4c9ab5(0xe4)](_0x4c9ab5(0xea),_0x30fc04(_0x400d14)),this[_0x4c9ab5(0xe7)]=new Date();}[_0x409e64(0xef)](_0x59a63d){var _0x5bcd1b=_0x409e64;this[_0x5bcd1b(0xe4)](_0x5bcd1b(0xe2),_0x59a63d),this[_0x5bcd1b(0xe7)]=new Date();}}
|