@ckeditor/ckeditor5-ai 47.0.0-alpha.4 → 47.0.0-alpha.5
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-editor.css +10 -1
- package/dist/index.css +10 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.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/model/aichatmodels.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.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/index.js +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4aff15=_0x1751;(function(_0x585c0e,_0x3ae29f){const _0x3e1cf3=_0x1751,_0x37efb6=_0x585c0e();while(!![]){try{const _0x1ea44c=parseInt(_0x3e1cf3(0x7e))/0x1+parseInt(_0x3e1cf3(0x7f))/0x2+-parseInt(_0x3e1cf3(0x86))/0x3*(-parseInt(_0x3e1cf3(0xb5))/0x4)+parseInt(_0x3e1cf3(0xaf))/0x5+-parseInt(_0x3e1cf3(0x7d))/0x6+-parseInt(_0x3e1cf3(0x8e))/0x7+-parseInt(_0x3e1cf3(0x8a))/0x8;if(_0x1ea44c===_0x3ae29f)break;else _0x37efb6['push'](_0x37efb6['shift']());}catch(_0x467de8){_0x37efb6['push'](_0x37efb6['shift']());}}}(_0x4e97,0x237ff));import{ObservableMixin as _0x3a9535,uid as _0x7ab8c4}from'ckeditor5/src/utils.js';import{Element as _0x486a76,findAll as _0x1e947f,getAttribute as _0x59f811,getParents as _0x37ecaa,Document as _0x2c4f27,parse as _0x1514b1,Text as _0x49e13a}from'../utils/htmlparser.js';import{AIResponseParser as _0x264552}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3c9a38}from'../pipeline/airesponseapplier.js';function _0x1751(_0x24f0e5,_0x10a143){const _0x4e971f=_0x4e97();return _0x1751=function(_0x1751bf,_0x578db6){_0x1751bf=_0x1751bf-0x6f;let _0xb66674=_0x4e971f[_0x1751bf];return _0xb66674;},_0x1751(_0x24f0e5,_0x10a143);}export const AI_REPLY_TYPES=[_0x4aff15(0x73),_0x4aff15(0xad)];export const AI_REPLY_TYPES_IGNORED=[_0x4aff15(0x8b)];export const AI_REPLY_TITLE_TYPE=_0x4aff15(0x8c);export class AIReply extends _0x3a9535(){['id'];[_0x4aff15(0x96)];[_0x4aff15(0x9e)];[_0x4aff15(0x94)]=[];[_0x4aff15(0xa8)]=new _0x2c4f27([]);[_0x4aff15(0x78)]=new _0x2c4f27([]);[_0x4aff15(0xb2)]=[];[_0x4aff15(0x81)]=!0x1;[_0x4aff15(0x9d)];[_0x4aff15(0x98)];[_0x4aff15(0x72)];[_0x4aff15(0xa1)];constructor({type:_0x39f493,content:_0x53d0ce='',isDone:_0x4dee0c=!0x1,interactionId:_0x5734b8,areActionsDisabled:_0x1ad0a0,documentContextContent:_0x3e5dda,editor:_0x555769}){const _0x4e3ee7=_0x4aff15;super(),this['id']=_0x7ab8c4(),this[_0x4e3ee7(0x96)]=_0x5734b8,this[_0x4e3ee7(0x9e)]=_0x39f493,this[_0x4e3ee7(0x81)]=!!_0x1ad0a0,this[_0x4e3ee7(0xa1)]=_0x555769,this[_0x4e3ee7(0x98)]=new _0x264552(),this[_0x4e3ee7(0x72)]=new _0x3c9a38(),this[_0x4e3ee7(0x9d)]=_0x1514b1(_0x3e5dda||''),this[_0x4e3ee7(0x8f)](_0x4e3ee7(0x74),_0x4dee0c),this['on'](_0x4e3ee7(0xae),()=>{const _0x525b09=_0x4e3ee7;this[_0x525b09(0xa5)]();}),this[_0x4e3ee7(0x8f)](_0x4e3ee7(0x71),_0x53d0ce);}[_0x4aff15(0xa7)](_0x3538a0){const _0x3f7191=_0x4aff15;this[_0x3f7191(0x8f)](_0x3f7191(0x71),this[_0x3f7191(0x71)]+_0x3538a0);}[_0x4aff15(0x70)](){const _0x3f283a=_0x4aff15;this[_0x3f283a(0x74)]||(this[_0x3f283a(0x8f)](_0x3f283a(0x74),!0x0),this[_0x3f283a(0xa5)]());}[_0x4aff15(0x99)](){const _0x1ee143=_0x4aff15;this[_0x1ee143(0x93)]();}[_0x4aff15(0x87)](_0x24d978,_0x5dbcbc){const _0x59e31b=_0x4aff15;this[_0x59e31b(0xb2)][_0x24d978][_0x59e31b(0xa3)]=_0x5dbcbc,this[_0x59e31b(0xa6)](_0x59e31b(0x88),{'reply':this,'index':_0x24d978,'state':_0x5dbcbc});}[_0x4aff15(0xa5)](){const _0x39b8ea=_0x4aff15;if(_0x39b8ea(0x73)===this[_0x39b8ea(0x9e)]){this[_0x39b8ea(0xa8)]=this[_0x39b8ea(0x98)][_0x39b8ea(0x83)](this[_0x39b8ea(0x71)]);const _0x4543bd=this[_0x39b8ea(0xb2)];this[_0x39b8ea(0x6f)]();const _0x4ef3f0=this[_0x39b8ea(0x7b)](_0x4543bd,this[_0x39b8ea(0xb2)]);(_0x4ef3f0[_0x39b8ea(0x91)]||this[_0x39b8ea(0x74)])&&this[_0x39b8ea(0xa6)](_0x39b8ea(0xb3),this,_0x4ef3f0);}else this[_0x39b8ea(0xa8)]=this[_0x39b8ea(0x98)][_0x39b8ea(0x8d)](this[_0x39b8ea(0x71)]),this[_0x39b8ea(0xa6)](_0x39b8ea(0xb3),this);}[_0x4aff15(0x7b)](_0x513133,_0x381862){const _0x15763b=_0x4aff15,_0x30dbed=[];for(const _0x5cf58b of _0x381862){const _0x1ab97e=_0x513133[_0x5cf58b[_0x15763b(0x9a)]];_0x1ab97e?_0x1ab97e[_0x15763b(0xa2)][_0x15763b(0x91)]!==_0x5cf58b[_0x15763b(0xa2)][_0x15763b(0x91)]?_0x30dbed[_0x15763b(0xb1)](_0x5cf58b):_0x1ab97e[_0x15763b(0xa2)][_0x15763b(0x84)]((_0x55495f,_0x33f5a1)=>{const _0x3a3c37=_0x15763b,_0x3f8f96=_0x5cf58b[_0x3a3c37(0xa2)][_0x33f5a1];_0x55495f['id']!==_0x3f8f96['id']&&_0x30dbed[_0x3a3c37(0xb1)](_0x5cf58b);}):_0x30dbed[_0x15763b(0xb1)](_0x5cf58b);}return _0x30dbed;}[_0x4aff15(0x6f)](){const _0x2b99a6=_0x4aff15,_0x355837=new _0x486a76('p',{},[new _0x486a76(_0x2b99a6(0x76),{'style':_0x2b99a6(0x97)},[new _0x49e13a(_0x2b99a6(0xa0))])]),_0x1a3811=this[_0x2b99a6(0x72)][_0x2b99a6(0x82)](this[_0x2b99a6(0xa8)],this[_0x2b99a6(0x9d)][_0x2b99a6(0x85)](!0x0),{'markUnstableElements':!this[_0x2b99a6(0x74)],'replaceRemovedWith':_0x355837,'cutAfterLastChange':!this[_0x2b99a6(0x74)]});if(!_0x1a3811[_0x2b99a6(0x7c)][_0x2b99a6(0x91)]&&!this[_0x2b99a6(0x74)])return;this[_0x2b99a6(0x78)]=_0x1a3811[_0x2b99a6(0xa8)];let _0xf127ae=[];if(_0x1e947f(_0x32f913=>{const _0x216d44=_0x2b99a6,_0xd037be=_0x59f811(_0x32f913,_0x216d44(0x80));if(!_0xd037be||!_0xd43ff6(_0xd037be))return!0x1;const _0x31baea=[_0x32f913,..._0x37ecaa(_0x32f913)]['at'](-0x2);if(_0x32f913!=_0x31baea){const _0x33acbc=_0x59f811(_0x31baea,_0x216d44(0x80));_0xd43ff6(_0x33acbc)||(_0xf127ae[_0x216d44(0xb1)]({'node':_0x31baea,'id':_0x33acbc,'type':_0x216d44(0xa4)}),_0x1a3811[_0x216d44(0x7c)][_0x216d44(0xb1)](_0x33acbc));}else _0x1a3811[_0x216d44(0x7c)][_0x216d44(0x79)](_0xd037be)?_0xf127ae[_0x216d44(0xb1)]({'node':_0x32f913,'type':_0x216d44(0xa4),'id':_0xd037be}):_0x1a3811[_0x216d44(0xaa)][_0x216d44(0x79)](_0xd037be)?_0xf127ae[_0x216d44(0xb1)]({'node':_0x32f913,'type':_0x216d44(0x77),'id':_0xd037be,'anchorId':_0x59f811(_0x32f913[_0x216d44(0x95)],_0x216d44(0x80))}):_0xf127ae[_0x216d44(0xb1)]({'node':_0x32f913,'type':_0x216d44(0xb4),'id':_0xd037be});return!0x0;},this[_0x2b99a6(0x78)]),_0xf127ae=_0xf127ae[_0x2b99a6(0xb0)](({node:_0x1205cd})=>[..._0x37ecaa(_0x1205cd),_0x1205cd][_0x2b99a6(0x89)](_0x1b4894=>!_0x59f811(_0x1b4894,_0x2b99a6(0x9c)))),0x0==_0xf127ae[_0x2b99a6(0x91)])return;const _0x591c42=[[_0xf127ae[0x0]]];for(let _0x30cd1d=0x1;_0x30cd1d<_0xf127ae[_0x2b99a6(0x91)];_0x30cd1d++){const _0x4c5796=_0x591c42[_0x591c42[_0x2b99a6(0x91)]-0x1],_0x55eb91=_0x4c5796[_0x4c5796[_0x2b99a6(0x91)]-0x1];_0xf127ae[_0x30cd1d][_0x2b99a6(0x75)][_0x2b99a6(0x95)]==_0x55eb91[_0x2b99a6(0x75)]&&_0x2b99a6(0xa4)!=_0xf127ae[_0x30cd1d][_0x2b99a6(0x9e)]&&_0x2b99a6(0xa4)!=_0x55eb91[_0x2b99a6(0x9e)]?_0x4c5796[_0x2b99a6(0xb1)](_0xf127ae[_0x30cd1d]):_0x591c42[_0x2b99a6(0xb1)]([_0xf127ae[_0x30cd1d]]);}for(const _0x24a470 of _0x591c42){const _0x16f316=_0x24a470[0x0],_0x4c1abf=_0x24a470[_0x24a470[_0x2b99a6(0x91)]-0x1],_0x30f679=_0x1eb315(_0x16f316[_0x2b99a6(0x75)][_0x2b99a6(0x95)]);_0x30f679&&_0x24a470[_0x2b99a6(0x9f)](_0x30f679);const _0x3f83ca=_0x1eb315(_0x4c1abf[_0x2b99a6(0x75)][_0x2b99a6(0x7a)]);_0x3f83ca&&_0x24a470[_0x2b99a6(0xb1)](_0x3f83ca);}function _0xd43ff6(_0x291a75){const _0x400f4f=_0x2b99a6;return _0x1a3811[_0x400f4f(0x7c)][_0x400f4f(0x79)](_0x291a75)||_0x1a3811[_0x400f4f(0xaa)][_0x400f4f(0x79)](_0x291a75)||_0x1a3811[_0x400f4f(0x90)][_0x400f4f(0x79)](_0x291a75);}function _0x1eb315(_0x224d79){const _0x57967a=_0x2b99a6;if(_0x224d79&&_0x59f811(_0x224d79,_0x57967a(0x80))&&!_0x59f811(_0x224d79,_0x57967a(0x9c))){const _0x1f8103=_0x59f811(_0x224d79,_0x57967a(0x80));if(!_0xd43ff6(_0x1f8103))return{'node':_0x224d79,'type':_0x57967a(0xa9),'id':_0x1f8103};}return null;}this[_0x2b99a6(0xb2)]=_0x591c42[_0x2b99a6(0xac)]((_0x2c4cf0,_0x455f72)=>({'changes':_0x2c4cf0,'state':_0x2b99a6(0x9b),'index':_0x455f72}));}}function _0x4e97(){const _0x2f2aee=['done','content','aiResponseApplier','modification-delta','isDone','node','span','new','parsedMergedContent','includes','nextSibling','_getDifferentChangeGroups','modifiedNodeIds','727980XyPusK','137285cryAND','255920cOaKMa','data-id','areActionsDisabled','merge','parseAndNormalizeHTML','forEach','cloneNode','24cpBniN','setChangeGroupState','replyChangeGroupStateUpdated','every','3504888UgNFuS','reasoning','conversation-title','convertMarkdownToHTML','52486yDqFZf','set','removedNodeIds','length','source','stopListening','sources','previousSibling','interactionId','color:\x20#808080;\x20font-style:\x20italic','aiResponseParser','destroy','index','pending','data-unstable','documentContextContent','type','unshift','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','editor','changes','state','modified','onContentChange','fire','appendContent','parsedContent','context','newNodeIds','values','map','text-delta','change:content','1078185BjUQyt','filter','push','changeGroups','replyContentUpdated','removed','115732SUnGOY','updateChangeGroups'];_0x4e97=function(){return _0x2f2aee;};return _0x4e97();}export function isValidReplyType(_0x12ef98){const _0x386259=_0x4aff15;return Object[_0x386259(0xab)](AI_REPLY_TYPES)[_0x386259(0x79)](_0x12ef98);}export function isIgnoredReplyType(_0x25d079){const _0x2e2e1f=_0x4aff15;return AI_REPLY_TYPES_IGNORED[_0x2e2e1f(0x79)](_0x25d079);}export function isReplyTitleType(_0x27a6fa){return _0x27a6fa===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x419ada){const _0x23cefa=_0x4aff15;return _0x23cefa(0x92)===_0x419ada;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x39e2df(){[_0x5564fc(0xa0)];[_0x5564fc(0x81)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5564fc(0xb6)]=new Set();constructor(_0x2b4b98){const _0x6284cf=_0x5564fc;super(),this[_0x6284cf(0xa0)]=_0x2b4b98||_0x3634ab;}[_0x5564fc(0x74)](_0x1aab40,_0x43b224,_0x4dc1f8){const _0x5ef6fb=_0x5564fc,_0x53f72e=_0x195dd7(_0x1aab40);if(0x0===_0x43b224[_0x5ef6fb(0xb7)][_0x5ef6fb(0x9a)]){const _0x36b563=[];return _0x10bd60(_0x5ef6fb(0x9e),_0x5ef6fb(0xbc),_0x53f72e)[_0x5ef6fb(0xba)](_0x25413c=>{const _0x93286e=_0x5ef6fb,_0x313610=this[_0x93286e(0xa0)]();_0x1c3b98(_0x25413c,_0x93286e(0x9e),_0x313610),_0x36b563[_0x93286e(0xb0)](_0x313610);}),this[_0x5ef6fb(0xb5)](_0x53f72e),{'parsedContent':_0x53f72e,'newNodeIds':_0x36b563,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0x84)]&&this[_0x5ef6fb(0x8a)](_0x53f72e),this[_0x5ef6fb(0x81)][_0x5ef6fb(0x8f)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xb9)]=[],this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]=null,this[_0x5ef6fb(0xb6)]=new Set(_0x10bd60(_0x5ef6fb(0x9e),null,_0x43b224)[_0x5ef6fb(0xbb)](_0x534c06=>_0x5c2e3b(_0x534c06,_0x5ef6fb(0x9e)))[_0x5ef6fb(0xb3)](_0x1988a3=>!!_0x1988a3));let _0x11799b=-0x1,_0x26c8e7=!0x1;const _0x42b1c6=_0x53f72e[_0x5ef6fb(0xb7)],_0x211da2=Array[_0x5ef6fb(0xa4)](_0x42b1c6)[_0x5ef6fb(0xb3)](_0x4eabaf=>!(0x3===_0x4eabaf[_0x5ef6fb(0x7e)]&&''===_0x5133f3(_0x4eabaf)[_0x5ef6fb(0xa2)]())),_0x15e8b0=_0x211da2[_0x5ef6fb(0x9a)];for(let _0x35e3ac=0x0;_0x35e3ac<_0x15e8b0;_0x35e3ac++){const _0x4882a4=_0x211da2[_0x35e3ac],_0x14b2e7=_0x211da2[_0x35e3ac+0x1];if(this[_0x5ef6fb(0x78)](_0x4882a4)){if(-0x1===_0x11799b&&(_0x11799b=_0x35e3ac),this[_0x5ef6fb(0x76)](_0x4882a4),!this[_0x5ef6fb(0x78)](_0x14b2e7)){const [_0x233cfa,_0x58dd33]=this[_0x5ef6fb(0x77)](_0x4882a4,_0x26c8e7,_0x43b224);if(_0x233cfa){const _0x47d82b=Array[_0x5ef6fb(0xa4)](_0x211da2)[_0x5ef6fb(0x97)](_0x11799b,_0x35e3ac+0x1);this[_0x5ef6fb(0x7a)](_0x233cfa,_0x47d82b,_0x58dd33),_0x11799b=-0x1;}}}else{if(this[_0x5ef6fb(0x95)](_0x4882a4))_0x26c8e7=!0x0;else{if(this[_0x5ef6fb(0x85)](_0x4882a4)){const _0x4e9e70=_0x5c2e3b(_0x4882a4,_0x5ef6fb(0x9e));if(_0x4e9e70&&this[_0x5ef6fb(0xb6)][_0x5ef6fb(0x90)](_0x4e9e70)){const _0x16c564=_0x4855b2(_0x5ef6fb(0x9e),_0x4e9e70,_0x43b224);this[_0x5ef6fb(0x99)](_0x16c564,_0x4882a4);}if(this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0xa8)](_0x4e9e70)){const _0xcd440c=this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0x86)](_0x4e9e70);this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)][_0x5ef6fb(0xa7)](_0xcd440c,0x1);}}else{if(this[_0x5ef6fb(0x8d)](_0x4882a4)){const _0x242954=_0x5c2e3b(_0x4882a4,_0x5ef6fb(0x9e));this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)][_0x5ef6fb(0xa8)](_0x242954)||this[_0x5ef6fb(0x8b)](_0x4882a4);}}}}}for(const _0x4688a0 of this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]){const _0x2b60d5=_0x4855b2(_0x5ef6fb(0x9e),_0x4688a0,_0x43b224);if(_0x2b60d5){if(_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0xab)]){this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]=_0x4688a0;const _0x96f044=_0x4dc1f8[_0x5ef6fb(0xab)][_0x5ef6fb(0xa3)](!0x0);_0x1c3b98(_0x96f044,_0x5ef6fb(0x9e),_0x4688a0),_0x1c3b98(_0x96f044,_0x5ef6fb(0x7b),_0x5ef6fb(0x75)),_0x3a2056(_0x2b60d5,_0x96f044);}else _0x2f76dd(_0x2b60d5);}}if(_0x10bd60(_0x5ef6fb(0x88),null,_0x43b224)[_0x5ef6fb(0xba)](_0x24c353=>{const _0x3b334d=_0x5ef6fb,_0x4c0c18=_0x5c2e3b(_0x24c353,_0x3b334d(0x88)),_0x43c52b=_0x4855b2(_0x3b334d(0x9e),_0x4c0c18,_0x43b224);_0x43c52b&&_0x4660a0(_0x43c52b,_0x24c353);}),_0x10bd60(_0x5ef6fb(0x9e),_0x5ef6fb(0xbc),_0x43b224)[_0x5ef6fb(0xba)](_0x4659e0=>{const _0x5d009c=_0x5ef6fb,_0x32e042=this[_0x5d009c(0x80)](_0x4659e0);_0x1c3b98(_0x4659e0,_0x5d009c(0x9e),_0x32e042),this[_0x5d009c(0x81)][_0x5d009c(0x8f)][_0x5d009c(0xb0)](_0x32e042);}),this[_0x5ef6fb(0xb5)](_0x43b224),_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0x84)]&&this[_0x5ef6fb(0x8e)](_0x43b224,_0x4dc1f8[_0x5ef6fb(0xaa)]||0x0),_0x4dc1f8&&_0x4dc1f8[_0x5ef6fb(0xa1)]&&this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)]){let _0x41eafb=_0x4855b2(_0x5ef6fb(0x9e),this[_0x5ef6fb(0x81)][_0x5ef6fb(0xad)],_0x43b224);for(;_0x41eafb;)_0x5c78bd(_0x41eafb),_0x41eafb=_0x41eafb[_0x5ef6fb(0xaf)];}return{'parsedContent':_0x43b224,'newNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0x8f)],'modifiedNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0xac)],'removedNodeIds':this[_0x5ef6fb(0x81)][_0x5ef6fb(0x7d)]};}[_0x5564fc(0x7a)](_0x40f91a,_0x5486ea,_0x12fa04){const _0x61fedb=_0x5564fc;for(const _0x1eceb5 of _0x5486ea){const _0x5c0be4=this[_0x61fedb(0x80)](_0x1eceb5);_0x1c3b98(_0x1eceb5,_0x61fedb(0x9e),_0x5c0be4),this[_0x61fedb(0x81)][_0x61fedb(0x8f)][_0x61fedb(0xb0)](_0x5c0be4),this[_0x61fedb(0x81)][_0x61fedb(0xad)]=_0x5c0be4;}const _0x480f01=_0x61fedb(0x94)===_0x12fa04||_0x61fedb(0x82)===_0x12fa04?_0x5486ea[_0x61fedb(0x79)]():_0x5486ea;for(const _0xda03b4 of _0x480f01)_0x360121(_0x40f91a,_0xda03b4,_0x12fa04);}[_0x5564fc(0x99)](_0x5840bb,_0x333819){const _0x15c742=_0x5564fc;if(!_0x5840bb)return;if(_0x5e1b73(_0x5840bb,_0x333819))return;const _0x2e7ec8=this[_0x15c742(0x80)](_0x5840bb);_0x1c3b98(_0x333819,_0x15c742(0x9e),_0x2e7ec8),this[_0x15c742(0x81)][_0x15c742(0xac)][_0x15c742(0xb0)](_0x2e7ec8),this[_0x15c742(0x81)][_0x15c742(0xad)]=_0x2e7ec8,_0x3a2056(_0x5840bb,_0x333819[_0x15c742(0xa3)](!0x0));}[_0x5564fc(0x77)](_0x18732b,_0x240da0,_0xbf21dc){const _0x4a4570=_0x5564fc,_0x5c28de=this[_0x4a4570(0xa6)](_0x18732b,!0x1);if(_0x5c28de){const _0x34148f=this[_0x4a4570(0x7f)](_0x5c28de),_0x5c4e25=_0x4855b2(_0x4a4570(0x9e),_0x34148f,_0xbf21dc);if(_0x5c4e25)return[_0x5c4e25,_0x4a4570(0x82)];this[_0x4a4570(0x81)][_0x4a4570(0xb9)][_0x4a4570(0xb0)](_0x34148f);}const _0x56c566=this[_0x4a4570(0x7c)](_0x18732b,!0x1);if(_0x56c566){const _0x5933f5=this[_0x4a4570(0x7f)](_0x56c566),_0x758a9f=_0x4855b2(_0x4a4570(0x9e),_0x5933f5,_0xbf21dc);if(_0x758a9f)return[_0x758a9f,_0x4a4570(0xb1)];this[_0x4a4570(0x81)][_0x4a4570(0xb9)][_0x4a4570(0xb0)](_0x5933f5);}return _0x240da0?_0x18732b[_0x4a4570(0xb8)]?this[_0x4a4570(0x83)](_0x18732b,_0xbf21dc):[_0xbf21dc[_0x4a4570(0xb7)][_0xbf21dc[_0x4a4570(0xb7)][_0x4a4570(0x9a)]-0x1],_0x4a4570(0x82)]:[_0xbf21dc[_0x4a4570(0xb7)][0x0],_0x4a4570(0xb1)];}[_0x5564fc(0x83)](_0x5e0cdf,_0x494937){const _0x1d2057=_0x5564fc,_0x41db61=[],_0x5b1e6c=this[_0x1d2057(0xa6)](_0x5e0cdf,!0x0);if(_0x5b1e6c){const _0x3901c0=this[_0x1d2057(0x7f)](_0x5b1e6c),_0x49a674=_0x4855b2(_0x1d2057(0x9e),_0x3901c0,_0x494937);_0x49a674&&_0x41db61[_0x1d2057(0xb0)]([_0x49a674,_0x1d2057(0x82)]);}const _0x27b41b=this[_0x1d2057(0x7c)](_0x5e0cdf,!0x0);if(_0x27b41b){const _0x36b946=this[_0x1d2057(0x7f)](_0x27b41b),_0x15cc97=_0x4855b2(_0x1d2057(0x9e),_0x36b946,_0x494937);_0x15cc97&&_0x41db61[_0x1d2057(0xb0)]([_0x15cc97,_0x1d2057(0xb1)]);}if(_0x41db61[_0x1d2057(0x9a)]>0x1)return _0x16fa6c(_0x41db61[0x0][0x0])<=_0x16fa6c(_0x41db61[0x1][0x0])?_0x41db61[0x0]:_0x41db61[0x1];return 0x1===_0x41db61[_0x1d2057(0x9a)]?_0x41db61[0x0]:[_0x494937[_0x1d2057(0xae)],_0x1d2057(0x82)];}[_0x5564fc(0x7c)](_0x95b77e,_0x35d1a7){const _0x2961c7=_0x5564fc;let _0x31d4c7=_0x95b77e[_0x2961c7(0xb8)],_0x2db1d2=null,_0x2e8fea=!0x1;for(;_0x31d4c7;){if(_0x114a30(_0x31d4c7)){if(this[_0x2961c7(0x8d)](_0x31d4c7)&&(_0x2db1d2=_0x31d4c7),this[_0x2961c7(0x95)](_0x31d4c7)&&_0x35d1a7&&!_0x2e8fea){_0x2e8fea=!0x0,_0x31d4c7=_0x31d4c7[_0x2961c7(0xb8)];continue;}break;}const _0x2902e6=_0x5c2e3b(_0x31d4c7,_0x2961c7(0x9e));if(_0x2902e6&&_0x2961c7(0xbc)!==_0x2902e6&&this[_0x2961c7(0xb6)][_0x2961c7(0x90)](_0x2902e6)){_0x2db1d2=_0x31d4c7;break;}_0x31d4c7=_0x31d4c7[_0x2961c7(0xb8)];}return _0x2db1d2;}[_0x5564fc(0xa6)](_0x443f67,_0xab1f69){const _0x285688=_0x5564fc;let _0x30222e=_0x443f67[_0x285688(0x9d)],_0x26d220=null,_0x2286a0=!0x1;for(;_0x30222e;){if(_0x114a30(_0x30222e)){if(this[_0x285688(0x8d)](_0x30222e)&&(_0x26d220=_0x30222e),this[_0x285688(0x95)](_0x30222e)&&_0xab1f69&&!_0x2286a0){_0x2286a0=!0x0,_0x30222e=_0x30222e[_0x285688(0x9d)];continue;}break;}const _0x270f27=_0x5c2e3b(_0x30222e,_0x285688(0x9e));if(_0x270f27&&_0x285688(0xbc)!==_0x270f27&&this[_0x285688(0xb6)][_0x285688(0x90)](_0x270f27)){_0x26d220=_0x30222e;break;}_0x30222e=_0x30222e[_0x285688(0x9d)];}return _0x26d220;}[_0x5564fc(0x76)](_0x3e3640){const _0x2ff21d=_0x5564fc;_0x521f1b(_0x3e3640)&&_0x10bd60(_0x2ff21d(0x9e),null,_0x3e3640)[_0x2ff21d(0xba)](_0x285c73=>{const _0x39e255=_0x2ff21d;if(this[_0x39e255(0x85)](_0x285c73)&&!this[_0x39e255(0x96)](_0x285c73)){const _0x9ad75=_0x5c2e3b(_0x285c73,_0x39e255(0x9e));_0x1c3b98(_0x285c73,_0x39e255(0x88),_0x9ad75),_0x1c3b98(_0x285c73,_0x39e255(0x9e),null);}});}[_0x5564fc(0x7f)](_0x1d100c){const _0x694ed1=_0x5564fc;if(!_0x1d100c)return null;if(_0x521f1b(_0x1d100c))return _0x5c2e3b(_0x1d100c,_0x694ed1(0x9e));if(_0x114a30(_0x1d100c)){const _0x261e95=_0x5133f3(_0x1d100c)[_0x694ed1(0xb4)](/removed[\s*-]data-id="([^"]+)"/);if(_0x261e95&&_0x261e95[0x1])return _0x261e95[0x1];}return null;}[_0x5564fc(0x8b)](_0x5192cc){const _0x16a7c3=_0x5564fc;if(_0x114a30(_0x5192cc)){const _0x1e99c0=_0x5133f3(_0x5192cc)[_0x16a7c3(0xb4)](/removed[\s*-]data-id="([^"]+)"/);_0x1e99c0&&_0x1e99c0[0x1]&&this[_0x16a7c3(0x81)][_0x16a7c3(0x7d)][_0x16a7c3(0xb0)](_0x1e99c0[0x1]);}}[_0x5564fc(0x80)](_0x3c9253){const _0xff35c9=_0x5564fc;return this[_0xff35c9(0x85)](_0x3c9253)?_0x5c2e3b(_0x3c9253,_0xff35c9(0x9e)):this[_0xff35c9(0xa0)]();}[_0x5564fc(0xb5)](_0x464d4d){const _0x512a0e=_0x5564fc;_0x16e681(_0x464d4d)[_0x512a0e(0xb3)](_0x5653b7=>this[_0x512a0e(0x8d)](_0x5653b7)||this[_0x512a0e(0x95)](_0x5653b7))[_0x512a0e(0xba)](_0x39f402=>{_0x2f76dd(_0x39f402);});}[_0x5564fc(0x8a)](_0x531b6f){const _0x16357d=_0x5564fc,_0x72205=_0x531b6f[_0x16357d(0xb7)],_0x20eb51=_0x72205[_0x72205[_0x16357d(0x9a)]-0x1];_0x20eb51&&_0x521f1b(_0x20eb51)&&_0x1c3b98(_0x20eb51,_0x16357d(0x92),_0x16357d(0x75));}[_0x5564fc(0x8e)](_0x4ea710,_0x593267){const _0x5e1d9a=_0x5564fc,_0x467fec=_0x4855b2(_0x5e1d9a(0x92),_0x5e1d9a(0x75),_0x4ea710);if(!_0x467fec)return;const _0x99752e=_0x15c503(_0x467fec)[_0x5e1d9a(0x97)](0x0,-0x1),_0x50ca69=_0x99752e[_0x5e1d9a(0x9a)];let _0x2087a8=_0x467fec;if(_0x50ca69>_0x593267){let _0x464f39=_0x50ca69,_0x205a8d=null;for(;_0x464f39>_0x593267&&_0x464f39>=0x0;)_0x464f39--,_0x205a8d=_0x99752e[_0x464f39];_0x205a8d&&(_0x2087a8=_0x205a8d,_0x1c3b98(_0x467fec,_0x5e1d9a(0x92),null),_0x1c3b98(_0x205a8d,_0x5e1d9a(0x92),_0x5e1d9a(0x75)));}else{if(_0x50ca69<_0x593267){let _0x4dfb04=_0x50ca69,_0x90a9a3=_0x467fec;for(;_0x4dfb04<_0x593267;){const _0x1f8424=_0x90a9a3[_0x5e1d9a(0xb7)][_0x5e1d9a(0xb3)](_0x4880ac=>_0x521f1b(_0x4880ac));if(0x0===_0x1f8424[_0x5e1d9a(0x9a)])break;_0x4dfb04++,_0x90a9a3=_0x1f8424[_0x1f8424[_0x5e1d9a(0x9a)]-0x1];}_0x90a9a3&&(_0x2087a8=_0x90a9a3,_0x1c3b98(_0x467fec,_0x5e1d9a(0x92),null),_0x1c3b98(_0x90a9a3,_0x5e1d9a(0x92),_0x5e1d9a(0x75)));}}let _0x166748=_0x2087a8;for(;_0x166748;){for(;_0x166748[_0x5e1d9a(0xb8)];)_0x166748=_0x166748[_0x5e1d9a(0xb8)],_0x521f1b(_0x166748)&&_0x1c3b98(_0x166748,_0x5e1d9a(0x92),_0x5e1d9a(0x75));_0x166748=_0x166748[_0x5e1d9a(0xaf)];}}[_0x5564fc(0x78)](_0x1cac7e){const _0x39f7c1=_0x5564fc;return Boolean(_0x39f7c1(0xbc)===_0x5c2e3b(_0x1cac7e,_0x39f7c1(0x9e)));}[_0x5564fc(0x85)](_0x197469){const _0x5a2bb2=_0x5564fc;return Boolean((_0x5c2e3b(_0x197469,_0x5a2bb2(0x9e))||'')[_0x5a2bb2(0x9a)]>0x0&&_0x5a2bb2(0xbc)!==_0x5c2e3b(_0x197469,_0x5a2bb2(0x9e)));}[_0x5564fc(0x8d)](_0x51e532){const _0x43ad54=_0x5564fc;return!!_0x51e532&&Boolean(_0x114a30(_0x51e532)&&_0x5133f3(_0x51e532)[_0x43ad54(0xb4)](/removed[\s*-]data-id="[^"]+"/));}[_0x5564fc(0x96)](_0xdf5d87){const _0x2a2415=_0x5564fc;let _0x41f122=_0xdf5d87[_0x2a2415(0xaf)];for(;_0x41f122;){if(_0x5c2e3b(_0x41f122,_0x2a2415(0x88)))return!0x0;_0x41f122=_0x41f122[_0x2a2415(0xaf)];}return!0x1;}[_0x5564fc(0x95)](_0x460228){const _0x2932b1=_0x5564fc;return Boolean(_0x114a30(_0x460228)&&_0x5133f3(_0x460228)[_0x2932b1(0xb4)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x15c6(_0xeec5d4,_0x5a7942){const _0x1ade56=_0x1ade();return _0x15c6=function(_0x15c62f,_0x38077a){_0x15c62f=_0x15c62f-0x74;let _0x222de1=_0x1ade56[_0x15c62f];return _0x222de1;},_0x15c6(_0xeec5d4,_0x5a7942);}function _0x1ade(){const _0x43cf25=['trim','cloneNode','from','6813sVDlEm','_findPrevElementWithDataId','splice','includes','86790VLkwZT','markUnstableElementsDepth','replaceRemovedWith','modifiedIds','lastTouchedId','lastChild','parentNode','push','beforebegin','394280eBhAHa','filter','match','_removeSpecialComments','_existingDataIds','childNodes','nextSibling','invalidIds','forEach','map','new-element','merge','true','_markWrappedElements','_findReferenceNode','_isNewNode','reverse','_insertNodes','data-removed','_findNextElementWithDataId','removedIds','nodeType','_getNodeDataId','_getUid','_touchedNodesState','afterend','_findFallbackReferenceNode','markUnstableElements','_isExistingNode','indexOf','1896yFhBKw','data-wrapped-id','14998ZeENGW','_markLastTagElementUnstable','_storeDeletedElementIds','1673VsMuwl','_isDelNode','_markUnstableElements','newIds','has','300xLKPzY','data-unstable','656qDiiaW','afterbegin','_isExistingContentComment','_hasWrappedParent','slice','7EuvpEs','_replaceNode','length','6272zqmxsF','1258980zYnSUS','previousSibling','data-id','11TfieEo','_generateUid','cutAfterLastChange'];_0x1ade=function(){return _0x43cf25;};return _0x1ade();}
|
|
23
|
+
function _0x420e(_0x4d65db,_0x5eb73a){const _0x595585=_0x5955();return _0x420e=function(_0x420ed6,_0x48904b){_0x420ed6=_0x420ed6-0xa9;let _0x263c9a=_0x595585[_0x420ed6];return _0x263c9a;},_0x420e(_0x4d65db,_0x5eb73a);}const _0x3717cf=_0x420e;(function(_0x404f20,_0x26556d){const _0xe62a6b=_0x420e,_0xa629d=_0x404f20();while(!![]){try{const _0x2b014e=-parseInt(_0xe62a6b(0xed))/0x1*(-parseInt(_0xe62a6b(0xcb))/0x2)+parseInt(_0xe62a6b(0xd1))/0x3*(-parseInt(_0xe62a6b(0xeb))/0x4)+parseInt(_0xe62a6b(0xd4))/0x5+-parseInt(_0xe62a6b(0xe0))/0x6+-parseInt(_0xe62a6b(0xc7))/0x7*(parseInt(_0xe62a6b(0xae))/0x8)+parseInt(_0xe62a6b(0xd0))/0x9+parseInt(_0xe62a6b(0xc1))/0xa;if(_0x2b014e===_0x26556d)break;else _0xa629d['push'](_0xa629d['shift']());}catch(_0x3baa1c){_0xa629d['push'](_0xa629d['shift']());}}}(_0x5955,0x76308));import{ObservableMixin as _0x286046,uid as _0xd72eb6}from'ckeditor5/src/utils.js';function _0x5955(){const _0x958c29=['trim','true','parentNode','16150060uEIpWu','markUnstableElements','replaceRemovedWith','_isNewNode','_markLastTagElementUnstable','data-unstable','21ZFBdYa','map','lastTouchedId','_getUid','2npKzQF','_replaceNode','new-element','data-removed','modifiedIds','928125HouAUF','18nmNONq','has','markUnstableElementsDepth','2539130JsjfgU','push','_isDelNode','match','splice','_findNextElementWithDataId','afterbegin','merge','_hasWrappedParent','cloneNode','_removeSpecialComments','_isExistingContentComment','4426026GixmlA','newIds','invalidIds','_isExistingNode','from','_storeDeletedElementIds','data-wrapped-id','data-id','length','nodeType','nextSibling','434908hVDqdE','previousSibling','217859ltXDLu','_generateUid','_markUnstableElements','indexOf','slice','_findPrevElementWithDataId','includes','removedIds','1519144NxSKmh','_insertNodes','beforebegin','childNodes','_markWrappedElements','afterend','lastChild','filter','reverse','cutAfterLastChange','forEach','_getNodeDataId','_touchedNodesState','_findReferenceNode','_existingDataIds','_findFallbackReferenceNode'];_0x5955=function(){return _0x958c29;};return _0x5955();}import{findAllByAttribute as _0x55152f,findByAttribute as _0x59a4ef,getAttribute as _0x37f6b9,isComment as _0x347e4c,isTag as _0x1487ed,insertElement as _0x1475e4,moveElement as _0x56304e,removeElement as _0x26a502,replaceElement as _0x426237,serialize as _0x5b1f1d,setAttribute as _0x596360,clone as _0x428b9a,findAllComments as _0x352743,getParents as _0x14c991,getNodeNestingLevel as _0x50c1ba,areNodesSame as _0x9ead59,removeElementsAfter as _0x350869}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x286046(){[_0x3717cf(0xee)];[_0x3717cf(0xba)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3717cf(0xbc)]=new Set();constructor(_0x29cbec){const _0x1843b4=_0x3717cf;super(),this[_0x1843b4(0xee)]=_0x29cbec||_0xd72eb6;}[_0x3717cf(0xdb)](_0x55a206,_0x1a94e9,_0x1c5aa2){const _0x3f0c71=_0x3717cf,_0x4558c2=_0x428b9a(_0x55a206);if(0x0===_0x1a94e9[_0x3f0c71(0xb1)][_0x3f0c71(0xe8)]){const _0x3364ad=[];return _0x55152f(_0x3f0c71(0xe7),_0x3f0c71(0xcd),_0x4558c2)[_0x3f0c71(0xb8)](_0x251e9c=>{const _0x5aeaa2=_0x3f0c71,_0x3ce9b2=this[_0x5aeaa2(0xee)]();_0x596360(_0x251e9c,_0x5aeaa2(0xe7),_0x3ce9b2),_0x3364ad[_0x5aeaa2(0xd5)](_0x3ce9b2);}),this[_0x3f0c71(0xde)](_0x4558c2),{'parsedContent':_0x4558c2,'newNodeIds':_0x3364ad,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc2)]&&this[_0x3f0c71(0xc5)](_0x4558c2),this[_0x3f0c71(0xba)][_0x3f0c71(0xe1)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xe2)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]=null,this[_0x3f0c71(0xbc)]=new Set(_0x55152f(_0x3f0c71(0xe7),null,_0x1a94e9)[_0x3f0c71(0xc8)](_0x541ab9=>_0x37f6b9(_0x541ab9,_0x3f0c71(0xe7)))[_0x3f0c71(0xb5)](_0x47a8d3=>!!_0x47a8d3));let _0x565330=-0x1,_0x3e9844=!0x1;const _0x4b7e98=_0x4558c2[_0x3f0c71(0xb1)],_0x457c6f=Array[_0x3f0c71(0xe4)](_0x4b7e98)[_0x3f0c71(0xb5)](_0x14e66e=>!(0x3===_0x14e66e[_0x3f0c71(0xe9)]&&''===_0x5b1f1d(_0x14e66e)[_0x3f0c71(0xbe)]())),_0xc086d5=_0x457c6f[_0x3f0c71(0xe8)];for(let _0x38b04f=0x0;_0x38b04f<_0xc086d5;_0x38b04f++){const _0x382739=_0x457c6f[_0x38b04f],_0x4c545e=_0x457c6f[_0x38b04f+0x1];if(this[_0x3f0c71(0xc4)](_0x382739)){if(-0x1===_0x565330&&(_0x565330=_0x38b04f),this[_0x3f0c71(0xb2)](_0x382739),!this[_0x3f0c71(0xc4)](_0x4c545e)){const [_0x37b6c,_0x5e4926]=this[_0x3f0c71(0xbb)](_0x382739,_0x3e9844,_0x1a94e9);if(_0x37b6c){const _0x563e77=Array[_0x3f0c71(0xe4)](_0x457c6f)[_0x3f0c71(0xaa)](_0x565330,_0x38b04f+0x1);this[_0x3f0c71(0xaf)](_0x37b6c,_0x563e77,_0x5e4926),_0x565330=-0x1;}}}else{if(this[_0x3f0c71(0xdf)](_0x382739))_0x3e9844=!0x0;else{if(this[_0x3f0c71(0xe3)](_0x382739)){const _0x4c6f5e=_0x37f6b9(_0x382739,_0x3f0c71(0xe7));if(_0x4c6f5e&&this[_0x3f0c71(0xbc)][_0x3f0c71(0xd2)](_0x4c6f5e)){const _0x5c6394=_0x59a4ef(_0x3f0c71(0xe7),_0x4c6f5e,_0x1a94e9);this[_0x3f0c71(0xcc)](_0x5c6394,_0x382739);}if(this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xac)](_0x4c6f5e)){const _0x5e4c29=this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xa9)](_0x4c6f5e);this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xd8)](_0x5e4c29,0x1);}}else{if(this[_0x3f0c71(0xd6)](_0x382739)){const _0x2da4=_0x37f6b9(_0x382739,_0x3f0c71(0xe7));this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)][_0x3f0c71(0xac)](_0x2da4)||this[_0x3f0c71(0xe5)](_0x382739);}}}}}for(const _0x129498 of this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]){const _0x8ef271=_0x59a4ef(_0x3f0c71(0xe7),_0x129498,_0x1a94e9);if(_0x8ef271){if(_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc3)]){this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]=_0x129498;const _0x583aeb=_0x1c5aa2[_0x3f0c71(0xc3)][_0x3f0c71(0xdd)](!0x0);_0x596360(_0x583aeb,_0x3f0c71(0xe7),_0x129498),_0x596360(_0x583aeb,_0x3f0c71(0xce),_0x3f0c71(0xbf)),_0x426237(_0x8ef271,_0x583aeb);}else _0x26a502(_0x8ef271);}}if(_0x55152f(_0x3f0c71(0xe6),null,_0x1a94e9)[_0x3f0c71(0xb8)](_0x41484d=>{const _0x3e2649=_0x3f0c71,_0x2df444=_0x37f6b9(_0x41484d,_0x3e2649(0xe6)),_0x40d7f0=_0x59a4ef(_0x3e2649(0xe7),_0x2df444,_0x1a94e9);_0x40d7f0&&_0x56304e(_0x40d7f0,_0x41484d);}),_0x55152f(_0x3f0c71(0xe7),_0x3f0c71(0xcd),_0x1a94e9)[_0x3f0c71(0xb8)](_0x1218eb=>{const _0x4aeb2e=_0x3f0c71,_0x541a17=this[_0x4aeb2e(0xca)](_0x1218eb);_0x596360(_0x1218eb,_0x4aeb2e(0xe7),_0x541a17),this[_0x4aeb2e(0xba)][_0x4aeb2e(0xe1)][_0x4aeb2e(0xd5)](_0x541a17);}),this[_0x3f0c71(0xde)](_0x1a94e9),_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc2)]&&this[_0x3f0c71(0xef)](_0x1a94e9,_0x1c5aa2[_0x3f0c71(0xd3)]||0x0),_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xb7)]&&this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]){let _0x132d0c=_0x59a4ef(_0x3f0c71(0xe7),this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)],_0x1a94e9);for(;_0x132d0c;)_0x350869(_0x132d0c),_0x132d0c=_0x132d0c[_0x3f0c71(0xc0)];}return{'parsedContent':_0x1a94e9,'newNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xe1)],'modifiedNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)],'removedNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]};}[_0x3717cf(0xaf)](_0x26a052,_0x16cf0c,_0x290052){const _0x1f2727=_0x3717cf;for(const _0x2addd8 of _0x16cf0c){const _0xec87b5=this[_0x1f2727(0xca)](_0x2addd8);_0x596360(_0x2addd8,_0x1f2727(0xe7),_0xec87b5),this[_0x1f2727(0xba)][_0x1f2727(0xe1)][_0x1f2727(0xd5)](_0xec87b5),this[_0x1f2727(0xba)][_0x1f2727(0xc9)]=_0xec87b5;}const _0x3089a0=_0x1f2727(0xda)===_0x290052||_0x1f2727(0xb3)===_0x290052?_0x16cf0c[_0x1f2727(0xb6)]():_0x16cf0c;for(const _0x453e7c of _0x3089a0)_0x1475e4(_0x26a052,_0x453e7c,_0x290052);}[_0x3717cf(0xcc)](_0x551aa3,_0x455cb1){const _0x4cdb58=_0x3717cf;if(!_0x551aa3)return;if(_0x9ead59(_0x551aa3,_0x455cb1))return;const _0x1fca30=this[_0x4cdb58(0xca)](_0x551aa3);_0x596360(_0x455cb1,_0x4cdb58(0xe7),_0x1fca30),this[_0x4cdb58(0xba)][_0x4cdb58(0xcf)][_0x4cdb58(0xd5)](_0x1fca30),this[_0x4cdb58(0xba)][_0x4cdb58(0xc9)]=_0x1fca30,_0x426237(_0x551aa3,_0x455cb1[_0x4cdb58(0xdd)](!0x0));}[_0x3717cf(0xbb)](_0xb4b915,_0x263b54,_0x5536d0){const _0x713f4f=_0x3717cf,_0x2a252e=this[_0x713f4f(0xab)](_0xb4b915,!0x1);if(_0x2a252e){const _0x4857d9=this[_0x713f4f(0xb9)](_0x2a252e),_0x41f844=_0x59a4ef(_0x713f4f(0xe7),_0x4857d9,_0x5536d0);if(_0x41f844)return[_0x41f844,_0x713f4f(0xb3)];this[_0x713f4f(0xba)][_0x713f4f(0xe2)][_0x713f4f(0xd5)](_0x4857d9);}const _0xeae6d4=this[_0x713f4f(0xd9)](_0xb4b915,!0x1);if(_0xeae6d4){const _0x47cbc2=this[_0x713f4f(0xb9)](_0xeae6d4),_0x38a8c8=_0x59a4ef(_0x713f4f(0xe7),_0x47cbc2,_0x5536d0);if(_0x38a8c8)return[_0x38a8c8,_0x713f4f(0xb0)];this[_0x713f4f(0xba)][_0x713f4f(0xe2)][_0x713f4f(0xd5)](_0x47cbc2);}return _0x263b54?_0xb4b915[_0x713f4f(0xea)]?this[_0x713f4f(0xbd)](_0xb4b915,_0x5536d0):[_0x5536d0[_0x713f4f(0xb1)][_0x5536d0[_0x713f4f(0xb1)][_0x713f4f(0xe8)]-0x1],_0x713f4f(0xb3)]:[_0x5536d0[_0x713f4f(0xb1)][0x0],_0x713f4f(0xb0)];}[_0x3717cf(0xbd)](_0x54ab17,_0x480bf3){const _0x5a907f=_0x3717cf,_0x174639=[],_0x566f99=this[_0x5a907f(0xab)](_0x54ab17,!0x0);if(_0x566f99){const _0x171660=this[_0x5a907f(0xb9)](_0x566f99),_0x219e3e=_0x59a4ef(_0x5a907f(0xe7),_0x171660,_0x480bf3);_0x219e3e&&_0x174639[_0x5a907f(0xd5)]([_0x219e3e,_0x5a907f(0xb3)]);}const _0x1a0201=this[_0x5a907f(0xd9)](_0x54ab17,!0x0);if(_0x1a0201){const _0x4dec01=this[_0x5a907f(0xb9)](_0x1a0201),_0x3ccd77=_0x59a4ef(_0x5a907f(0xe7),_0x4dec01,_0x480bf3);_0x3ccd77&&_0x174639[_0x5a907f(0xd5)]([_0x3ccd77,_0x5a907f(0xb0)]);}if(_0x174639[_0x5a907f(0xe8)]>0x1)return _0x50c1ba(_0x174639[0x0][0x0])<=_0x50c1ba(_0x174639[0x1][0x0])?_0x174639[0x0]:_0x174639[0x1];return 0x1===_0x174639[_0x5a907f(0xe8)]?_0x174639[0x0]:[_0x480bf3[_0x5a907f(0xb4)],_0x5a907f(0xb3)];}[_0x3717cf(0xd9)](_0xadd901,_0x1d6c30){const _0x23b88e=_0x3717cf;let _0xf04c5b=_0xadd901[_0x23b88e(0xea)],_0x454723=null,_0x3e9d3c=!0x1;for(;_0xf04c5b;){if(_0x347e4c(_0xf04c5b)){if(this[_0x23b88e(0xd6)](_0xf04c5b)&&(_0x454723=_0xf04c5b),this[_0x23b88e(0xdf)](_0xf04c5b)&&_0x1d6c30&&!_0x3e9d3c){_0x3e9d3c=!0x0,_0xf04c5b=_0xf04c5b[_0x23b88e(0xea)];continue;}break;}const _0x274d0c=_0x37f6b9(_0xf04c5b,_0x23b88e(0xe7));if(_0x274d0c&&_0x23b88e(0xcd)!==_0x274d0c&&this[_0x23b88e(0xbc)][_0x23b88e(0xd2)](_0x274d0c)){_0x454723=_0xf04c5b;break;}_0xf04c5b=_0xf04c5b[_0x23b88e(0xea)];}return _0x454723;}[_0x3717cf(0xab)](_0x40c681,_0x2178b3){const _0x278bac=_0x3717cf;let _0x5af4f8=_0x40c681[_0x278bac(0xec)],_0x3af02a=null,_0x6ce45a=!0x1;for(;_0x5af4f8;){if(_0x347e4c(_0x5af4f8)){if(this[_0x278bac(0xd6)](_0x5af4f8)&&(_0x3af02a=_0x5af4f8),this[_0x278bac(0xdf)](_0x5af4f8)&&_0x2178b3&&!_0x6ce45a){_0x6ce45a=!0x0,_0x5af4f8=_0x5af4f8[_0x278bac(0xec)];continue;}break;}const _0x198403=_0x37f6b9(_0x5af4f8,_0x278bac(0xe7));if(_0x198403&&_0x278bac(0xcd)!==_0x198403&&this[_0x278bac(0xbc)][_0x278bac(0xd2)](_0x198403)){_0x3af02a=_0x5af4f8;break;}_0x5af4f8=_0x5af4f8[_0x278bac(0xec)];}return _0x3af02a;}[_0x3717cf(0xb2)](_0xe81c60){const _0x3a9e0d=_0x3717cf;_0x1487ed(_0xe81c60)&&_0x55152f(_0x3a9e0d(0xe7),null,_0xe81c60)[_0x3a9e0d(0xb8)](_0x2316ae=>{const _0x355b9c=_0x3a9e0d;if(this[_0x355b9c(0xe3)](_0x2316ae)&&!this[_0x355b9c(0xdc)](_0x2316ae)){const _0x3dd596=_0x37f6b9(_0x2316ae,_0x355b9c(0xe7));_0x596360(_0x2316ae,_0x355b9c(0xe6),_0x3dd596),_0x596360(_0x2316ae,_0x355b9c(0xe7),null);}});}[_0x3717cf(0xb9)](_0x3e794d){const _0x53647b=_0x3717cf;if(!_0x3e794d)return null;if(_0x1487ed(_0x3e794d))return _0x37f6b9(_0x3e794d,_0x53647b(0xe7));if(_0x347e4c(_0x3e794d)){const _0x56f79d=_0x5b1f1d(_0x3e794d)[_0x53647b(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x56f79d&&_0x56f79d[0x1])return _0x56f79d[0x1];}return null;}[_0x3717cf(0xe5)](_0x4af462){const _0x52194c=_0x3717cf;if(_0x347e4c(_0x4af462)){const _0x233324=_0x5b1f1d(_0x4af462)[_0x52194c(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x233324&&_0x233324[0x1]&&this[_0x52194c(0xba)][_0x52194c(0xad)][_0x52194c(0xd5)](_0x233324[0x1]);}}[_0x3717cf(0xca)](_0x41c273){const _0x483382=_0x3717cf;return this[_0x483382(0xe3)](_0x41c273)?_0x37f6b9(_0x41c273,_0x483382(0xe7)):this[_0x483382(0xee)]();}[_0x3717cf(0xde)](_0x22162e){const _0x51b3d6=_0x3717cf;_0x352743(_0x22162e)[_0x51b3d6(0xb5)](_0xcc8ea3=>this[_0x51b3d6(0xd6)](_0xcc8ea3)||this[_0x51b3d6(0xdf)](_0xcc8ea3))[_0x51b3d6(0xb8)](_0x1f01a0=>{_0x26a502(_0x1f01a0);});}[_0x3717cf(0xc5)](_0x57c7d0){const _0x4379fe=_0x3717cf,_0x447ec6=_0x57c7d0[_0x4379fe(0xb1)],_0x3c1638=_0x447ec6[_0x447ec6[_0x4379fe(0xe8)]-0x1];_0x3c1638&&_0x1487ed(_0x3c1638)&&_0x596360(_0x3c1638,_0x4379fe(0xc6),_0x4379fe(0xbf));}[_0x3717cf(0xef)](_0x28b899,_0x473228){const _0x450d3f=_0x3717cf,_0x20896a=_0x59a4ef(_0x450d3f(0xc6),_0x450d3f(0xbf),_0x28b899);if(!_0x20896a)return;const _0x24a010=_0x14c991(_0x20896a)[_0x450d3f(0xaa)](0x0,-0x1),_0x238952=_0x24a010[_0x450d3f(0xe8)];let _0x3f4f73=_0x20896a;if(_0x238952>_0x473228){let _0x2e73ac=_0x238952,_0x3567d6=null;for(;_0x2e73ac>_0x473228&&_0x2e73ac>=0x0;)_0x2e73ac--,_0x3567d6=_0x24a010[_0x2e73ac];_0x3567d6&&(_0x3f4f73=_0x3567d6,_0x596360(_0x20896a,_0x450d3f(0xc6),null),_0x596360(_0x3567d6,_0x450d3f(0xc6),_0x450d3f(0xbf)));}else{if(_0x238952<_0x473228){let _0x4d1fef=_0x238952,_0x431915=_0x20896a;for(;_0x4d1fef<_0x473228;){const _0x40f40e=_0x431915[_0x450d3f(0xb1)][_0x450d3f(0xb5)](_0x5f8265=>_0x1487ed(_0x5f8265));if(0x0===_0x40f40e[_0x450d3f(0xe8)])break;_0x4d1fef++,_0x431915=_0x40f40e[_0x40f40e[_0x450d3f(0xe8)]-0x1];}_0x431915&&(_0x3f4f73=_0x431915,_0x596360(_0x20896a,_0x450d3f(0xc6),null),_0x596360(_0x431915,_0x450d3f(0xc6),_0x450d3f(0xbf)));}}let _0x1aa20c=_0x3f4f73;for(;_0x1aa20c;){for(;_0x1aa20c[_0x450d3f(0xea)];)_0x1aa20c=_0x1aa20c[_0x450d3f(0xea)],_0x1487ed(_0x1aa20c)&&_0x596360(_0x1aa20c,_0x450d3f(0xc6),_0x450d3f(0xbf));_0x1aa20c=_0x1aa20c[_0x450d3f(0xc0)];}}[_0x3717cf(0xc4)](_0x35539d){const _0x4d57d4=_0x3717cf;return Boolean(_0x4d57d4(0xcd)===_0x37f6b9(_0x35539d,_0x4d57d4(0xe7)));}[_0x3717cf(0xe3)](_0x47eb55){const _0x5867f1=_0x3717cf;return Boolean((_0x37f6b9(_0x47eb55,_0x5867f1(0xe7))||'')[_0x5867f1(0xe8)]>0x0&&_0x5867f1(0xcd)!==_0x37f6b9(_0x47eb55,_0x5867f1(0xe7)));}[_0x3717cf(0xd6)](_0x5aafda){const _0x3cec6a=_0x3717cf;return!!_0x5aafda&&Boolean(_0x347e4c(_0x5aafda)&&_0x5b1f1d(_0x5aafda)[_0x3cec6a(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0x3717cf(0xdc)](_0x3efff2){const _0x448533=_0x3717cf;let _0x3f435d=_0x3efff2[_0x448533(0xc0)];for(;_0x3f435d;){if(_0x37f6b9(_0x3f435d,_0x448533(0xe6)))return!0x0;_0x3f435d=_0x3f435d[_0x448533(0xc0)];}return!0x1;}[_0x3717cf(0xdf)](_0x42a6dc){const _0x300134=_0x3717cf;return Boolean(_0x347e4c(_0x42a6dc)&&_0x5b1f1d(_0x42a6dc)[_0x300134(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x296a79=_0x21fe;(function(_0x25d6bf,_0x4708b9){const _0x518154=_0x21fe,_0x3ecf5e=_0x25d6bf();while(!![]){try{const _0x28cdbb=-parseInt(_0x518154(0x19f))/0x1+parseInt(_0x518154(0x194))/0x2*(-parseInt(_0x518154(0x19b))/0x3)+-parseInt(_0x518154(0x19a))/0x4+parseInt(_0x518154(0x1a2))/0x5*(parseInt(_0x518154(0x19c))/0x6)+parseInt(_0x518154(0x19e))/0x7*(parseInt(_0x518154(0x195))/0x8)+parseInt(_0x518154(0x1a0))/0x9+-parseInt(_0x518154(0x192))/0xa;if(_0x28cdbb===_0x4708b9)break;else _0x3ecf5e['push'](_0x3ecf5e['shift']());}catch(_0x13e36d){_0x3ecf5e['push'](_0x3ecf5e['shift']());}}}(_0x82c9,0x28235));import{ObservableMixin as _0x2dd8be}from'ckeditor5/src/utils.js';function _0x82c9(){const _0x5d1c6e=['28pLicYf','88762tKJLqx','2405664uZhCcv','children','72990KTWVmT','parseAndNormalizeHTML','convertMarkdownToHTML','1080040luHXJv','parse','4AroBuD','513784ueIKZt','</dummy>','<dummy>','replace','_parseHTML','1185316cVXGov','128487yavfeY','90cjQfjc','_m2html'];_0x82c9=function(){return _0x5d1c6e;};return _0x82c9();}function _0x21fe(_0x511747,_0x2e93e0){const _0x82c983=_0x82c9();return _0x21fe=function(_0x21feda,_0x2fdc5a){_0x21feda=_0x21feda-0x192;let _0x3930a7=_0x82c983[_0x21feda];return _0x3930a7;},_0x21fe(_0x511747,_0x2e93e0);}import{MarkdownGfmMdToHtml as _0x46bef6}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4c2e11}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2dd8be(){[_0x296a79(0x19d)];constructor(){const _0x25911a=_0x296a79;super(),this[_0x25911a(0x19d)]=new _0x46bef6();}[_0x296a79(0x1a4)](_0x4543bb){const _0x452b1c=_0x296a79,_0x11c0f7=this[_0x452b1c(0x19d)][_0x452b1c(0x193)](_0x4543bb);return this[_0x452b1c(0x1a3)](_0x11c0f7);}[_0x296a79(0x1a3)](_0x3e98c8){const _0x59b6bf=_0x296a79;return this[_0x59b6bf(0x199)](_0x3e98c8);}[_0x296a79(0x199)](_0x3aa3db){const _0x56edd4=_0x296a79,_0x4e12af=_0x3aa3db[_0x56edd4(0x198)](/^\t+/gm,'\x20')[_0x56edd4(0x198)](/\n*/g,'')[_0x56edd4(0x198)](/\s+/g,'\x20')[_0x56edd4(0x198)](/<[^>]*?$/g,''),_0x3e3af0=_0x4c2e11(_0x56edd4(0x197)+_0x4e12af+_0x56edd4(0x196));return _0x3e3af0[_0x56edd4(0x1a1)]=_0x3e3af0[_0x56edd4(0x1a1)][0x0][_0x56edd4(0x1a1)],_0x3e3af0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x458c1b,_0xfaa8ef){var _0x2dab4e=_0x56b2,_0x279d33=_0x458c1b();while(!![]){try{var _0x4d850d=-parseInt(_0x2dab4e(0xb7))/0x1*(parseInt(_0x2dab4e(0xb1))/0x2)+-parseInt(_0x2dab4e(0xbe))/0x3*(parseInt(_0x2dab4e(0xba))/0x4)+-parseInt(_0x2dab4e(0xb8))/0x5+parseInt(_0x2dab4e(0xb5))/0x6+-parseInt(_0x2dab4e(0xc0))/0x7*(parseInt(_0x2dab4e(0xbb))/0x8)+parseInt(_0x2dab4e(0xbc))/0x9*(parseInt(_0x2dab4e(0xbf))/0xa)+parseInt(_0x2dab4e(0xbd))/0xb;if(_0x4d850d===_0xfaa8ef)break;else _0x279d33['push'](_0x279d33['shift']());}catch(_0x18403c){_0x279d33['push'](_0x279d33['shift']());}}}(_0xc665,0x4077c));function _0x56b2(_0x4aba7a,_0x55881e){var _0xc66584=_0xc665();return _0x56b2=function(_0x56b2ef,_0x50d602){_0x56b2ef=_0x56b2ef-0xb1;var _0x3bee96=_0xc66584[_0x56b2ef];return _0x3bee96;},_0x56b2(_0x4aba7a,_0x55881e);}function _0xc665(){var _0x1add01=['50TNAarL','1564780GDSFLY','AI_DISCLAIMER_TEXT','82868PiTuzQ','58568qvAwau','45aUVRXI','8986142khrDVU','51HyEJvc','262440UHYfWA','133QPKXpa','9188jRCruU','ck-ai-disclaimer__content','setTemplate','div','2099172ucQZAx','ck-ai-disclaimer'];_0xc665=function(){return _0x1add01;};return _0xc665();}import{View as _0x13563e}from'ckeditor5/src/ui.js';import{getTranslation as _0x207e0b}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x13563e{constructor(_0x2833a7){var _0x1847ac=_0x56b2;super(_0x2833a7),this[_0x1847ac(0xb3)]({'tag':_0x1847ac(0xb4),'attributes':{'class':['ck',_0x1847ac(0xb6)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1847ac(0xb2)]},'children':[{'text':_0x207e0b(_0x2833a7,_0x1847ac(0xb9))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x15b4(_0x3dbdbd,_0x54c6fe){const _0x55174c=_0x5517();return _0x15b4=function(_0x15b4d4,_0x518aa2){_0x15b4d4=_0x15b4d4-0x10a;let _0x5a8ae8=_0x55174c[_0x15b4d4];return _0x5a8ae8;},_0x15b4(_0x3dbdbd,_0x54c6fe);}const _0x46c3c5=_0x15b4;(function(_0x1735ad,_0x22b92f){const _0x3cadf1=_0x15b4,_0x4395d3=_0x1735ad();while(!![]){try{const _0x30e46e=parseInt(_0x3cadf1(0x120))/0x1*(parseInt(_0x3cadf1(0x112))/0x2)+-parseInt(_0x3cadf1(0x133))/0x3*(-parseInt(_0x3cadf1(0x12e))/0x4)+-parseInt(_0x3cadf1(0x12a))/0x5*(-parseInt(_0x3cadf1(0x11a))/0x6)+parseInt(_0x3cadf1(0x116))/0x7+parseInt(_0x3cadf1(0x10f))/0x8*(-parseInt(_0x3cadf1(0x12f))/0x9)+parseInt(_0x3cadf1(0x131))/0xa+-parseInt(_0x3cadf1(0x118))/0xb;if(_0x30e46e===_0x22b92f)break;else _0x4395d3['push'](_0x4395d3['shift']());}catch(_0x59a790){_0x4395d3['push'](_0x4395d3['shift']());}}}(_0x5517,0x82dd1));import{View as _0x13db9b}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x13db9b{constructor(_0x571aae,_0x51402b){const _0xf34dda=_0x15b4;super(_0x571aae),this[_0xf34dda(0x10d)]({'tag':_0xf34dda(0x12d),'attributes':{'class':['ck',_0xf34dda(0x122)]},'children':this[_0xf34dda(0x12c)](_0x51402b)});}[_0x46c3c5(0x12c)](_0x1b73f8){const _0x269c8d=_0x46c3c5,_0x4cf287=['ck',_0x269c8d(0x125)];return _0x1b73f8[_0x269c8d(0x111)](_0x5e8ce5=>{const _0x2dc578=_0x269c8d;let _0x5338e4='';switch(_0x5e8ce5[_0x2dc578(0x124)][_0x2dc578(0x113)]){case _0x2dc578(0x11c):_0x5338e4=_0x2dc578(0x114);break;case _0x2dc578(0x115):_0x5338e4=_0x2dc578(0x10a);break;case _0x2dc578(0x127):_0x5338e4=_0x2dc578(0x11b);}return{'tag':_0x5e8ce5[_0x2dc578(0x11e)],'attributes':{'class':[..._0x4cf287,_0x5e8ce5[_0x2dc578(0x124)][_0x2dc578(0x130)]?_0x5e8ce5[_0x2dc578(0x124)][_0x2dc578(0x130)]:''],'style':_0x2dc578(0x10c)+_0x5e8ce5[_0x2dc578(0x124)][_0x2dc578(0x110)]+_0x2dc578(0x123)+_0x5e8ce5[_0x2dc578(0x124)][_0x2dc578(0x121)]+';'+_0x5338e4}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x10e),'height':_0x46c3c5(0x12b),'align':_0x46c3c5(0x11c)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x117),'height':_0x46c3c5(0x126),'align':_0x46c3c5(0x11c)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x10e),'height':_0x46c3c5(0x11d),'align':_0x46c3c5(0x11c)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x11f),'height':_0x46c3c5(0x126),'align':_0x46c3c5(0x11c)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x10e),'height':_0x46c3c5(0x10b),'align':_0x46c3c5(0x11c)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x117),'height':_0x46c3c5(0x126),'align':_0x46c3c5(0x11c)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x10e),'height':_0x46c3c5(0x11d),'align':_0x46c3c5(0x11c)}}],'aiHistory':$e(0x5,_0x46c3c5(0x10e),_0x46c3c5(0x132),_0x46c3c5(0x11c)),'aiChatResources':$e(0x8,_0x46c3c5(0x10e),_0x46c3c5(0x129),_0x46c3c5(0x11c)),'aiReviewChecks':[{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x128),'height':_0x46c3c5(0x129),'align':_0x46c3c5(0x127)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x10e),'height':_0x46c3c5(0x129),'align':_0x46c3c5(0x127)}},{'tag':_0x46c3c5(0x12d),'attributes':{'width':_0x46c3c5(0x128),'height':_0x46c3c5(0x129),'align':_0x46c3c5(0x127)}}]};function _0x5517(){const _0x43bff3=['100%','72UIwGAo','width','map','847456QUmHZt','align','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','center','5635441uIDDpF','250px','15748051nDWLgl','fill','536226awNdzs','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','right','88px','tag','150px','1npWVqE','height','ck-ai-skeleton',';\x20height:\x20','attributes','ck-ai-skeleton__item','40px','left','128px','24px','20LaFIHS','72px','_createSkeletonItems','div','4VKnbZM','496791vXirND','class','7961110GDFkrN','44px','246189AyJicR','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','140px','width:\x20','setTemplate'];_0x5517=function(){return _0x43bff3;};return _0x5517();}function $e(_0x518b13,_0x20aadf,_0x3b2331,_0x868e2b){const _0x2bb14d=_0x46c3c5;return new Array(_0x518b13)[_0x2bb14d(0x119)](null)[_0x2bb14d(0x111)](()=>({'tag':_0x2bb14d(0x12d),'attributes':{'width':_0x20aadf,'height':_0x3b2331,'align':_0x868e2b}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x500303,_0x41beee){const _0x48ac3d=_0x339c,_0x1188c0=_0x500303();while(!![]){try{const _0x2ba3c7=parseInt(_0x48ac3d(0x9c))/0x1*(parseInt(_0x48ac3d(0x95))/0x2)+-parseInt(_0x48ac3d(0x9d))/0x3+-parseInt(_0x48ac3d(0xa0))/0x4*(-parseInt(_0x48ac3d(0x9b))/0x5)+parseInt(_0x48ac3d(0x97))/0x6+parseInt(_0x48ac3d(0x9e))/0x7*(parseInt(_0x48ac3d(0x9a))/0x8)+-parseInt(_0x48ac3d(0x9f))/0x9*(-parseInt(_0x48ac3d(0x94))/0xa)+-parseInt(_0x48ac3d(0x96))/0xb;if(_0x2ba3c7===_0x41beee)break;else _0x1188c0['push'](_0x1188c0['shift']());}catch(_0x30bc7a){_0x1188c0['push'](_0x1188c0['shift']());}}}(_0x56d4,0x6f499));import{SpinnerView as _0x499890}from'ckeditor5/src/ui.js';function _0x56d4(){const _0x4a5495=['ck-ai-spinner_','1442210iDqIXr','10SzERKc','19484927Ackqid','5005728hwcugM','ck-ai-spinner','extendTemplate','8idwXKI','3030KTPeOl','148431tvJnmr','2314272rAgPET','4160674DbLvyw','9wMWkyt','4512cxYcJA','span'];_0x56d4=function(){return _0x4a5495;};return _0x56d4();}function _0x339c(_0x3cf9d3,_0x36feb8){const _0x56d4d0=_0x56d4();return _0x339c=function(_0x339c5e,_0x109800){_0x339c5e=_0x339c5e-0x94;let _0x187187=_0x56d4d0[_0x339c5e];return _0x187187;},_0x339c(_0x3cf9d3,_0x36feb8);}export class AISpinnerView extends _0x499890{constructor(_0x3f7b88=void 0x0){const _0x4f4eeb=_0x339c;super();const _0x502c38=_0x3f7b88?_0x4f4eeb(0xa2)+_0x3f7b88:'';this[_0x4f4eeb(0x99)]({'tag':_0x4f4eeb(0xa1),'attributes':{'class':[_0x4f4eeb(0x98),_0x502c38]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x50c7(_0x12eac7,_0x140de1){const _0x4d6ece=_0x4d6e();return _0x50c7=function(_0x50c7ac,_0x1cc4ec){_0x50c7ac=_0x50c7ac-0xeb;let _0x207582=_0x4d6ece[_0x50c7ac];return _0x207582;},_0x50c7(_0x12eac7,_0x140de1);}const _0x526aa3=_0x50c7;(function(_0x171a53,_0x20ec3c){const _0x14d04d=_0x50c7,_0x453dbb=_0x171a53();while(!![]){try{const _0x59c6e0=-parseInt(_0x14d04d(0x11c))/0x1+parseInt(_0x14d04d(0xfb))/0x2+parseInt(_0x14d04d(0x100))/0x3*(parseInt(_0x14d04d(0x11a))/0x4)+parseInt(_0x14d04d(0xf0))/0x5+parseInt(_0x14d04d(0x102))/0x6+parseInt(_0x14d04d(0x10a))/0x7+parseInt(_0x14d04d(0x10c))/0x8*(-parseInt(_0x14d04d(0x115))/0x9);if(_0x59c6e0===_0x20ec3c)break;else _0x453dbb['push'](_0x453dbb['shift']());}catch(_0x3af661){_0x453dbb['push'](_0x453dbb['shift']());}}}(_0x4d6e,0x64eb3));function _0x4d6e(){const _0xd91422=['showLike','extendTemplate','children','3924765QFmcCg','_config','ck-ai-mini-toolbar\x20ck-hidden','addMany','AI_MINI_TOOLBAR_LIKE','AI_SUGGESTION_BUTTON_SHOW_CHANGES','showChanges','items','full','ck-ai-mini-toolbar','toggleShowChanges','1053356vdhnZL','ck-ai-mini-toolbar-copy-button','add','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','dislike','3210XEpylD','bind','1695192OQYtBO','AI_MINI_TOOLBAR_DISLIKE','showDislike','set','locale','showCopy','isOn','like','1001462ZdvjZr','class','40PlQrTR','_setupCopyButton','_setupShowChangesButton','length','fire','execute','ck-ai-mini-toolbar-copy-button__check-mark','showChangesButton','AI_MINI_TOOLBAR_COPY','2137077laNpGT','dislikeButton','likeButton','isLoading','_setupRatingButtons','2284UqjSLY','isEnabled','747571tnSYja','copyButton','customView'];_0x4d6e=function(){return _0xd91422;};return _0x4d6e();}import{ButtonView as _0x528ad8,IconView as _0x2f3b2d,ToolbarView as _0x3ca924}from'ckeditor5/src/ui.js';import{IconCheck as _0x105745,IconCopy as _0x6966e3,IconShowChangesOff as _0x5e2865,IconShowChangesOn as _0x18253e,IconThumbDown as _0x211790,IconThumbUp as _0x4a53ad}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x421d75}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x3ca924{[_0x526aa3(0xeb)];[_0x526aa3(0x117)];[_0x526aa3(0x116)];[_0x526aa3(0x113)];[_0x526aa3(0xf1)];constructor(_0x355b7d,_0x4df77c={},_0x4df302){const _0x1fd882=_0x526aa3;super(_0x355b7d),this[_0x1fd882(0x105)](_0x1fd882(0x118),!0x1),this[_0x1fd882(0xf1)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x4df77c};const _0x445bdf=!(this[_0x1fd882(0xf1)][_0x1fd882(0x107)]||this[_0x1fd882(0xf1)][_0x1fd882(0xf6)]||this[_0x1fd882(0xf1)][_0x1fd882(0xed)]||this[_0x1fd882(0xf1)][_0x1fd882(0x104)]||this[_0x1fd882(0xf1)][_0x1fd882(0xec)]?.[_0x1fd882(0x10f)]);this[_0x1fd882(0x10b)]=_0x445bdf?_0x1fd882(0xf2):_0x1fd882(0xf9),this[_0x1fd882(0xf1)][_0x1fd882(0x107)]&&(this[_0x1fd882(0x10d)](),this[_0x1fd882(0xf7)][_0x1fd882(0xfd)](this[_0x1fd882(0xeb)])),this[_0x1fd882(0xf1)][_0x1fd882(0xf6)]&&(this[_0x1fd882(0x10e)](_0x4df302),this[_0x1fd882(0xf7)][_0x1fd882(0xfd)](this[_0x1fd882(0x113)])),this[_0x1fd882(0x119)](),this[_0x1fd882(0xf1)][_0x1fd882(0xed)]&&this[_0x1fd882(0xf7)][_0x1fd882(0xfd)](this[_0x1fd882(0x117)]),this[_0x1fd882(0xf1)][_0x1fd882(0x104)]&&this[_0x1fd882(0xf7)][_0x1fd882(0xfd)](this[_0x1fd882(0x116)]),this[_0x1fd882(0xf1)][_0x1fd882(0xec)]&&this[_0x1fd882(0xf7)][_0x1fd882(0xf3)](this[_0x1fd882(0xf1)][_0x1fd882(0xec)]);}[_0x526aa3(0x119)](){const _0x53d438=_0x526aa3;this[_0x53d438(0x117)]=new _0x528ad8(this[_0x53d438(0x106)]),this[_0x53d438(0x117)][_0x53d438(0x105)]({'icon':_0x4a53ad,'label':_0x421d75(this[_0x53d438(0x106)],_0x53d438(0xf4)),'tooltip':!0x0}),this[_0x53d438(0x117)][_0x53d438(0x101)](_0x53d438(0x11b))['to'](this,_0x53d438(0x118),_0x27f3a8=>!_0x27f3a8),this[_0x53d438(0x117)]['on'](_0x53d438(0x111),()=>{const _0x4ff68b=_0x53d438;this[_0x4ff68b(0x110)](_0x4ff68b(0x109));}),this[_0x53d438(0x116)]=new _0x528ad8(this[_0x53d438(0x106)]),this[_0x53d438(0x116)][_0x53d438(0x105)]({'icon':_0x211790,'label':_0x421d75(this[_0x53d438(0x106)],_0x53d438(0x103)),'tooltip':!0x0}),this[_0x53d438(0x116)][_0x53d438(0x101)](_0x53d438(0x11b))['to'](this,_0x53d438(0x118),_0x2cab8d=>!_0x2cab8d),this[_0x53d438(0x116)]['on'](_0x53d438(0x111),()=>{const _0x57a501=_0x53d438;this[_0x57a501(0x110)](_0x57a501(0xff));});}[_0x526aa3(0x10d)](){const _0x10c423=_0x526aa3;this[_0x10c423(0xeb)]=new _0x528ad8(this[_0x10c423(0x106)]),this[_0x10c423(0xeb)][_0x10c423(0x105)]({'icon':_0x6966e3,'label':_0x421d75(this[_0x10c423(0x106)],_0x10c423(0x114)),'class':_0x10c423(0xfc),'tooltip':!0x0}),this[_0x10c423(0xeb)][_0x10c423(0x101)](_0x10c423(0x11b))['to'](this,_0x10c423(0x118),_0x3d5aa1=>!_0x3d5aa1);const _0x167532=new _0x2f3b2d();_0x167532[_0x10c423(0x105)]({'content':_0x105745}),_0x167532[_0x10c423(0xee)]({'attributes':{'class':[_0x10c423(0x112)]}}),this[_0x10c423(0xeb)]['on'](_0x10c423(0x111),()=>{const _0x40c9cb=_0x10c423;this[_0x40c9cb(0xeb)][_0x40c9cb(0x10b)]=_0x40c9cb(0xfe),setTimeout(()=>{const _0x367786=_0x40c9cb;this[_0x367786(0xeb)][_0x367786(0x10b)]=_0x367786(0xfc);},0x7d0);}),this[_0x10c423(0xeb)][_0x10c423(0xef)][_0x10c423(0xfd)](_0x167532);}[_0x526aa3(0x10e)](_0x5d3c1c){const _0x324251=_0x526aa3;this[_0x324251(0x113)]=new _0x528ad8(this[_0x324251(0x106)]),this[_0x324251(0x113)][_0x324251(0x105)]({'icon':_0x5e2865,'label':_0x421d75(this[_0x324251(0x106)],_0x324251(0xf5)),'withText':_0x324251(0xf8)==this[_0x324251(0xf1)][_0x324251(0xf6)],'isOn':_0x5d3c1c}),this[_0x324251(0x113)][_0x324251(0x101)](_0x324251(0x11b))['to'](this,_0x324251(0x118),_0x3ca4ed=>!_0x3ca4ed),this[_0x324251(0x113)]['on'](_0x324251(0x111),()=>{const _0x149aa7=_0x324251,_0x139771=!this[_0x149aa7(0x113)][_0x149aa7(0x108)];this[_0x149aa7(0x113)][_0x149aa7(0x105)]({'isOn':_0x139771,'icon':_0x139771?_0x18253e:_0x5e2865}),this[_0x149aa7(0x110)](_0x149aa7(0xfa),_0x139771);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29455a=_0x8e79;(function(_0x13ca36,_0x42e42a){const _0x59c02b=_0x8e79,_0x324088=_0x13ca36();while(!![]){try{const _0x595671=-parseInt(_0x59c02b(0xb6))/0x1+-parseInt(_0x59c02b(0xb8))/0x2+-parseInt(_0x59c02b(0xd7))/0x3+parseInt(_0x59c02b(0xc4))/0x4*(-parseInt(_0x59c02b(0xd6))/0x5)+parseInt(_0x59c02b(0xde))/0x6+-parseInt(_0x59c02b(0xba))/0x7*(-parseInt(_0x59c02b(0xc2))/0x8)+-parseInt(_0x59c02b(0xb3))/0x9*(-parseInt(_0x59c02b(0xd9))/0xa);if(_0x595671===_0x42e42a)break;else _0x324088['push'](_0x324088['shift']());}catch(_0x573e1d){_0x324088['push'](_0x324088['shift']());}}}(_0x5058,0x8fba2));function _0x8e79(_0x3c7dec,_0x1a0371){const _0x505856=_0x5058();return _0x8e79=function(_0x8e7901,_0x185b43){_0x8e7901=_0x8e7901-0xad;let _0x483c96=_0x505856[_0x8e7901];return _0x483c96;},_0x8e79(_0x3c7dec,_0x1a0371);}import{View as _0x3a031f}from'ckeditor5/src/ui.js';function _0x5058(){const _0x24d9b2=['AI_SUGGESTION_EMPTY_PART_WARNING','some','from','setTemplate','isVisible','div','hasNonEmptyParts','queueEmptyPromise','hasChanges','AI_SUGGESTION_NO_PARTS_WARNING','ck-content','369pcDdAL','delegate','_emptyPartsWarningView','982309wcoXqA','get','1490860cRGmei','updateContentParts','7007dIwFVx','state','setContent','updateContent','empty-parts-warning','ck-ai-suggestion__body__content-parts','_showUnchangedParts','toggleHeader','1064wmnSBB','pending','1558188bkgRlF','getPartView','warning','set','_updateContentPartsPromiseQueue','updatePartState','index','ck-ai-suggestion__body','first','ck-reset_all-excluded','find','_children','_areActionsDisabled','hasPendingParts','addEventListener','createCollection','abort','enqueue','15UFOOGt','422517zimLcx','add','682450ldLLqt','markAsDone','partsCount','partDefinition','locale','4168482HrZebC','length'];_0x5058=function(){return _0x24d9b2;};return _0x5058();}import{AISuggestionBodyViewContentPartView as _0x5d4c29}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x126213}from'../../utils/eventnames.js';import{PromiseQueue as _0x3b2f06}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x11dfcd}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x321801}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x3a031f{[_0x29455a(0xcf)];[_0x29455a(0xd0)];[_0x29455a(0xc0)];[_0x29455a(0xc8)];[_0x29455a(0xb5)];constructor(_0x20e65c,{areActionsDisabled:_0x468a9b,showUnchangedParts:_0x39ddaf}){const _0x245e25=_0x29455a;super(_0x20e65c),this[_0x245e25(0xd0)]=_0x468a9b,this[_0x245e25(0xc0)]=_0x39ddaf,this[_0x245e25(0xc7)](_0x245e25(0xd1),!0x1),this[_0x245e25(0xcf)]=this[_0x245e25(0xd3)](),this[_0x245e25(0xc8)]=new _0x3b2f06(),this[_0x245e25(0xb5)]=new _0x11dfcd({'id':_0x245e25(0xbe),'initialContent':_0x321801(_0x20e65c,_0x245e25(0xe0)),'level':_0x245e25(0xc6)}),this[_0x245e25(0xb5)][_0x245e25(0xe4)]=!0x1,this[_0x245e25(0xe3)]({'tag':_0x245e25(0xad),'attributes':{'class':['ck',_0x245e25(0xcd),_0x245e25(0xcb),_0x245e25(0xb2)]},'children':[{'tag':_0x245e25(0xad),'attributes':{'class':['ck',_0x245e25(0xbf)]},'children':this[_0x245e25(0xcf)]},this[_0x245e25(0xb5)]]});}get[_0x29455a(0xdb)](){const _0x40ab4e=_0x29455a;return this[_0x40ab4e(0xcf)][_0x40ab4e(0xdf)];}async[_0x29455a(0xb9)]({parts:_0x430231,renderingStrategy:_0x16c483,abortSignal:_0x54f62f}){const _0x19037c=_0x29455a;for(const _0x541d3f of _0x430231)this[_0x19037c(0xc8)][_0x19037c(0xd5)](async _0x30c2f2=>{const _0x3bea09=_0x19037c;let _0x34837f=this[_0x3bea09(0xcf)][_0x3bea09(0xce)](_0x4283ee=>_0x4283ee[_0x3bea09(0xdc)][_0x3bea09(0xca)]==_0x541d3f[_0x3bea09(0xca)]);_0x34837f||(_0x34837f=new _0x5d4c29(this[_0x3bea09(0xdd)],{'part':_0x541d3f,'areActionsDisabled':this[_0x3bea09(0xd0)]}),_0x34837f[_0x3bea09(0xb4)](..._0x126213)['to'](this),this[_0x3bea09(0xcf)][_0x3bea09(0xd8)](_0x34837f),this[_0x3bea09(0xd1)]=!0x0),0x2===this[_0x3bea09(0xcf)][_0x3bea09(0xdf)]&&this[_0x3bea09(0xcf)][_0x3bea09(0xcc)][_0x3bea09(0xc1)](!0x0),_0x34837f[_0x3bea09(0xc1)](this[_0x3bea09(0xcf)][_0x3bea09(0xdf)]>0x1),await _0x34837f[_0x3bea09(0xbd)]({'part':_0x541d3f,'renderingStrategy':_0x16c483,'showUnchangedParts':this[_0x3bea09(0xc0)],'abortSignal':_0x30c2f2});});return _0x54f62f?.[_0x19037c(0xd2)](_0x19037c(0xd4),()=>{const _0x1950d6=_0x19037c;this[_0x1950d6(0xc8)][_0x1950d6(0xd4)]();}),this[_0x19037c(0xc8)][_0x19037c(0xaf)];}[_0x29455a(0xc9)](_0x29060e,_0x48cbc3){const _0xca0e2b=_0x29455a;this[_0xca0e2b(0xcf)][_0xca0e2b(0xb7)](_0x29060e)[_0xca0e2b(0xbb)]=_0x48cbc3,this[_0xca0e2b(0xd1)]=_0xca0e2b(0xc3)==_0x48cbc3||Array[_0xca0e2b(0xe2)](this[_0xca0e2b(0xcf)])[_0xca0e2b(0xe1)](_0x2b1148=>_0xca0e2b(0xc3)==_0x2b1148[_0xca0e2b(0xbb)]);}[_0x29455a(0xc5)](_0x17ed92){const _0x2d07db=_0x29455a;return this[_0x2d07db(0xcf)][_0x2d07db(0xb7)](_0x17ed92);}[_0x29455a(0xda)](){const _0x3feca4=_0x29455a;if(!this[_0x3feca4(0xc0)]){const _0x22f631=!this[_0x3feca4(0xcf)][_0x3feca4(0xce)](_0x314369=>_0x314369[_0x3feca4(0xdc)][_0x3feca4(0xb0)]),_0x1b04bf=!!this[_0x3feca4(0xcf)][_0x3feca4(0xce)](_0x1768d4=>!_0x1768d4[_0x3feca4(0xdc)][_0x3feca4(0xb0)]);this[_0x3feca4(0xb5)][_0x3feca4(0xe4)]=_0x1b04bf,_0x22f631?this[_0x3feca4(0xb5)][_0x3feca4(0xbc)](_0x321801(this[_0x3feca4(0xdd)],_0x3feca4(0xb1))):this[_0x3feca4(0xb5)][_0x3feca4(0xbc)](_0x321801(this[_0x3feca4(0xdd)],_0x3feca4(0xe0)));}}get[_0x29455a(0xae)](){const _0x407918=_0x29455a;return!!this[_0x407918(0xcf)][_0x407918(0xce)](_0x3583d6=>_0x3583d6[_0x407918(0xdc)][_0x407918(0xb0)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3feba2=_0x2e91;(function(_0x400258,_0xcf5f7c){const _0x5bf6fd=_0x2e91,_0xa7f6ed=_0x400258();while(!![]){try{const _0x444aa0=-parseInt(_0x5bf6fd(0xc0))/0x1*(-parseInt(_0x5bf6fd(0xcc))/0x2)+-parseInt(_0x5bf6fd(0xdb))/0x3*(parseInt(_0x5bf6fd(0xd8))/0x4)+parseInt(_0x5bf6fd(0xce))/0x5*(-parseInt(_0x5bf6fd(0x9f))/0x6)+parseInt(_0x5bf6fd(0xd7))/0x7*(parseInt(_0x5bf6fd(0xb2))/0x8)+parseInt(_0x5bf6fd(0x9c))/0x9*(-parseInt(_0x5bf6fd(0xbe))/0xa)+parseInt(_0x5bf6fd(0xaf))/0xb*(-parseInt(_0x5bf6fd(0xd4))/0xc)+parseInt(_0x5bf6fd(0xb6))/0xd;if(_0x444aa0===_0xcf5f7c)break;else _0xa7f6ed['push'](_0xa7f6ed['shift']());}catch(_0x1d632b){_0xa7f6ed['push'](_0xa7f6ed['shift']());}}}(_0x2a92,0xdd377));import{IconWeb as _0x174610}from'@ckeditor/ckeditor5-icons';function _0x2a92(){const _0x2d8349=['40VZFZiC','set','map','hasNonEmptyParts','sourcesView','extendTemplate','60RUWGCk','fire','isLoaderVisible','26117TsTNxP','4oHSUzT','delegate','AI_CHAT_SOURCES_HEADER','1813773xNPnta','span','addMany','icon','open','content','toggleShowChanges','updateContentParts','12366zEOzAT','ck-ai-suggestion__loader-text','updateContent','36702yBYPPr','headerView','markAsDone','add','bindTemplate','miniToolbarView','ck-ai-web-source__image','hideLoader','updateSources','ck-ai-suggestion__container','areChangesVisible','ck-hidden','bodyView','ck-ai-web-sources','showLoader','bind','1620399ciaEqN','div','ck-ai-web-sources__header','3272sfdFTc','toggleSuggestionDisplayMode','setLoading','url','4452994rpTSce','ck-ai-suggestion__loader','createCollection','isVisible','children','_blank','ck\x20ck-ai-web-source','ck-rounded-corners','4840rfWCVo','setTemplate','546337DFfsmO','img','locale','loaderView','clearLoading','_createLoaderView','small','title','isShowChangesToggleVisible','favicon','isOn','isLoading','4pOOUDd','AI_CHAT_IS_WRITING'];_0x2a92=function(){return _0x2d8349;};return _0x2a92();}import{View as _0x5fa207,ButtonView as _0x142021,IconView as _0x50fd5b}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x41a78c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x3bfdb1}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x31e717}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xa93189}from'../../utils/eventnames.js';import{AISpinnerView as _0x269d36}from'../aispinner.js';function _0x2e91(_0x26b7fc,_0x46719e){const _0x2a92fd=_0x2a92();return _0x2e91=function(_0x2e9153,_0x2d28b9){_0x2e9153=_0x2e9153-0x97;let _0x445a17=_0x2a92fd[_0x2e9153];return _0x445a17;},_0x2e91(_0x26b7fc,_0x46719e);}import{getTranslation as _0x129a06}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x5fa207{[_0x3feba2(0xab)];[_0x3feba2(0xba)];[_0x3feba2(0xa0)];[_0x3feba2(0xa4)];[_0x3feba2(0xc3)];[_0x3feba2(0xd2)];constructor(_0x25af90,{showDiff:_0x191122,areActionsDisabled:_0x49df79,miniToolbarConfig:_0x31a5d4,hideHeader:_0x4ba64f,showLoader:_0x58b76f,showUnchangedParts:_0x504906}){const _0x58fcb9=_0x3feba2;super(_0x25af90),this[_0x58fcb9(0xcf)](_0x58fcb9(0xa9),!0x1),this[_0x58fcb9(0xcf)](_0x58fcb9(0xd6),!!_0x58b76f),this[_0x58fcb9(0xcf)](_0x58fcb9(0xcb),!0x1),this[_0x58fcb9(0xba)]=this[_0x58fcb9(0xb8)](),_0x4ba64f||(this[_0x58fcb9(0xa0)]=new _0x3bfdb1(_0x25af90,{'showDiff':_0x191122}),this[_0x58fcb9(0xa0)]['on'](_0x58fcb9(0x9a),(_0x5e7a15,_0x5d1a8e)=>{const _0x31411e=_0x58fcb9;this[_0x31411e(0xa9)]=_0x5d1a8e[_0x31411e(0xca)],this[_0x31411e(0xd5)](_0x31411e(0xb3),{'showDiff':_0x5d1a8e[_0x31411e(0xca)]});}),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xa0)])),this[_0x58fcb9(0xab)]=new _0x31e717(_0x25af90,{'areActionsDisabled':_0x49df79,'showUnchangedParts':!!_0x504906}),this[_0x58fcb9(0xab)][_0x58fcb9(0xd9)](..._0xa93189)['to'](this),this[_0x58fcb9(0xab)][_0x58fcb9(0xd3)]({'attributes':{'class':[this[_0x58fcb9(0xa3)]['if'](_0x58fcb9(0xd6),_0x58fcb9(0xaa))]}}),this[_0x58fcb9(0xa4)]=new _0x41a78c(_0x25af90,_0x31a5d4,_0x191122),this[_0x58fcb9(0xa4)][_0x58fcb9(0xd9)](..._0xa93189)['to'](this),this[_0x58fcb9(0xa4)]['on'](_0x58fcb9(0x9a),(_0x51f8f9,_0x5cfd84)=>{const _0x34538d=_0x58fcb9;this[_0x34538d(0xa9)]=_0x5cfd84,this[_0x34538d(0xd5)](_0x34538d(0xb3),{'showDiff':_0x5cfd84});}),this[_0x58fcb9(0xa4)][_0x58fcb9(0xae)](_0x58fcb9(0xcb))['to'](this),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xab)]),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xa4)]),this[_0x58fcb9(0xd2)]=new AIWebSourcesView(this[_0x58fcb9(0xc2)]),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xd2)]),_0x58b76f&&(this[_0x58fcb9(0xc3)]=this[_0x58fcb9(0xc5)](),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xc3)])),this[_0x58fcb9(0xbf)]({'tag':_0x58fcb9(0xb0),'attributes':{'class':['ck',_0x58fcb9(0xa8),_0x58fcb9(0xbd)]},'children':this[_0x58fcb9(0xba)]});}async[_0x3feba2(0x9e)](_0x32bf63){const _0x3098b6=_0x3feba2;await this[_0x3098b6(0xab)][_0x3098b6(0x9b)](_0x32bf63);}[_0x3feba2(0xa7)](_0x4f9ee0){const _0x3f2b06=_0x3feba2;this[_0x3f2b06(0xd2)][_0x3f2b06(0xba)][_0x3f2b06(0xdd)](_0x4f9ee0[_0x3f2b06(0xd0)](_0x3acace=>new AIWebSourceView(this[_0x3f2b06(0xc2)],_0x3acace))),this[_0x3f2b06(0xd2)][_0x3f2b06(0xb9)]=!0x0;}[_0x3feba2(0xad)](){const _0x2799c4=_0x3feba2;this[_0x2799c4(0xc3)]&&(this[_0x2799c4(0xd6)]=!0x0);}[_0x3feba2(0xa6)](){const _0x4506d8=_0x3feba2;this[_0x4506d8(0xc3)]&&(this[_0x4506d8(0xd6)]=!0x1);}[_0x3feba2(0xa1)](){const _0x37fa40=_0x3feba2;this[_0x37fa40(0xab)][_0x37fa40(0xa1)](),this[_0x37fa40(0xa0)]&&(this[_0x37fa40(0xa0)][_0x37fa40(0xc8)]=this[_0x37fa40(0xab)][_0x37fa40(0xd1)]);}[_0x3feba2(0xb4)](){const _0x3ba76f=_0x3feba2;this[_0x3ba76f(0xcb)]=!0x0;}[_0x3feba2(0xc4)](){const _0x30cbb5=_0x3feba2;this[_0x30cbb5(0xcb)]=!0x1;}[_0x3feba2(0xc5)](){const _0x5ab312=_0x3feba2,_0x39facb=new _0x5fa207(this[_0x5ab312(0xc2)]),_0x3b85e6=new _0x269d36(_0x5ab312(0xc6));_0x3b85e6[_0x5ab312(0xb9)]=!0x0;const _0x170275=new _0x5fa207(this[_0x5ab312(0xc2)]);return _0x170275[_0x5ab312(0xbf)]({'tag':_0x5ab312(0xdc),'attributes':{'class':['ck',_0x5ab312(0x9d)]},'children':[_0x129a06(this[_0x5ab312(0xc2)],_0x5ab312(0xcd))]}),_0x39facb[_0x5ab312(0xbf)]({'tag':_0x5ab312(0xb0),'attributes':{'class':['ck',_0x5ab312(0xb7),this[_0x5ab312(0xa3)]['if'](_0x5ab312(0xd6),_0x5ab312(0xaa),_0x5f2174=>!_0x5f2174)]},'children':[_0x3b85e6,_0x170275]}),_0x39facb;}}export class AIWebSourcesView extends _0x5fa207{[_0x3feba2(0xba)];constructor(_0x5cf65d){const _0x57dbea=_0x3feba2;super(_0x5cf65d),this[_0x57dbea(0xba)]=this[_0x57dbea(0xb8)](),this[_0x57dbea(0xcf)](_0x57dbea(0xb9),!0x1),this[_0x57dbea(0xbf)]({'tag':_0x57dbea(0xb0),'attributes':{'class':['ck',_0x57dbea(0xac),this[_0x57dbea(0xa3)]['if'](_0x57dbea(0xb9),_0x57dbea(0xaa),_0x14ccb1=>!_0x14ccb1)]},'children':this[_0x57dbea(0xba)]});const _0x10234e=new _0x5fa207(this[_0x57dbea(0xc2)]),_0x299b5b=new _0x50fd5b();_0x299b5b[_0x57dbea(0x99)]=_0x174610,_0x10234e[_0x57dbea(0xbf)]({'tag':_0x57dbea(0xb0),'attributes':{'class':['ck',_0x57dbea(0xb1)]},'children':[_0x299b5b,{'tag':_0x57dbea(0xdc),'children':[{'text':_0x129a06(this[_0x57dbea(0xc2)],_0x57dbea(0xda))}]}]}),this[_0x57dbea(0xba)][_0x57dbea(0xa2)](_0x10234e);}}export class AIWebSourceView extends _0x142021{constructor(_0x42c050,_0x2e045a){const _0x560505=_0x3feba2;super(_0x42c050),this[_0x560505(0xcf)]({'label':_0x2e045a[_0x560505(0xc7)],'tooltip':_0x2e045a[_0x560505(0xc7)],'class':[_0x560505(0xbc)],'withText':!0x0});const _0x5e17c0=this[_0x560505(0xa3)];if(this[_0x560505(0xd3)]({'on':{'click':_0x5e17c0['to'](()=>{const _0x160a0e=_0x560505;window[_0x160a0e(0x98)](_0x2e045a[_0x160a0e(0xb5)],_0x160a0e(0xbb));})}}),_0x2e045a[_0x560505(0xc9)]){const _0x148686=new _0x5fa207(_0x42c050);_0x148686[_0x560505(0xbf)]({'tag':_0x560505(0xc1),'attributes':{'src':_0x2e045a[_0x560505(0xc9)]||_0x174610,'alt':_0x2e045a[_0x560505(0xc7)],'class':[_0x560505(0xa5)]}}),this[_0x560505(0xba)][_0x560505(0xa2)](_0x148686);}else this[_0x560505(0xcf)](_0x560505(0x97),_0x174610);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ca439=_0x1884;function _0x3174(){const _0xb988f5=['mouseLeaveSuggestion','change:state','ck-ai-suggestion__body__content-part__icon-rejected','mouseOverSuggestion','element','execute','streaming','pending','rejected','hasChanges','ck-ai-suggestion__body__content-part__content','AI_SUGGESTION_CONTENT_PART_REJECTED','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','2iKMepf','innerHTML','has','showChangeInText','htmlStreamer','extendTemplate','items','ck-ai-suggestion__body__content-part','ck-ai-suggestion__body__content-part__title__label','add','headerView','546722KIOjoo','ck-ai-suggestion__body__content-part__title','children','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','updateContent','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','createCollection','ck-ai-suggestion__body__content-part__icon-title','ck-ai-suggestion__body__content-part_','AI_SUGGESTION_CONTENT_PART_DELETE','insertSuggestion','content','setTemplate','3076HdXzaw','toggleHeader','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-hidden','addMany','4718328WWzUNe','accepted','23074SUfdVL','1598886ZidkWF','delegate','set','rejectSuggestion','248pKgHrJ','531xmNqqh','_iconStateAccepted','toString','AI_SUGGESTION_CONTENT_PART_TITLE','remove','ck-ai-suggestion__body__content-part__icon-accepted','index','fire','3645DzchLZ','state','span','stream','_toolbarView','contentView','ck-ai-suggestion__body__content-part_active','div','_iconStateRejected','94836dIklsR','48560hzrPhU','bindTemplate','isEnabled','120iYhwwb','partDefinition','bind','isVisible'];_0x3174=function(){return _0xb988f5;};return _0x3174();}(function(_0x420bd4,_0x18c38c){const _0x36d948=_0x1884,_0x3323c7=_0x420bd4();while(!![]){try{const _0x62abc=-parseInt(_0x36d948(0x160))/0x1*(parseInt(_0x36d948(0x141))/0x2)+-parseInt(_0x36d948(0x116))/0x3+parseInt(_0x36d948(0x159))/0x4*(parseInt(_0x36d948(0x123))/0x5)+parseInt(_0x36d948(0x15e))/0x6+-parseInt(_0x36d948(0x12c))/0x7*(-parseInt(_0x36d948(0x11a))/0x8)+parseInt(_0x36d948(0x11b))/0x9*(-parseInt(_0x36d948(0x12d))/0xa)+parseInt(_0x36d948(0x14c))/0xb*(-parseInt(_0x36d948(0x130))/0xc);if(_0x62abc===_0x18c38c)break;else _0x3323c7['push'](_0x3323c7['shift']());}catch(_0x5508af){_0x3323c7['push'](_0x3323c7['shift']());}}}(_0x3174,0x68599));import{View as _0xa1f0bb,IconView as _0x17769c,ToolbarView as _0x1c1832,ButtonView as _0x5d8240}from'ckeditor5/src/ui.js';import{IconAddComment as _0xb103f7,IconDocumentWithLoupe as _0x47e66c,IconDocumentWithCheckmark as _0x302024,IconDocumentWithCross as _0x484f1b,IconRemove as _0x1196c8,IconThreeStars as _0x11682a}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x4e2583}from'../../utils/htmlstreamer.js';import{getTranslation as _0x579b79}from'../../utils/common-translations.js';function _0x1884(_0x3b4a90,_0x5427e1){const _0x3174fe=_0x3174();return _0x1884=function(_0x188428,_0x3095fe){_0x188428=_0x188428-0x116;let _0x41c66e=_0x3174fe[_0x188428];return _0x41c66e;},_0x1884(_0x3b4a90,_0x5427e1);}import{serialize as _0x568d52}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x6307c3}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0xa1f0bb{[_0x5ca439(0x145)];[_0x5ca439(0x14e)];[_0x5ca439(0x14b)];[_0x5ca439(0x128)];constructor(_0x1b2511,{part:_0x1c23a0,areActionsDisabled:_0x541456}){const _0x4f7d48=_0x5ca439;super(_0x1b2511),this[_0x4f7d48(0x118)](_0x4f7d48(0x131),_0x1c23a0),this[_0x4f7d48(0x118)](_0x4f7d48(0x124),_0x4f7d48(0x13b)),this[_0x4f7d48(0x118)](_0x4f7d48(0x133),!0x1),this[_0x4f7d48(0x132)](_0x4f7d48(0x12f))['to'](this,_0x4f7d48(0x124),_0x51243c=>_0x4f7d48(0x13b)==_0x51243c&&!_0x541456),this[_0x4f7d48(0x14e)]=this[_0x4f7d48(0x152)](),this[_0x4f7d48(0x145)]=new _0x4e2583({'textNodeStyle':_0x4f7d48(0x15b),'delay':0x14}),this[_0x4f7d48(0x14b)]=new Dn(_0x1b2511,_0x1c23a0),this[_0x4f7d48(0x14b)][_0x4f7d48(0x132)](_0x4f7d48(0x131))['to'](this),this[_0x4f7d48(0x14b)][_0x4f7d48(0x132)](_0x4f7d48(0x12f))['to'](this),this[_0x4f7d48(0x14b)][_0x4f7d48(0x132)](_0x4f7d48(0x124))['to'](this),this[_0x4f7d48(0x14b)][_0x4f7d48(0x117)](..._0x6307c3)['to'](this);const _0x789d80=this[_0x4f7d48(0x12e)];this[_0x4f7d48(0x128)]=new _0xa1f0bb(),this[_0x4f7d48(0x128)][_0x4f7d48(0x158)]({'tag':_0x4f7d48(0x12a),'attributes':{'class':['ck',_0x4f7d48(0x13e)]}}),this[_0x4f7d48(0x14e)][_0x4f7d48(0x15d)]([this[_0x4f7d48(0x128)]]),this[_0x4f7d48(0x158)]({'tag':_0x4f7d48(0x12a),'attributes':{'class':['ck',_0x4f7d48(0x148),_0x789d80['to'](_0x4f7d48(0x124),_0x4b8407=>_0x4f7d48(0x154)+_0x4b8407),_0x789d80['to'](_0x4f7d48(0x12f),_0x20f6c0=>_0x20f6c0?_0x4f7d48(0x129):void 0x0),_0x789d80['if'](_0x4f7d48(0x133),_0x4f7d48(0x15c),_0x5de727=>!_0x5de727)]},'children':this[_0x4f7d48(0x14e)],'on':{'mouseenter':_0x789d80['to'](()=>{const _0x16c1dd=_0x4f7d48;this[_0x16c1dd(0x12f)]&&this[_0x16c1dd(0x122)](_0x16c1dd(0x137),{'index':_0x1c23a0[_0x16c1dd(0x121)]});}),'mouseleave':_0x789d80['to'](()=>{const _0x590e25=_0x4f7d48;this[_0x590e25(0x12f)]&&this[_0x590e25(0x122)](_0x590e25(0x134),{'index':_0x1c23a0[_0x590e25(0x121)]});})}});}async[_0x5ca439(0x150)]({part:_0x44c80f,renderingStrategy:_0x153c8f,showUnchangedParts:_0x2fcdc4=!0x1,abortSignal:_0x3e4bc1}){const _0x35b824=_0x5ca439;this[_0x35b824(0x131)]=_0x44c80f,this[_0x35b824(0x133)]=this[_0x35b824(0x131)][_0x35b824(0x13d)]||_0x2fcdc4,this[_0x35b824(0x133)]&&(_0x35b824(0x13a)===_0x153c8f?await this[_0x35b824(0x145)][_0x35b824(0x126)]({'document':this[_0x35b824(0x131)][_0x35b824(0x157)],'targetElement':this[_0x35b824(0x128)][_0x35b824(0x138)],'abortSignal':_0x3e4bc1}):this[_0x35b824(0x128)][_0x35b824(0x138)][_0x35b824(0x142)]=_0x568d52(this[_0x35b824(0x131)][_0x35b824(0x157)]));}[_0x5ca439(0x15a)](_0x134536){const _0x2a91ba=_0x5ca439;_0x134536?this[_0x2a91ba(0x14e)][_0x2a91ba(0x143)](this[_0x2a91ba(0x14b)])||this[_0x2a91ba(0x14e)][_0x2a91ba(0x14a)](this[_0x2a91ba(0x14b)],0x0):this[_0x2a91ba(0x14e)][_0x2a91ba(0x143)](this[_0x2a91ba(0x14b)])&&this[_0x2a91ba(0x14e)][_0x2a91ba(0x11f)](this[_0x2a91ba(0x14b)]);}}class Dn extends _0xa1f0bb{[_0x5ca439(0x14e)];[_0x5ca439(0x127)];[_0x5ca439(0x11c)];[_0x5ca439(0x12b)];constructor(_0x2b0e3d,_0x3eccaa){const _0x10c07b=_0x5ca439;super(_0x2b0e3d),this[_0x10c07b(0x118)](_0x10c07b(0x131),_0x3eccaa),this[_0x10c07b(0x118)](_0x10c07b(0x12f),!0x0),this[_0x10c07b(0x118)](_0x10c07b(0x124),_0x10c07b(0x13b));const _0x26e427=new _0x17769c();_0x26e427[_0x10c07b(0x157)]=_0x11682a,_0x26e427[_0x10c07b(0x146)]({'attributes':{'class':[_0x10c07b(0x153)]}});const _0x380f93=new _0x5d8240(_0x2b0e3d);_0x380f93[_0x10c07b(0x118)]({'label':_0x579b79(_0x2b0e3d,_0x10c07b(0x151)),'tooltip':!0x0,'withText':!0x1,'icon':_0x47e66c}),_0x380f93[_0x10c07b(0x132)](_0x10c07b(0x12f))['to'](this),_0x380f93['on'](_0x10c07b(0x139),()=>{const _0x5f0391=_0x10c07b;this[_0x5f0391(0x122)](_0x5f0391(0x144),{'index':_0x3eccaa[_0x5f0391(0x121)]});});const _0x2d4c0e=new _0x5d8240(_0x2b0e3d);_0x2d4c0e[_0x10c07b(0x118)]({'label':_0x579b79(_0x2b0e3d,_0x10c07b(0x140)),'tooltip':!0x0,'withText':!0x1,'icon':_0xb103f7}),_0x2d4c0e[_0x10c07b(0x132)](_0x10c07b(0x12f))['to'](this),_0x2d4c0e['on'](_0x10c07b(0x139),()=>{const _0x2617bf=_0x10c07b;this[_0x2617bf(0x122)](_0x2617bf(0x156),{'index':_0x3eccaa[_0x2617bf(0x121)]});});const _0x106e25=new _0x5d8240(_0x2b0e3d);_0x106e25[_0x10c07b(0x118)]({'label':_0x579b79(_0x2b0e3d,_0x10c07b(0x155)),'tooltip':!0x0,'withText':!0x1,'icon':_0x1196c8}),_0x106e25['on'](_0x10c07b(0x139),()=>{const _0x41b299=_0x10c07b;this[_0x41b299(0x122)](_0x41b299(0x119),{'index':_0x3eccaa[_0x41b299(0x121)]});}),_0x106e25[_0x10c07b(0x132)](_0x10c07b(0x12f))['to'](this),this[_0x10c07b(0x127)]=new _0x1c1832(_0x2b0e3d),this[_0x10c07b(0x127)][_0x10c07b(0x147)][_0x10c07b(0x15d)]([_0x380f93,_0x2d4c0e,_0x106e25]),this[_0x10c07b(0x11c)]=new _0x17769c(),this[_0x10c07b(0x11c)][_0x10c07b(0x157)]=_0x302024,this[_0x10c07b(0x11c)][_0x10c07b(0x146)]({'attributes':{'class':[_0x10c07b(0x120)],'data-cke-tooltip-text':_0x579b79(_0x2b0e3d,_0x10c07b(0x14f)),'data-cke-tooltip-position':'n'}}),this[_0x10c07b(0x12b)]=new _0x17769c(),this[_0x10c07b(0x12b)][_0x10c07b(0x157)]=_0x484f1b,this[_0x10c07b(0x12b)][_0x10c07b(0x146)]({'attributes':{'class':[_0x10c07b(0x136)],'data-cke-tooltip-text':_0x579b79(_0x2b0e3d,_0x10c07b(0x13f)),'data-cke-tooltip-position':'n'}});const _0x52a0f1=new _0xa1f0bb(_0x2b0e3d);_0x52a0f1[_0x10c07b(0x158)]({'tag':_0x10c07b(0x125),'attributes':{'class':['ck',_0x10c07b(0x149)]},'children':[_0x579b79(_0x2b0e3d,_0x10c07b(0x11e),(_0x3eccaa[_0x10c07b(0x121)]+0x1)[_0x10c07b(0x11d)]())]}),this[_0x10c07b(0x14e)]=this[_0x10c07b(0x152)](),this[_0x10c07b(0x14e)][_0x10c07b(0x15d)]([_0x26e427,_0x52a0f1,this[_0x10c07b(0x127)]]),this[_0x10c07b(0x158)]({'tag':_0x10c07b(0x12a),'attributes':{'class':['ck',_0x10c07b(0x14d)]},'children':this[_0x10c07b(0x14e)]}),this['on'](_0x10c07b(0x135),(_0x913832,_0x5f1514,_0xcaf88,_0x26c0c2)=>{const _0x20161e=_0x10c07b;switch(_0x26c0c2){case _0x20161e(0x13b):this[_0x20161e(0x14e)][_0x20161e(0x11f)](this[_0x20161e(0x127)]);break;case _0x20161e(0x15f):this[_0x20161e(0x14e)][_0x20161e(0x11f)](this[_0x20161e(0x11c)]);break;case _0x20161e(0x13c):this[_0x20161e(0x14e)][_0x20161e(0x11f)](this[_0x20161e(0x12b)]);}switch(_0xcaf88){case _0x20161e(0x13b):this[_0x20161e(0x14e)][_0x20161e(0x14a)](this[_0x20161e(0x127)]);break;case _0x20161e(0x15f):this[_0x20161e(0x14e)][_0x20161e(0x14a)](this[_0x20161e(0x11c)]);break;case _0x20161e(0x13c):this[_0x20161e(0x14e)][_0x20161e(0x14a)](this[_0x20161e(0x12b)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31400c=_0xd8df;function _0x3ea9(){const _0x2e3371=['isVisible','5017640sCNGvV','remove','showDiff','add','set','ck-hidden','fire','setTemplate','AI_SUGGESTION_HEADER_TITLE','toggleShowChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','isOn','isShowChangesToggleVisible','content','1695364ywJDkj','execute','render','511511zSLqLB','ck-ai-suggestion__header__show-changes-toggle','showChangesToggleView','icon','showHeader','ck-ai-suggestion__header','14244426WbklTZ','iconView','span','6EybhXN','filter','618OrOXsP','children','div','193827mQSOfo','2616090aIOYsX','bind','1193CdUHGj'];_0x3ea9=function(){return _0x2e3371;};return _0x3ea9();}function _0xd8df(_0x1be584,_0x14834d){const _0x3ea9fa=_0x3ea9();return _0xd8df=function(_0xd8dfbe,_0x28ea9c){_0xd8dfbe=_0xd8dfbe-0x186;let _0x18c41b=_0x3ea9fa[_0xd8dfbe];return _0x18c41b;},_0xd8df(_0x1be584,_0x14834d);}(function(_0x17b39c,_0x15ff8e){const _0x1b79d5=_0xd8df,_0x1b2f6a=_0x17b39c();while(!![]){try{const _0x3896fb=parseInt(_0x1b79d5(0x1a5))/0x1*(-parseInt(_0x1b79d5(0x19f))/0x2)+-parseInt(_0x1b79d5(0x1a2))/0x3+parseInt(_0x1b79d5(0x191))/0x4+-parseInt(_0x1b79d5(0x1a3))/0x5*(parseInt(_0x1b79d5(0x19d))/0x6)+-parseInt(_0x1b79d5(0x194))/0x7+-parseInt(_0x1b79d5(0x1a7))/0x8+parseInt(_0x1b79d5(0x19a))/0x9;if(_0x3896fb===_0x15ff8e)break;else _0x1b2f6a['push'](_0x1b2f6a['shift']());}catch(_0x9f4a7b){_0x1b2f6a['push'](_0x1b2f6a['shift']());}}}(_0x3ea9,0x55675));import{getTranslation as _0x1dd8f1}from'../../utils/common-translations.js';import{ButtonView as _0x49af87,IconView as _0x58e601,View as _0x475e0c}from'ckeditor5/src/ui.js';import{IconDocument as _0x2d361c,IconShowChangesOff as _0x1b56ee,IconShowChangesOn as _0x3dbed9}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x475e0c{[_0x31400c(0x196)];constructor(_0x2c1673,_0x2f841a){const _0x12d1c4=_0x31400c;super(_0x2c1673),this[_0x12d1c4(0x187)](_0x12d1c4(0x18f),!0x0),this[_0x12d1c4(0x196)]=new ShowChangesToggleView(_0x2c1673),this[_0x12d1c4(0x196)][_0x12d1c4(0x187)]({'class':_0x12d1c4(0x195),'label':_0x1dd8f1(_0x2c1673,_0x12d1c4(0x18d)),'withText':!0x0}),this[_0x12d1c4(0x196)][_0x12d1c4(0x18e)]=_0x2f841a[_0x12d1c4(0x1a9)],this[_0x12d1c4(0x196)][_0x12d1c4(0x1a4)](_0x12d1c4(0x1a6))['to'](this,_0x12d1c4(0x18f)),this[_0x12d1c4(0x196)][_0x12d1c4(0x1a4)](_0x12d1c4(0x197))['to'](this[_0x12d1c4(0x196)],_0x12d1c4(0x18e),_0x629ce3=>_0x629ce3?_0x3dbed9:_0x1b56ee),this[_0x12d1c4(0x196)]['on'](_0x12d1c4(0x192),()=>{const _0xfc4ec7=_0x12d1c4;this[_0xfc4ec7(0x196)][_0xfc4ec7(0x18e)]=!this[_0xfc4ec7(0x196)][_0xfc4ec7(0x18e)],this[_0xfc4ec7(0x189)](_0xfc4ec7(0x18c),{'isOn':this[_0xfc4ec7(0x196)][_0xfc4ec7(0x18e)]});});const _0x1a70de=new _0x58e601();_0x1a70de[_0x12d1c4(0x190)]=_0x2d361c,this[_0x12d1c4(0x18a)]({'tag':_0x12d1c4(0x1a1),'attributes':{'class':['ck',_0x12d1c4(0x199),!0x1===_0x2f841a[_0x12d1c4(0x198)]?_0x12d1c4(0x188):null][_0x12d1c4(0x19e)](Boolean)},'children':[_0x1a70de,{'tag':_0x12d1c4(0x19c),'children':[_0x1dd8f1(_0x2c1673,_0x12d1c4(0x18b))]},this[_0x12d1c4(0x196)]]});}}export class ShowChangesToggleView extends _0x49af87{[_0x31400c(0x193)](){const _0x148c83=_0x31400c;super[_0x148c83(0x193)](),this[_0x148c83(0x1a0)][_0x148c83(0x1a8)](this[_0x148c83(0x19b)]),this[_0x148c83(0x1a0)][_0x148c83(0x186)](this[_0x148c83(0x19b)]);}}
|