@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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.d.ts +10 -2
- 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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/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 +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/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/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/aireviewmodefinishreviewbuttonview.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/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/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1522(_0x24097f,_0x2e30aa){const _0x3125d4=_0x3125();return _0x1522=function(_0x152256,_0x1234a4){_0x152256=_0x152256-0xdb;let _0x160e25=_0x3125d4[_0x152256];return _0x160e25;},_0x1522(_0x24097f,_0x2e30aa);}const _0x449023=_0x1522;(function(_0x634fcf,_0x4ae4a7){const _0x499fd9=_0x1522,_0x2eae2f=_0x634fcf();while(!![]){try{const _0x25d864=parseInt(_0x499fd9(0x118))/0x1*(parseInt(_0x499fd9(0xfa))/0x2)+-parseInt(_0x499fd9(0xe5))/0x3*(parseInt(_0x499fd9(0x106))/0x4)+parseInt(_0x499fd9(0xf2))/0x5*(-parseInt(_0x499fd9(0xe7))/0x6)+-parseInt(_0x499fd9(0x103))/0x7+parseInt(_0x499fd9(0xf6))/0x8*(-parseInt(_0x499fd9(0xdc))/0x9)+parseInt(_0x499fd9(0xe0))/0xa*(-parseInt(_0x499fd9(0xe2))/0xb)+parseInt(_0x499fd9(0x10a))/0xc;if(_0x25d864===_0x4ae4a7)break;else _0x2eae2f['push'](_0x2eae2f['shift']());}catch(_0x279df3){_0x2eae2f['push'](_0x2eae2f['shift']());}}}(_0x3125,0x942d2));import{CKEditorError as _0x4a34cd,EmitterMixin as _0x504a86,logWarning as _0x4001e4,uid as _0x886a5c}from'ckeditor5/src/utils.js';function _0x3125(){const _0x4e0b1d=['replies','length','editor','8431948vvwPKD','forEach','isStopped','3506896gUvXPb','ai-interaction-invalid-event-type','interactionFinished','delegate','42016560SENeHv','web-search','getDocumentContext','event','reasoningStarted','fire','replyChangeGroupStateUpdated','ai-chat-interaction-error','sources','modification-delta','conversationTitle','interactionCreated','actionCallId','replyCreated','74073kZLLfN','replyContentUpdated','interactionDestroyed','isDestroyed','interactionStopped','abort','messageId','setConversationTitle','webSearchFinished','currentRequest','reasoningFinished','callId','source','531QfEHux','start','action-metadata','createReply','13610ppLsfD','done','1529iHdNoW','error','currentReply','3zGgBBY','stop','6smEqKt','abortController','stopListening','find','push','connector','getReply','destroy','_finalizeInteraction','appendContent','_isWebSearching','1874955zaXtMl','interactionStarted','getStream','_isReasoning','114112rOCLPd','textDelta','sendRequest','reasoning','16LDbZzP','splice','content','message-metadata','webSearchStarted','data'];_0x3125=function(){return _0x4e0b1d;};return _0x3125();}import{AIReply as _0x1d076a,isIgnoredReplyType as _0xad3220,isValidReplyType as _0x2b0dd5,isReplyTitleType as _0x425412,isSourceType as _0x463fda}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x449023(0x115),_0x449023(0xf3),_0x449023(0x11c),_0x449023(0x108),_0x449023(0x11a),_0x449023(0x117),_0x449023(0x119),_0x449023(0x110),_0x449023(0x11f),_0x449023(0xfe),_0x449023(0x120),_0x449023(0x10e),_0x449023(0x122),_0x449023(0xe3)];export class AIInteraction extends _0x504a86(){['id'];[_0x449023(0x100)]=[];[_0x449023(0xe4)];[_0x449023(0x11e)];[_0x449023(0x116)];[_0x449023(0x121)];[_0x449023(0xec)];[_0x449023(0x105)]=!0x1;[_0x449023(0x11b)]=!0x1;[_0x449023(0x102)];[_0x449023(0xf5)]=!0x1;[_0x449023(0xf1)]=!0x1;constructor({connector:_0x3bb64d,editor:_0x146760}){const _0x48f04f=_0x449023;super(),this['id']=_0x886a5c(),this[_0x48f04f(0xec)]=_0x3bb64d,this[_0x48f04f(0x105)]=!0x0,this[_0x48f04f(0x102)]=_0x146760;}async[_0x449023(0xdd)](){const _0x28517c=_0x449023;let _0x40ff51;const _0x482e07=[];this[_0x28517c(0x105)]=!0x1;try{this[_0x28517c(0x121)]=await this[_0x28517c(0xf8)](),this[_0x28517c(0x10f)](_0x28517c(0xf3),this);const _0x4babae=await this[_0x28517c(0x121)][_0x28517c(0xf4)]();for await(const _0x18e75f of _0x4babae){if(this[_0x28517c(0x105)])return;if(_0x28517c(0xe3)===_0x18e75f[_0x28517c(0x10d)])return void this[_0x28517c(0x10f)](_0x28517c(0xe3),{'error':new _0x4a34cd(_0x28517c(0x111),this)});if(_0x28517c(0xfd)!==_0x18e75f[_0x28517c(0x10d)]){if(_0x28517c(0xde)!==_0x18e75f[_0x28517c(0x10d)]){if(_0x425412(_0x18e75f[_0x28517c(0x10d)])&&this[_0x28517c(0x11f)](_0x18e75f[_0x28517c(0xff)][_0x28517c(0x114)],!0x0),_0x463fda(_0x18e75f[_0x28517c(0x10d)]))_0x482e07[_0x28517c(0xeb)](_0x18e75f[_0x28517c(0xff)][_0x28517c(0xdb)]);else{if(_0x2b0dd5(_0x18e75f[_0x28517c(0x10d)])){if(_0x18e75f[_0x28517c(0x10d)]!==_0x40ff51){if(_0x40ff51=_0x18e75f[_0x28517c(0x10d)],_0x28517c(0x10b)===_0x18e75f[_0x28517c(0x10d)]){this[_0x28517c(0xf1)]||(this[_0x28517c(0xf1)]=!0x0,this[_0x28517c(0x10f)](_0x28517c(0xfe),this));continue;}if(_0x28517c(0xf9)===_0x18e75f[_0x28517c(0x10d)]){this[_0x28517c(0xf5)]||(this[_0x28517c(0xf5)]=!0x0,this[_0x28517c(0x10f)](_0x28517c(0x10e),this));continue;}this[_0x28517c(0xf5)]&&(this[_0x28517c(0xf5)]=!0x1,this[_0x28517c(0x10f)](_0x28517c(0x122),this)),this[_0x28517c(0xf1)]&&(this[_0x28517c(0xf1)]=!0x1,this[_0x28517c(0x10f)](_0x28517c(0x120),this)),this[_0x28517c(0xe4)]&&this[_0x28517c(0xe4)][_0x28517c(0xe1)](),this[_0x28517c(0xe4)]=this[_0x28517c(0xdf)]({'type':_0x18e75f[_0x28517c(0x10d)],'interactionId':this['id'],'id':_0x18e75f[_0x28517c(0xff)]?.['id']}),_0x482e07[_0x28517c(0x101)]>0x0&&_0x28517c(0x113)===_0x18e75f[_0x28517c(0x10d)]&&(this[_0x28517c(0xe4)][_0x28517c(0x112)]=_0x482e07[_0x28517c(0xfb)](0x0));}_0x18e75f[_0x28517c(0xff)][_0x28517c(0xf7)]&&this[_0x28517c(0xe4)][_0x28517c(0xf0)](_0x18e75f[_0x28517c(0xff)][_0x28517c(0xf7)]);}else _0xad3220(_0x18e75f[_0x28517c(0x10d)])||_0x4001e4(_0x28517c(0x107),{'chunk':_0x18e75f});}}else this[_0x28517c(0x116)]=_0x18e75f[_0x28517c(0xff)][_0x28517c(0x123)];}else this[_0x28517c(0x11e)]=_0x18e75f[_0x28517c(0xff)][_0x28517c(0x11e)];}}finally{this[_0x28517c(0x105)]||(_0x482e07[_0x28517c(0x101)]>0x0&&(this[_0x28517c(0xe4)][_0x28517c(0x112)]=_0x482e07[_0x28517c(0xfb)](0x0)),this[_0x28517c(0xef)](),this[_0x28517c(0x10f)](_0x28517c(0x108),this));}}[_0x449023(0xe6)](){const _0x371cf2=_0x449023;this[_0x371cf2(0x105)]||(this[_0x371cf2(0xef)](),this[_0x371cf2(0x10f)](_0x371cf2(0x11c),this));}[_0x449023(0xed)](_0x105605){const _0xc946a4=_0x449023;return this[_0xc946a4(0x100)][_0xc946a4(0xea)](_0x2c77a9=>_0x2c77a9['id']===_0x105605);}[_0x449023(0xee)](){const _0x2b7f87=_0x449023;this[_0x2b7f87(0x11b)]||(this[_0x2b7f87(0xe6)](),this[_0x2b7f87(0x100)][_0x2b7f87(0x104)](_0x72c5eb=>_0x72c5eb[_0x2b7f87(0xee)]()),this[_0x2b7f87(0x100)]=[],this[_0x2b7f87(0x11b)]=!0x0,this[_0x2b7f87(0x10f)](_0x2b7f87(0x11a),this),this[_0x2b7f87(0xe9)]());}[_0x449023(0xdf)](_0x392099){const _0x5239e0=_0x449023,_0xfa989b=new _0x1d076a({'editor':this[_0x5239e0(0x102)],'documentContextContent':this[_0x5239e0(0x10c)]()?.[_0x5239e0(0xfc)],..._0x392099});return this[_0x5239e0(0x100)][_0x5239e0(0xeb)](_0xfa989b),_0xfa989b[_0x5239e0(0x109)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5239e0(0x10f)](_0x5239e0(0x117),_0xfa989b),_0xfa989b;}[_0x449023(0x11f)](_0x1766b3,_0x2382e0=!0x1){const _0x318f7b=_0x449023;this[_0x318f7b(0x10f)](_0x318f7b(0x11f),_0x1766b3,_0x2382e0);}[_0x449023(0xef)](){const _0x4a4c57=_0x449023;this[_0x4a4c57(0x105)]=!0x0,this[_0x4a4c57(0x121)]&&this[_0x4a4c57(0x121)][_0x4a4c57(0xe8)][_0x4a4c57(0x11d)](),this[_0x4a4c57(0xe4)]&&this[_0x4a4c57(0xe4)][_0x4a4c57(0xe1)](),this[_0x4a4c57(0x121)]=this[_0x4a4c57(0xe4)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5772e9=_0x4c47;(function(_0x5a2f26,_0x4afda1){const _0x51c29f=_0x4c47,_0x4435b1=_0x5a2f26();while(!![]){try{const _0xedcc33=parseInt(_0x51c29f(0xb9))/0x1+-parseInt(_0x51c29f(0xbc))/0x2+parseInt(_0x51c29f(0xb5))/0x3+-parseInt(_0x51c29f(0xb0))/0x4*(-parseInt(_0x51c29f(0xc3))/0x5)+-parseInt(_0x51c29f(0xcb))/0x6+parseInt(_0x51c29f(0xc8))/0x7+-parseInt(_0x51c29f(0xbe))/0x8;if(_0xedcc33===_0x4afda1)break;else _0x4435b1['push'](_0x4435b1['shift']());}catch(_0x497e15){_0x4435b1['push'](_0x4435b1['shift']());}}}(_0x25ba,0xce8b2));import{CKEditorError as _0x338de8,EmitterMixin as _0xc91a3b,logWarning as _0x241b35}from'ckeditor5/src/utils.js';import{getTranslation as _0x2c6979}from'../utils/common-translations.js';function _0x4c47(_0x346bd9,_0x736d57){const _0x25bac9=_0x25ba();return _0x4c47=function(_0x4c470d,_0x2ea19c){_0x4c470d=_0x4c470d-0xab;let _0xe9915a=_0x25bac9[_0x4c470d];return _0xe9915a;},_0x4c47(_0x346bd9,_0x736d57);}export class AIModels extends _0xc91a3b(){[_0x5772e9(0xd2)];[_0x5772e9(0xbf)];[_0x5772e9(0xc7)];[_0x5772e9(0xaf)]=[];constructor({connector:_0xcda610,availableModels:_0x1bc152,defaultModelId:_0x2c370f}){const _0x2b5021=_0x5772e9;super(),this[_0x2b5021(0xd2)]=_0xcda610,this[_0x2b5021(0xbf)]=_0x1bc152,this[_0x2b5021(0xc7)]=_0x2c370f;}async[_0x5772e9(0xc9)](){const _0x3cf1b8=_0x5772e9;if(!this[_0x3cf1b8(0xaf)][_0x3cf1b8(0xb1)])try{const _0x4cab1d=this[_0x3cf1b8(0xd2)][_0x3cf1b8(0xd0)](),_0x393459=await _0x4cab1d[_0x3cf1b8(0xc5)]();this[_0x3cf1b8(0xaf)]=_0x393459[_0x3cf1b8(0xc2)];}catch(_0x7c54b8){throw new _0x338de8(_0x3cf1b8(0xb7),null,{'error':_0x7c54b8});}return[...this[_0x3cf1b8(0xaf)]];}async[_0x5772e9(0xd3)](){const _0x597f02=_0x5772e9,_0x28df6b=await this[_0x597f02(0xc9)]();return this[_0x597f02(0xad)](_0x28df6b,this[_0x597f02(0xbf)]);}async[_0x5772e9(0xbb)](_0x46f564){const _0xfae148=_0x5772e9,_0x2419f8=await this[_0xfae148(0xc9)]();if(!_0x2419f8[_0xfae148(0xb1)])return null;if(_0x46f564){const _0x1e1969=this[_0xfae148(0xcd)](_0x2419f8,_0x46f564);if(_0x1e1969)return _0x1e1969;_0x241b35(_0xfae148(0xc6),{'modelId':_0x46f564,'fallBackModelId':this[_0xfae148(0xc7)]});}return this[_0xfae148(0xd4)]();}async[_0x5772e9(0xd4)](){const _0x4d026e=_0x5772e9,_0x3d5243=await this[_0x4d026e(0xd3)]();if(!_0x3d5243[_0x4d026e(0xb1)])return null;if(this[_0x4d026e(0xc7)]){const _0x475fbc=this[_0x4d026e(0xcd)](_0x3d5243,this[_0x4d026e(0xc7)]);if(_0x475fbc)return _0x475fbc;_0x241b35(_0x4d026e(0xcc),{'defaultModelId':this[_0x4d026e(0xc7)],'fallBackModelId':_0x3d5243[0x0]['id']});}return _0x3d5243[0x0];}async[_0x5772e9(0xc0)](_0x4e1d95){const _0x36ad34=_0x5772e9;return(await this[_0x36ad34(0xd3)]())[_0x36ad34(0xbd)](_0x1d7270=>_0x1d7270[_0x36ad34(0xd5)]===_0x4e1d95[_0x36ad34(0xd5)]&&_0x1d7270[_0x36ad34(0xcf)]===_0x4e1d95[_0x36ad34(0xcf)]);}[_0x5772e9(0xad)](_0x52c91a,_0x35bd02){const _0x36606d=_0x5772e9;let _0x278693;if(_0x35bd02){_0x278693=[];const _0x3ee77c=_0x36606d(0xab)==typeof _0x35bd02?[_0x35bd02[_0x36606d(0xba)]()]:_0x35bd02[_0x36606d(0xb3)](_0x4e9b21=>_0x4e9b21[_0x36606d(0xba)]());for(const _0x4ecafe of _0x3ee77c)for(const _0x3db03a of _0x52c91a)(_0x3db03a['id'][_0x36606d(0xba)]()===_0x4ecafe||_0x3db03a[_0x36606d(0xd5)][_0x36606d(0xba)]()===_0x4ecafe||Ne(_0x3db03a)&&_0x36606d(0xb2)===_0x4ecafe||_0x3db03a[_0x36606d(0xcf)][_0x36606d(0xba)]()===_0x4ecafe||_0x3db03a['id'][_0x36606d(0xba)]()[_0x36606d(0xac)](_0x4ecafe))&&_0x278693[_0x36606d(0xb6)](_0x3db03a);}else _0x278693=_0x52c91a;return _0x278693;}[_0x5772e9(0xcd)](_0x4ea505,_0x4cc4b5){const _0x2a5afa=_0x5772e9;return _0x4ea505[_0x2a5afa(0xca)](_0x40465f=>Ne(_0x40465f)&&_0x2a5afa(0xb2)===_0x4cc4b5?_0x40465f:_0x40465f['id']===_0x4cc4b5)||null;}static[_0x5772e9(0xce)](_0x4ac204,_0x51cbc3){const _0x3c2c63=_0x5772e9;return _0x51cbc3[_0x3c2c63(0xb3)](_0x3e08d2=>{const _0x4fc32a=_0x3c2c63;if(Ne(_0x3e08d2))_0x3e08d2[_0x4fc32a(0xd5)]=_0x2c6979(_0x4ac204,_0x4fc32a(0xc1)),_0x3e08d2[_0x4fc32a(0xc4)]=_0x2c6979(_0x4ac204,_0x4fc32a(0xb8));else _0x2c6979(_0x4ac204,_0x4fc32a(0xae)+_0x3e08d2['id'][_0x4fc32a(0xb4)]())[_0x4fc32a(0xac)](_0x4fc32a(0xae))||(_0x3e08d2[_0x4fc32a(0xc4)]=_0x2c6979(_0x4ac204,_0x4fc32a(0xae)+_0x3e08d2['id'][_0x4fc32a(0xb4)]()));return _0x3e08d2;});}}function Ne(_0x1307c1){const _0x408466=_0x5772e9;return _0x1307c1['id'][_0x408466(0xac)](_0x408466(0xd1));}function _0x25ba(){const _0x5e248e=['some','7121600okxubS','_availableModels','isAvailable','AI_MODEL_NAME_AUTO','items','13235pYDFWB','description','list','ai-chat-model-id-unrecognized','_defaultModelId','11571063efdPjm','getAll','find','9074424iLnQSI','ai-chat-default-model-id-unrecognized','_getModelById','getLocalized','provider','getModels','agent','_connector','getAvailableModels','getDefault','name','string','startsWith','_filterModels','AI_MODEL_DESCRIPTION_','_modelList','324CzCYIC','length','auto','map','toUpperCase','3417417nVKSIG','push','ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_AUTO','1109659MJJWHk','toLocaleLowerCase','getModel','1735216wysQVG'];_0x25ba=function(){return _0x5e248e;};return _0x25ba();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39cbc6=_0x2431;(function(_0x26132f,_0x49f2d5){const _0x265e98=_0x2431,_0x353059=_0x26132f();while(!![]){try{const _0xf4e39c=-parseInt(_0x265e98(0x13e))/0x1+-parseInt(_0x265e98(0x11c))/0x2*(-parseInt(_0x265e98(0x100))/0x3)+-parseInt(_0x265e98(0xfa))/0x4*(parseInt(_0x265e98(0xe8))/0x5)+-parseInt(_0x265e98(0x13d))/0x6*(parseInt(_0x265e98(0x107))/0x7)+-parseInt(_0x265e98(0x136))/0x8+-parseInt(_0x265e98(0x123))/0x9+-parseInt(_0x265e98(0x104))/0xa*(-parseInt(_0x265e98(0x11e))/0xb);if(_0xf4e39c===_0x49f2d5)break;else _0x353059['push'](_0x353059['shift']());}catch(_0x37a3b8){_0x353059['push'](_0x353059['shift']());}}}(_0x23d6,0xec679));import{CKEditorError as _0x3af711,ObservableMixin as _0x258fd4,uid as _0x43b7c6}from'ckeditor5/src/utils.js';function _0x23d6(){const _0x244e4f=['cloneNode','_setCachedContentParts','AI_SUGGESTION_CONTENT_PART_REMOVED','convertMarkdownToHTML','locale','removedNodeIds','data-unstable','length','onContentChange','reasoning','16dhhqWk','parsedContent','isDone','change:content','updateChangeGroups','nextSibling','1063569ciyIJf','withDiff','changeGroups','source','33130rMHBZo','modifiedNodeIds','splice','35TwjIBx','fire','context','parseAndNormalizeHTML','replyChangeGroupStateUpdated','changes','setChangeGroupState','getContentParts','conversation-title','withoutDiff','merge','stopListening','find','unshift','span','parsedMergedContent','done','indexOf','color:\x20#808080;\x20font-style:\x20italic','type','web-search','2RFzerS','ai-reply-get-content-parts-group-not-found','20757gSNhPf','push','_getCachedContentParts','sources','content','16776594iGpyWs','editor','modification-delta','index','newNodeIds','filter','cachedSuggestionContentParts','forEach','removed','aiResponseApplier','text-delta','_getDifferentChangeGroups','documentContextContent','set','previousSibling','data-id','values','replyContentUpdated','appendContent','8166608mDZofD','pending','aiResponseParser','state','every','map','node','1141116uiOrwm','398443GsgFMl','1754470xgiwnd','includes','ai-get-editor-from-context-no-editor','areActionsDisabled','interactionId','destroy','new','modified'];_0x23d6=function(){return _0x244e4f;};return _0x23d6();}import{Element as _0x7fe83,findAll as _0x57a572,getAttribute as _0x4e627b,getParents as _0x19e3f4,Document as _0x374bbd,parse as _0x5bb99c,Text as _0x1e4bed}from'../utils/htmlparser.js';import{AIResponseParser as _0x30814e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x214a13}from'../pipeline/airesponseapplier.js';function _0x2431(_0x2e3675,_0x3466c2){const _0x23d632=_0x23d6();return _0x2431=function(_0x2431ca,_0x3bb128){_0x2431ca=_0x2431ca-0xe8;let _0xa51258=_0x23d632[_0x2431ca];return _0xa51258;},_0x2431(_0x2e3675,_0x3466c2);}import{getSuggestionPartsFromReply as _0x165665}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2e6abb}from'../utils/common-translations.js';import{cloneDeep as _0x546a34}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cbc6(0x125),_0x39cbc6(0x12d),_0x39cbc6(0x11b),_0x39cbc6(0xf9)];export const AI_REPLY_TYPES_IGNORED=[_0x39cbc6(0x10f)];export const AI_REPLY_TITLE_TYPE=_0x39cbc6(0x10f);export class AIReply extends _0x258fd4(){['id'];[_0x39cbc6(0xec)];[_0x39cbc6(0x11a)];[_0x39cbc6(0x121)]=[];[_0x39cbc6(0xfb)]=new _0x374bbd([]);[_0x39cbc6(0x116)]=new _0x374bbd([]);[_0x39cbc6(0x102)]=[];[_0x39cbc6(0xeb)]=!0x1;[_0x39cbc6(0x12f)];[_0x39cbc6(0x138)];[_0x39cbc6(0x12c)];[_0x39cbc6(0x124)];[_0x39cbc6(0x129)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x494d91,content:_0x5ecd55='',isDone:_0x2dd1c9=!0x1,interactionId:_0x7e160f,areActionsDisabled:_0x1b8bb4,documentContextContent:_0x232da1,editor:_0x54ccbc,id:_0x2412bb}){const _0x47a782=_0x39cbc6;super(),this['id']=_0x2412bb||_0x43b7c6(),this[_0x47a782(0xec)]=_0x7e160f,this[_0x47a782(0x11a)]=_0x494d91,this[_0x47a782(0xeb)]=!!_0x1b8bb4,this[_0x47a782(0x124)]=_0x54ccbc,this[_0x47a782(0x138)]=new _0x30814e(),this[_0x47a782(0x12c)]=new _0x214a13(),this[_0x47a782(0x12f)]=_0x5bb99c(_0x232da1||''),this[_0x47a782(0x130)](_0x47a782(0xfc),_0x2dd1c9),this['on'](_0x47a782(0xfd),()=>{const _0x2cc979=_0x47a782;this[_0x2cc979(0xf8)]();}),this[_0x47a782(0x130)](_0x47a782(0x122),_0x5ecd55);}[_0x39cbc6(0x135)](_0x4cf1ff){const _0x30c89d=_0x39cbc6;this[_0x30c89d(0x130)](_0x30c89d(0x122),this[_0x30c89d(0x122)]+_0x4cf1ff);}[_0x39cbc6(0x117)](){const _0x5ca2d9=_0x39cbc6;this[_0x5ca2d9(0xfc)]||(this[_0x5ca2d9(0x130)](_0x5ca2d9(0xfc),!0x0),this[_0x5ca2d9(0xf8)]());}[_0x39cbc6(0xed)](){const _0x44e06a=_0x39cbc6;this[_0x44e06a(0x112)]();}[_0x39cbc6(0x10d)](_0x19ecfe,_0x53abc5){const _0x45a6d4=_0x39cbc6;this[_0x45a6d4(0x102)][_0x19ecfe][_0x45a6d4(0x139)]=_0x53abc5,this[_0x45a6d4(0x108)](_0x45a6d4(0x10b),{'reply':this,'index':_0x19ecfe,'state':_0x53abc5});}[_0x39cbc6(0x10e)]({showDiff:_0x3cd617,groupIndex:_0x310e42}){const _0x59ca50=_0x39cbc6;if(!this[_0x59ca50(0x124)])throw new _0x3af711(_0x59ca50(0xea),null,{'aiReply':this});const _0x3f8249=this[_0x59ca50(0x120)](_0x3cd617,_0x310e42);if(_0x3f8249)return _0x3f8249;let _0x2bb72e=[];if(void 0x0===_0x310e42)_0x2bb72e=this[_0x59ca50(0x102)];else{const _0x6c8449=this[_0x59ca50(0x102)][_0x59ca50(0x113)](({index:_0x9a7df0})=>_0x9a7df0===_0x310e42);if(!_0x6c8449)throw new _0x3af711(_0x59ca50(0x11d),null,{'aiReply':this,'groupIndex':_0x310e42});_0x2bb72e=[_0x6c8449];}const _0xec7d22=_0x165665({'editor':this[_0x59ca50(0x124)],'showDiff':_0x3cd617,'changeGroups':_0x2bb72e,'documentContextContent':this[_0x59ca50(0x12f)]});return this[_0x59ca50(0xf1)](_0x3cd617,_0xec7d22),_0xec7d22;}[_0x39cbc6(0x120)](_0x18c8b6,_0x1c67a2){const _0x496fd7=_0x39cbc6,_0x95e288=_0x18c8b6?_0x496fd7(0x101):_0x496fd7(0x110);if(!this[_0x496fd7(0x129)][_0x95e288][_0x496fd7(0xf7)])return null;const _0x130dc7=this[_0x496fd7(0x129)][_0x95e288];if(void 0x0===_0x1c67a2)return _0x546a34(_0x130dc7);{const _0x41408f=_0x130dc7[_0x496fd7(0x113)](({index:_0x3ec3fd})=>_0x3ec3fd===_0x1c67a2);if(_0x41408f)return[_0x546a34(_0x41408f)];}return null;}[_0x39cbc6(0xf1)](_0x2e0151,_0x3e870){const _0x2fb80f=_0x39cbc6,_0x25f110=_0x2e0151?_0x2fb80f(0x101):_0x2fb80f(0x110);_0x3e870[_0x2fb80f(0x12a)](_0xf5f717=>{const _0x1965d2=_0x2fb80f,_0x263882=this[_0x1965d2(0x129)][_0x25f110],_0x554e91=_0x263882[_0x1965d2(0x113)](({index:_0x25286d})=>_0x25286d===_0xf5f717[_0x1965d2(0x126)]);if(_0x554e91){const _0x41c4d5=_0x263882[_0x1965d2(0x118)](_0x554e91);_0x263882[_0x1965d2(0x106)](_0x41c4d5,0x1,_0xf5f717);}else _0x263882[_0x1965d2(0x11f)](_0xf5f717);});}[_0x39cbc6(0xf8)](){const _0x526b8e=_0x39cbc6;if(_0x526b8e(0x125)===this[_0x526b8e(0x11a)]){this[_0x526b8e(0xfb)]=this[_0x526b8e(0x138)][_0x526b8e(0x10a)](this[_0x526b8e(0x122)]);const _0x1e1e9e=this[_0x526b8e(0x102)];this[_0x526b8e(0xfe)]();const _0x363c07=this[_0x526b8e(0x12e)](_0x1e1e9e,this[_0x526b8e(0x102)]);(_0x363c07[_0x526b8e(0xf7)]||this[_0x526b8e(0xfc)])&&(this[_0x526b8e(0x108)](_0x526b8e(0x134),this,_0x363c07),this[_0x526b8e(0x129)][_0x526b8e(0x101)][_0x526b8e(0xf7)]=this[_0x526b8e(0x129)][_0x526b8e(0x110)][_0x526b8e(0xf7)]=0x0);}else this[_0x526b8e(0xfb)]=this[_0x526b8e(0x138)][_0x526b8e(0xf3)](this[_0x526b8e(0x122)]),this[_0x526b8e(0x108)](_0x526b8e(0x134),this);}[_0x39cbc6(0x12e)](_0x5421b3,_0x1ea341){const _0x2b5240=_0x39cbc6,_0xdc9c75=[];for(const _0x595bf4 of _0x1ea341){const _0x85a6c4=_0x5421b3[_0x595bf4[_0x2b5240(0x126)]];_0x85a6c4?_0x85a6c4[_0x2b5240(0x10c)][_0x2b5240(0xf7)]!==_0x595bf4[_0x2b5240(0x10c)][_0x2b5240(0xf7)]?_0xdc9c75[_0x2b5240(0x11f)](_0x595bf4):_0x85a6c4[_0x2b5240(0x10c)][_0x2b5240(0x12a)]((_0x7f64bb,_0x366805)=>{const _0x48763b=_0x2b5240,_0x4c8f1c=_0x595bf4[_0x48763b(0x10c)][_0x366805];_0x7f64bb['id']!==_0x4c8f1c['id']&&_0xdc9c75[_0x48763b(0x11f)](_0x595bf4);}):_0xdc9c75[_0x2b5240(0x11f)](_0x595bf4);}return _0xdc9c75;}[_0x39cbc6(0xfe)](){const _0x24cf27=_0x39cbc6,_0x2d08e1=new _0x7fe83('p',{},[new _0x7fe83(_0x24cf27(0x115),{'style':_0x24cf27(0x119)},[new _0x1e4bed(_0x2e6abb(this[_0x24cf27(0x124)][_0x24cf27(0xf4)],_0x24cf27(0xf2)))])]),_0x517fcd=this[_0x24cf27(0x12c)][_0x24cf27(0x111)](this[_0x24cf27(0xfb)],this[_0x24cf27(0x12f)][_0x24cf27(0xf0)](!0x0),{'markUnstableElements':!this[_0x24cf27(0xfc)],'replaceRemovedWith':_0x2d08e1,'cutAfterLastChange':!this[_0x24cf27(0xfc)]});if(!_0x517fcd[_0x24cf27(0x105)][_0x24cf27(0xf7)]&&!this[_0x24cf27(0xfc)])return;this[_0x24cf27(0x116)]=_0x517fcd[_0x24cf27(0xfb)];let _0x116ed9=[];if(_0x57a572(_0x4a6c3f=>{const _0x1b2e9e=_0x24cf27,_0x154f17=_0x4e627b(_0x4a6c3f,_0x1b2e9e(0x132));if(!_0x154f17||!_0x4a7b5c(_0x154f17))return!0x1;const _0x2237b3=[_0x4a6c3f,..._0x19e3f4(_0x4a6c3f)]['at'](-0x2);if(_0x4a6c3f!=_0x2237b3){const _0x351bbb=_0x4e627b(_0x2237b3,_0x1b2e9e(0x132));_0x4a7b5c(_0x351bbb)||(_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x2237b3,'id':_0x351bbb,'type':_0x1b2e9e(0xef)}),_0x517fcd[_0x1b2e9e(0x105)][_0x1b2e9e(0x11f)](_0x351bbb));}else _0x517fcd[_0x1b2e9e(0x105)][_0x1b2e9e(0xe9)](_0x154f17)?_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0xef),'id':_0x154f17}):_0x517fcd[_0x1b2e9e(0x127)][_0x1b2e9e(0xe9)](_0x154f17)?_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0xee),'id':_0x154f17,'anchorId':_0x4e627b(_0x4a6c3f[_0x1b2e9e(0x131)],_0x1b2e9e(0x132))}):_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0x12b),'id':_0x154f17});return!0x0;},this[_0x24cf27(0x116)]),_0x116ed9=_0x116ed9[_0x24cf27(0x128)](({node:_0x3a949b})=>[..._0x19e3f4(_0x3a949b),_0x3a949b][_0x24cf27(0x13a)](_0x487f73=>!_0x4e627b(_0x487f73,_0x24cf27(0xf6)))),0x0==_0x116ed9[_0x24cf27(0xf7)])return;const _0x17ddb5=[[_0x116ed9[0x0]]];for(let _0x5e3e44=0x1;_0x5e3e44<_0x116ed9[_0x24cf27(0xf7)];_0x5e3e44++){const _0x130eb1=_0x17ddb5[_0x17ddb5[_0x24cf27(0xf7)]-0x1],_0x1f54b5=_0x130eb1[_0x130eb1[_0x24cf27(0xf7)]-0x1];_0x116ed9[_0x5e3e44][_0x24cf27(0x13c)][_0x24cf27(0x131)]==_0x1f54b5[_0x24cf27(0x13c)]&&_0x24cf27(0xef)!=_0x116ed9[_0x5e3e44][_0x24cf27(0x11a)]&&_0x24cf27(0xef)!=_0x1f54b5[_0x24cf27(0x11a)]?_0x130eb1[_0x24cf27(0x11f)](_0x116ed9[_0x5e3e44]):_0x17ddb5[_0x24cf27(0x11f)]([_0x116ed9[_0x5e3e44]]);}for(const _0x224819 of _0x17ddb5){const _0x1861fc=_0x224819[0x0],_0x2dc540=_0x224819[_0x224819[_0x24cf27(0xf7)]-0x1],_0x1932c7=_0x5631ff(_0x1861fc[_0x24cf27(0x13c)][_0x24cf27(0x131)]);_0x1932c7&&_0x224819[_0x24cf27(0x114)](_0x1932c7);const _0x5ddadb=_0x5631ff(_0x2dc540[_0x24cf27(0x13c)][_0x24cf27(0xff)]);_0x5ddadb&&_0x224819[_0x24cf27(0x11f)](_0x5ddadb);}function _0x4a7b5c(_0x1a01f1){const _0x2ab5e0=_0x24cf27;return _0x517fcd[_0x2ab5e0(0x105)][_0x2ab5e0(0xe9)](_0x1a01f1)||_0x517fcd[_0x2ab5e0(0x127)][_0x2ab5e0(0xe9)](_0x1a01f1)||_0x517fcd[_0x2ab5e0(0xf5)][_0x2ab5e0(0xe9)](_0x1a01f1);}function _0x5631ff(_0x10c1ad){const _0x462ea8=_0x24cf27;if(_0x10c1ad&&_0x4e627b(_0x10c1ad,_0x462ea8(0x132))&&!_0x4e627b(_0x10c1ad,_0x462ea8(0xf6))){const _0x30afe7=_0x4e627b(_0x10c1ad,_0x462ea8(0x132));if(!_0x4a7b5c(_0x30afe7))return{'node':_0x10c1ad,'type':_0x462ea8(0x109),'id':_0x30afe7};}return null;}this[_0x24cf27(0x102)]=_0x17ddb5[_0x24cf27(0x13b)]((_0x3c81e4,_0x5d9b6b)=>({'changes':_0x3c81e4,'state':_0x24cf27(0x137),'index':_0x5d9b6b}));}}export function isValidReplyType(_0xa41bf9){const _0x57189f=_0x39cbc6;return Object[_0x57189f(0x133)](AI_REPLY_TYPES)[_0x57189f(0xe9)](_0xa41bf9);}export function isIgnoredReplyType(_0x5d823a){const _0x42bfd2=_0x39cbc6;return AI_REPLY_TYPES_IGNORED[_0x42bfd2(0xe9)](_0x5d823a);}export function isReplyTitleType(_0x302efd){return _0x302efd===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x371d32){const _0x473d5c=_0x39cbc6;return _0x473d5c(0x103)===_0x371d32;}
|
|
23
|
+
const _0x340882=_0x67f7;(function(_0x33e275,_0x239a2c){const _0x294f85=_0x67f7,_0x2447b1=_0x33e275();while(!![]){try{const _0x219d5c=parseInt(_0x294f85(0xb3))/0x1*(-parseInt(_0x294f85(0xe5))/0x2)+-parseInt(_0x294f85(0xe3))/0x3*(parseInt(_0x294f85(0x9d))/0x4)+parseInt(_0x294f85(0xb7))/0x5+parseInt(_0x294f85(0xd2))/0x6+parseInt(_0x294f85(0xa2))/0x7*(-parseInt(_0x294f85(0xe9))/0x8)+-parseInt(_0x294f85(0xa5))/0x9*(-parseInt(_0x294f85(0xd8))/0xa)+parseInt(_0x294f85(0xc5))/0xb*(-parseInt(_0x294f85(0x9f))/0xc);if(_0x219d5c===_0x239a2c)break;else _0x2447b1['push'](_0x2447b1['shift']());}catch(_0xf7b9fa){_0x2447b1['push'](_0x2447b1['shift']());}}}(_0x4f96,0x4863f));import{CKEditorError as _0x345e80,ObservableMixin as _0x43945c,uid as _0x121a05}from'ckeditor5/src/utils.js';import{Element as _0x460d36,findAll as _0x1ed37e,getAttribute as _0x4c524b,getParents as _0x53ac11,Document as _0x4e15a2,parse as _0x3bb960,Text as _0x5b3408}from'../utils/htmlparser.js';import{AIResponseParser as _0x39867f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x393ebb}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x539625}from'../utils/getsuggestionpartsfromreply.js';function _0x67f7(_0x4794e1,_0x4c4a98){const _0x4f965f=_0x4f96();return _0x67f7=function(_0x67f7b3,_0x36872b){_0x67f7b3=_0x67f7b3-0x98;let _0x5820e8=_0x4f965f[_0x67f7b3];return _0x5820e8;},_0x67f7(_0x4794e1,_0x4c4a98);}import{getTranslation as _0x3d7436}from'../utils/common-translations.js';import{cloneDeep as _0x2f83f5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x340882(0xa1),_0x340882(0xc0),_0x340882(0xa7),_0x340882(0xac)];export const AI_REPLY_TYPES_IGNORED=[_0x340882(0xcb)];function _0x4f96(){const _0x33dfbd=['updateChangeGroups','newNodeIds','set','sources','reasoning','withoutDiff','ai-reply-get-content-parts-group-not-found','_getCachedContentParts','convertMarkdownToHTML','includes','aiResponseParser','1mcZuUy','onContentChange','appendContent','parseAndNormalizeHTML','2734830AdSgmt','new','modified','values','merge','every','pending','replyChangeGroupStateUpdated','node','text-delta','setChangeGroupState','changes','content','change:content','451PLXApV','isDone','context','unshift','parsedContent','_setCachedContentParts','conversation-title','nextSibling','removed','data-id','ai-get-editor-from-context-no-editor','cloneNode','filter','124002XErTgr','_getDifferentChangeGroups','documentContextContent','type','fire','locale','3763830TEHYrA','AI_SUGGESTION_CONTENT_PART_REMOVED','modifiedNodeIds','withDiff','source','find','stopListening','aiResponseApplier','length','done','getContentParts','1132737aQaLCG','cachedSuggestionContentParts','370892EMSeyH','editor','color:\x20#808080;\x20font-style:\x20italic','interactionId','16136Dgjwrc','map','changeGroups','replyContentUpdated','index','previousSibling','forEach','areActionsDisabled','splice','push','indexOf','span','4sREadc','destroy','11148TDXIot','state','modification-delta','161jvALtC','data-unstable','parsedMergedContent','9YBodRM','removedNodeIds','web-search'];_0x4f96=function(){return _0x33dfbd;};return _0x4f96();}export const AI_REPLY_TITLE_TYPE=_0x340882(0xcb);export class AIReply extends _0x43945c(){['id'];[_0x340882(0xe8)];[_0x340882(0xd5)];[_0x340882(0xab)]=[];[_0x340882(0xc9)]=new _0x4e15a2([]);[_0x340882(0xa4)]=new _0x4e15a2([]);[_0x340882(0xeb)]=[];[_0x340882(0x98)]=!0x1;[_0x340882(0xd4)];[_0x340882(0xb2)];[_0x340882(0xdf)];[_0x340882(0xe6)];[_0x340882(0xe4)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3ecd0f,content:_0x3ed6c2='',isDone:_0x151659=!0x1,interactionId:_0x381fe0,areActionsDisabled:_0xe489c2,documentContextContent:_0x308724,editor:_0x2aee32,id:_0x4bbf92}){const _0x228390=_0x340882;super(),this['id']=_0x4bbf92||_0x121a05(),this[_0x228390(0xe8)]=_0x381fe0,this[_0x228390(0xd5)]=_0x3ecd0f,this[_0x228390(0x98)]=!!_0xe489c2,this[_0x228390(0xe6)]=_0x2aee32,this[_0x228390(0xb2)]=new _0x39867f(),this[_0x228390(0xdf)]=new _0x393ebb(),this[_0x228390(0xd4)]=_0x3bb960(_0x308724||''),this[_0x228390(0xaa)](_0x228390(0xc6),_0x151659),this['on'](_0x228390(0xc4),()=>{const _0x3f595d=_0x228390;this[_0x3f595d(0xb4)]();}),this[_0x228390(0xaa)](_0x228390(0xc3),_0x3ed6c2);}[_0x340882(0xb5)](_0x54afe6){const _0x3caff3=_0x340882;this[_0x3caff3(0xaa)](_0x3caff3(0xc3),this[_0x3caff3(0xc3)]+_0x54afe6);}[_0x340882(0xe1)](){const _0x5c01f0=_0x340882;this[_0x5c01f0(0xc6)]||(this[_0x5c01f0(0xaa)](_0x5c01f0(0xc6),!0x0),this[_0x5c01f0(0xb4)]());}[_0x340882(0x9e)](){const _0x500f46=_0x340882;this[_0x500f46(0xde)]();}[_0x340882(0xc1)](_0x443e7c,_0x4ed65c){const _0x3c49b3=_0x340882;this[_0x3c49b3(0xeb)][_0x443e7c][_0x3c49b3(0xa0)]=_0x4ed65c,this[_0x3c49b3(0xd6)](_0x3c49b3(0xbe),{'reply':this,'index':_0x443e7c,'state':_0x4ed65c});}[_0x340882(0xe2)]({showDiff:_0x18a758,groupIndex:_0x238294}){const _0x218ffb=_0x340882;if(!this[_0x218ffb(0xe6)])throw new _0x345e80(_0x218ffb(0xcf),null,{'aiReply':this});const _0xa71398=this[_0x218ffb(0xaf)](_0x18a758,_0x238294);if(_0xa71398)return _0xa71398;let _0x389fca=[];if(void 0x0===_0x238294)_0x389fca=this[_0x218ffb(0xeb)];else{const _0x4cc5c3=this[_0x218ffb(0xeb)][_0x218ffb(0xdd)](({index:_0x21c797})=>_0x21c797===_0x238294);if(!_0x4cc5c3)throw new _0x345e80(_0x218ffb(0xae),null,{'aiReply':this,'groupIndex':_0x238294});_0x389fca=[_0x4cc5c3];}const _0xc74364=_0x539625({'editor':this[_0x218ffb(0xe6)],'showDiff':_0x18a758,'changeGroups':_0x389fca,'documentContextContent':this[_0x218ffb(0xd4)]});return this[_0x218ffb(0xca)](_0x18a758,_0xc74364),_0xc74364;}[_0x340882(0xaf)](_0x59d3e5,_0x2fca20){const _0x3f7f6f=_0x340882,_0x87a0=_0x59d3e5?_0x3f7f6f(0xdb):_0x3f7f6f(0xad);if(!this[_0x3f7f6f(0xe4)][_0x87a0][_0x3f7f6f(0xe0)])return null;const _0x1c648e=this[_0x3f7f6f(0xe4)][_0x87a0];if(void 0x0===_0x2fca20)return _0x2f83f5(_0x1c648e);{const _0x2309cb=_0x1c648e[_0x3f7f6f(0xdd)](({index:_0x4b1fe1})=>_0x4b1fe1===_0x2fca20);if(_0x2309cb)return[_0x2f83f5(_0x2309cb)];}return null;}[_0x340882(0xca)](_0x419d03,_0x2786d8){const _0x404a69=_0x340882,_0x190de0=_0x419d03?_0x404a69(0xdb):_0x404a69(0xad);_0x2786d8[_0x404a69(0xef)](_0x47293c=>{const _0x29b553=_0x404a69,_0x15d5b2=this[_0x29b553(0xe4)][_0x190de0],_0x2f6d82=_0x15d5b2[_0x29b553(0xdd)](({index:_0x420a49})=>_0x420a49===_0x47293c[_0x29b553(0xed)]);if(_0x2f6d82){const _0x36a1ab=_0x15d5b2[_0x29b553(0x9b)](_0x2f6d82);_0x15d5b2[_0x29b553(0x99)](_0x36a1ab,0x1,_0x47293c);}else _0x15d5b2[_0x29b553(0x9a)](_0x47293c);});}[_0x340882(0xb4)](){const _0x35dfc6=_0x340882;if(_0x35dfc6(0xa1)===this[_0x35dfc6(0xd5)]){this[_0x35dfc6(0xc9)]=this[_0x35dfc6(0xb2)][_0x35dfc6(0xb6)](this[_0x35dfc6(0xc3)]);const _0x316fec=this[_0x35dfc6(0xeb)];this[_0x35dfc6(0xa8)]();const _0x237e18=this[_0x35dfc6(0xd3)](_0x316fec,this[_0x35dfc6(0xeb)]);(_0x237e18[_0x35dfc6(0xe0)]||this[_0x35dfc6(0xc6)])&&(this[_0x35dfc6(0xd6)](_0x35dfc6(0xec),this,_0x237e18),this[_0x35dfc6(0xe4)][_0x35dfc6(0xdb)][_0x35dfc6(0xe0)]=this[_0x35dfc6(0xe4)][_0x35dfc6(0xad)][_0x35dfc6(0xe0)]=0x0);}else this[_0x35dfc6(0xc9)]=this[_0x35dfc6(0xb2)][_0x35dfc6(0xb0)](this[_0x35dfc6(0xc3)]),this[_0x35dfc6(0xd6)](_0x35dfc6(0xec),this);}[_0x340882(0xd3)](_0x9deffc,_0x1c6afa){const _0x14a7b8=_0x340882,_0x30f309=[];for(const _0xc1a8cf of _0x1c6afa){const _0x5b814e=_0x9deffc[_0xc1a8cf[_0x14a7b8(0xed)]];_0x5b814e?_0x5b814e[_0x14a7b8(0xc2)][_0x14a7b8(0xe0)]!==_0xc1a8cf[_0x14a7b8(0xc2)][_0x14a7b8(0xe0)]?_0x30f309[_0x14a7b8(0x9a)](_0xc1a8cf):_0x5b814e[_0x14a7b8(0xc2)][_0x14a7b8(0xef)]((_0x34432c,_0x472116)=>{const _0x13817d=_0x14a7b8,_0x449224=_0xc1a8cf[_0x13817d(0xc2)][_0x472116];_0x34432c['id']!==_0x449224['id']&&_0x30f309[_0x13817d(0x9a)](_0xc1a8cf);}):_0x30f309[_0x14a7b8(0x9a)](_0xc1a8cf);}return _0x30f309;}[_0x340882(0xa8)](){const _0x1ec2c8=_0x340882,_0x31c4f9=new _0x460d36('p',{},[new _0x460d36(_0x1ec2c8(0x9c),{'style':_0x1ec2c8(0xe7)},[new _0x5b3408(_0x3d7436(this[_0x1ec2c8(0xe6)][_0x1ec2c8(0xd7)],_0x1ec2c8(0xd9)))])]),_0xd73edb=this[_0x1ec2c8(0xdf)][_0x1ec2c8(0xbb)](this[_0x1ec2c8(0xc9)],this[_0x1ec2c8(0xd4)][_0x1ec2c8(0xd0)](!0x0),{'markUnstableElements':!this[_0x1ec2c8(0xc6)],'replaceRemovedWith':_0x31c4f9,'cutAfterLastChange':!this[_0x1ec2c8(0xc6)]});if(!_0xd73edb[_0x1ec2c8(0xda)][_0x1ec2c8(0xe0)]&&!this[_0x1ec2c8(0xc6)])return;this[_0x1ec2c8(0xa4)]=_0xd73edb[_0x1ec2c8(0xc9)];let _0x5fec86=[];if(_0x1ed37e(_0x4ebca5=>{const _0x52ccc0=_0x1ec2c8,_0xf3431a=_0x4c524b(_0x4ebca5,_0x52ccc0(0xce));if(!_0xf3431a||!_0x50cfcc(_0xf3431a))return!0x1;const _0x6581ea=[_0x4ebca5,..._0x53ac11(_0x4ebca5)]['at'](-0x2);if(_0x4ebca5!=_0x6581ea){const _0x9f2823=_0x4c524b(_0x6581ea,_0x52ccc0(0xce));_0x50cfcc(_0x9f2823)||(_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x6581ea,'id':_0x9f2823,'type':_0x52ccc0(0xb9)}),_0xd73edb[_0x52ccc0(0xda)][_0x52ccc0(0x9a)](_0x9f2823));}else _0xd73edb[_0x52ccc0(0xda)][_0x52ccc0(0xb1)](_0xf3431a)?_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xb9),'id':_0xf3431a}):_0xd73edb[_0x52ccc0(0xa9)][_0x52ccc0(0xb1)](_0xf3431a)?_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xb8),'id':_0xf3431a,'anchorId':_0x4c524b(_0x4ebca5[_0x52ccc0(0xee)],_0x52ccc0(0xce))}):_0x5fec86[_0x52ccc0(0x9a)]({'node':_0x4ebca5,'type':_0x52ccc0(0xcd),'id':_0xf3431a});return!0x0;},this[_0x1ec2c8(0xa4)]),_0x5fec86=_0x5fec86[_0x1ec2c8(0xd1)](({node:_0x483912})=>[..._0x53ac11(_0x483912),_0x483912][_0x1ec2c8(0xbc)](_0x188b3e=>!_0x4c524b(_0x188b3e,_0x1ec2c8(0xa3)))),0x0==_0x5fec86[_0x1ec2c8(0xe0)])return;const _0x304d65=[[_0x5fec86[0x0]]];for(let _0x526779=0x1;_0x526779<_0x5fec86[_0x1ec2c8(0xe0)];_0x526779++){const _0x1154d6=_0x304d65[_0x304d65[_0x1ec2c8(0xe0)]-0x1],_0x128bd2=_0x1154d6[_0x1154d6[_0x1ec2c8(0xe0)]-0x1];_0x5fec86[_0x526779][_0x1ec2c8(0xbf)][_0x1ec2c8(0xee)]==_0x128bd2[_0x1ec2c8(0xbf)]&&_0x1ec2c8(0xb9)!=_0x5fec86[_0x526779][_0x1ec2c8(0xd5)]&&_0x1ec2c8(0xb9)!=_0x128bd2[_0x1ec2c8(0xd5)]?_0x1154d6[_0x1ec2c8(0x9a)](_0x5fec86[_0x526779]):_0x304d65[_0x1ec2c8(0x9a)]([_0x5fec86[_0x526779]]);}for(const _0x45396d of _0x304d65){const _0x31469a=_0x45396d[0x0],_0x36b985=_0x45396d[_0x45396d[_0x1ec2c8(0xe0)]-0x1],_0x2bb988=_0x54b199(_0x31469a[_0x1ec2c8(0xbf)][_0x1ec2c8(0xee)]);_0x2bb988&&_0x45396d[_0x1ec2c8(0xc8)](_0x2bb988);const _0x5598ee=_0x54b199(_0x36b985[_0x1ec2c8(0xbf)][_0x1ec2c8(0xcc)]);_0x5598ee&&_0x45396d[_0x1ec2c8(0x9a)](_0x5598ee);}function _0x50cfcc(_0x4a55f0){const _0x4e825a=_0x1ec2c8;return _0xd73edb[_0x4e825a(0xda)][_0x4e825a(0xb1)](_0x4a55f0)||_0xd73edb[_0x4e825a(0xa9)][_0x4e825a(0xb1)](_0x4a55f0)||_0xd73edb[_0x4e825a(0xa6)][_0x4e825a(0xb1)](_0x4a55f0);}function _0x54b199(_0x266975){const _0x220d55=_0x1ec2c8;if(_0x266975&&_0x4c524b(_0x266975,_0x220d55(0xce))&&!_0x4c524b(_0x266975,_0x220d55(0xa3))){const _0x4dc4cd=_0x4c524b(_0x266975,_0x220d55(0xce));if(!_0x50cfcc(_0x4dc4cd))return{'node':_0x266975,'type':_0x220d55(0xc7),'id':_0x4dc4cd};}return null;}this[_0x1ec2c8(0xeb)]=_0x304d65[_0x1ec2c8(0xea)]((_0xb46fd3,_0x28c6a7)=>({'changes':_0xb46fd3,'state':_0x1ec2c8(0xbd),'index':_0x28c6a7}));}}export function isValidReplyType(_0x2ec86f){const _0xf79e04=_0x340882;return Object[_0xf79e04(0xba)](AI_REPLY_TYPES)[_0xf79e04(0xb1)](_0x2ec86f);}export function isIgnoredReplyType(_0x4c226c){const _0xdbddd3=_0x340882;return AI_REPLY_TYPES_IGNORED[_0xdbddd3(0xb1)](_0x4c226c);}export function isReplyTitleType(_0x342864){return _0x342864===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x205e33){const _0x360eb2=_0x340882;return _0x360eb2(0xdc)===_0x205e33;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x26d810(){[_0x5d9397(0x16c)];[_0x5d9397(0x14b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5d9397(0x164)]=new Set();constructor(_0x183f35){const _0x501a10=_0x5d9397;super(),this[_0x501a10(0x16c)]=_0x183f35||_0x1b9c51;}[_0x5d9397(0x12e)](_0x5c7e4d,_0x169c58,_0x2ebbfc){const _0x53c931=_0x5d9397,_0x358f0a=_0x4c5cb5(_0x5c7e4d);if(0x0===_0x169c58[_0x53c931(0x13d)][_0x53c931(0x16b)]){const _0x2259cf=[];return _0x4e1af9(_0x53c931(0x162),_0x53c931(0x157),_0x358f0a)[_0x53c931(0x148)](_0x37d9cc=>{const _0x140dca=_0x53c931,_0x2ac511=this[_0x140dca(0x16c)]();_0x9d8b9c(_0x37d9cc,_0x140dca(0x162),_0x2ac511),_0x2259cf[_0x140dca(0x143)](_0x2ac511);}),this[_0x53c931(0x134)](_0x358f0a),{'parsedContent':_0x358f0a,'newNodeIds':_0x2259cf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x140)]&&this[_0x53c931(0x159)](_0x358f0a),this[_0x53c931(0x14b)][_0x53c931(0x14a)]=[],this[_0x53c931(0x14b)][_0x53c931(0x14e)]=[],this[_0x53c931(0x14b)][_0x53c931(0x168)]=[],this[_0x53c931(0x14b)][_0x53c931(0x146)]=[],this[_0x53c931(0x14b)][_0x53c931(0x150)]=null,this[_0x53c931(0x164)]=new Set(_0x4e1af9(_0x53c931(0x162),null,_0x169c58)[_0x53c931(0x130)](_0x52677b=>_0x2b31ac(_0x52677b,_0x53c931(0x162)))[_0x53c931(0x165)](_0x22fc80=>!!_0x22fc80));let _0x5f2939=-0x1,_0x3103b2=!0x1;const _0x105b25=_0x358f0a[_0x53c931(0x13d)],_0x3d67f2=Array[_0x53c931(0x135)](_0x105b25)[_0x53c931(0x165)](_0x3dce55=>!(0x3===_0x3dce55[_0x53c931(0x14f)]&&''===_0x23bfe3(_0x3dce55)[_0x53c931(0x147)]())),_0x3c5030=_0x3d67f2[_0x53c931(0x16b)];for(let _0x44604e=0x0;_0x44604e<_0x3c5030;_0x44604e++){const _0x39effa=_0x3d67f2[_0x44604e],_0x4b1840=_0x3d67f2[_0x44604e+0x1];if(this[_0x53c931(0x16d)](_0x39effa)){if(-0x1===_0x5f2939&&(_0x5f2939=_0x44604e),this[_0x53c931(0x144)](_0x39effa),!this[_0x53c931(0x16d)](_0x4b1840)){const [_0x2f7977,_0x3f577d]=this[_0x53c931(0x13c)](_0x39effa,_0x3103b2,_0x169c58);if(_0x2f7977){const _0x51b4e0=Array[_0x53c931(0x135)](_0x3d67f2)[_0x53c931(0x12a)](_0x5f2939,_0x44604e+0x1);this[_0x53c931(0x13b)](_0x2f7977,_0x51b4e0,_0x3f577d),_0x5f2939=-0x1;}}}else{if(this[_0x53c931(0x141)](_0x39effa))_0x3103b2=!0x0;else{if(this[_0x53c931(0x16e)](_0x39effa)){const _0x5d31d5=_0x2b31ac(_0x39effa,_0x53c931(0x162));if(_0x5d31d5&&this[_0x53c931(0x164)][_0x53c931(0x145)](_0x5d31d5)){const _0x188f6f=_0x37c531(_0x53c931(0x162),_0x5d31d5,_0x169c58);this[_0x53c931(0x156)](_0x188f6f,_0x39effa);}if(this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x15b)](_0x5d31d5)){const _0x58da03=this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x16f)](_0x5d31d5);this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x154)](_0x58da03,0x1);}}else{if(this[_0x53c931(0x16a)](_0x39effa)){const _0x2f972c=_0x2b31ac(_0x39effa,_0x53c931(0x162));this[_0x53c931(0x14b)][_0x53c931(0x14e)][_0x53c931(0x15b)](_0x2f972c)||this[_0x53c931(0x166)](_0x39effa);}}}}}for(const _0x139916 of this[_0x53c931(0x14b)][_0x53c931(0x168)]){const _0x1ee883=_0x37c531(_0x53c931(0x162),_0x139916,_0x169c58);if(_0x1ee883){if(_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x15a)]){this[_0x53c931(0x14b)][_0x53c931(0x150)]=_0x139916;const _0x55ac88=_0x2ebbfc[_0x53c931(0x15a)][_0x53c931(0x133)](!0x0);_0x9d8b9c(_0x55ac88,_0x53c931(0x162),_0x139916),_0x9d8b9c(_0x55ac88,_0x53c931(0x14d),_0x53c931(0x155)),_0x249d0a(_0x1ee883,_0x55ac88);}else _0x545d08(_0x1ee883);}}if(_0x4e1af9(_0x53c931(0x138),null,_0x169c58)[_0x53c931(0x148)](_0x3b431d=>{const _0x255019=_0x53c931,_0x3abc57=_0x2b31ac(_0x3b431d,_0x255019(0x138)),_0xa6f98f=_0x37c531(_0x255019(0x162),_0x3abc57,_0x169c58);_0xa6f98f&&_0x34299a(_0xa6f98f,_0x3b431d);}),_0x4e1af9(_0x53c931(0x162),_0x53c931(0x157),_0x169c58)[_0x53c931(0x148)](_0x9c96e6=>{const _0x2ad207=_0x53c931,_0x3679e1=this[_0x2ad207(0x163)](_0x9c96e6);_0x9d8b9c(_0x9c96e6,_0x2ad207(0x162),_0x3679e1),this[_0x2ad207(0x14b)][_0x2ad207(0x14a)][_0x2ad207(0x143)](_0x3679e1);}),this[_0x53c931(0x134)](_0x169c58),_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x140)]&&this[_0x53c931(0x153)](_0x169c58,_0x2ebbfc[_0x53c931(0x139)]||0x0),_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x151)]&&this[_0x53c931(0x14b)][_0x53c931(0x150)]){let _0x510844=_0x37c531(_0x53c931(0x162),this[_0x53c931(0x14b)][_0x53c931(0x150)],_0x169c58);for(;_0x510844;)_0x4f333d(_0x510844),_0x510844=_0x510844[_0x53c931(0x12f)];}return{'parsedContent':_0x169c58,'newNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x14a)],'modifiedNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x14e)],'removedNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x168)]};}[_0x5d9397(0x13b)](_0x3d1573,_0x3fff19,_0x1d620b){const _0x24c8da=_0x5d9397;for(const _0x439c20 of _0x3fff19){const _0x5de363=this[_0x24c8da(0x163)](_0x439c20);_0x9d8b9c(_0x439c20,_0x24c8da(0x162),_0x5de363),this[_0x24c8da(0x14b)][_0x24c8da(0x14a)][_0x24c8da(0x143)](_0x5de363),this[_0x24c8da(0x14b)][_0x24c8da(0x150)]=_0x5de363;}const _0x4c0baf=_0x24c8da(0x15f)===_0x1d620b||_0x24c8da(0x12d)===_0x1d620b?_0x3fff19[_0x24c8da(0x170)]():_0x3fff19;for(const _0x3f07f3 of _0x4c0baf)_0xda863f(_0x3d1573,_0x3f07f3,_0x1d620b);}[_0x5d9397(0x156)](_0x3d317c,_0x4a268a){const _0x53a0cf=_0x5d9397;if(!_0x3d317c)return;if(_0x11e4e2(_0x3d317c,_0x4a268a))return;const _0xcea100=this[_0x53a0cf(0x163)](_0x3d317c);_0x9d8b9c(_0x4a268a,_0x53a0cf(0x162),_0xcea100),this[_0x53a0cf(0x14b)][_0x53a0cf(0x14e)][_0x53a0cf(0x143)](_0xcea100),this[_0x53a0cf(0x14b)][_0x53a0cf(0x150)]=_0xcea100,_0x249d0a(_0x3d317c,_0x4a268a[_0x53a0cf(0x133)](!0x0));}[_0x5d9397(0x13c)](_0x347732,_0x435466,_0x397306){const _0x56d873=_0x5d9397,_0x4f6d94=this[_0x56d873(0x169)](_0x347732,!0x1);if(_0x4f6d94){const _0x3818ec=this[_0x56d873(0x12c)](_0x4f6d94),_0x4fdb9e=_0x37c531(_0x56d873(0x162),_0x3818ec,_0x397306);if(_0x4fdb9e)return[_0x4fdb9e,_0x56d873(0x12d)];this[_0x56d873(0x14b)][_0x56d873(0x146)][_0x56d873(0x143)](_0x3818ec);}const _0x3c3ba1=this[_0x56d873(0x131)](_0x347732,!0x1);if(_0x3c3ba1){const _0x433966=this[_0x56d873(0x12c)](_0x3c3ba1),_0x46eead=_0x37c531(_0x56d873(0x162),_0x433966,_0x397306);if(_0x46eead)return[_0x46eead,_0x56d873(0x15e)];this[_0x56d873(0x14b)][_0x56d873(0x146)][_0x56d873(0x143)](_0x433966);}return _0x435466?_0x347732[_0x56d873(0x132)]?this[_0x56d873(0x13e)](_0x347732,_0x397306):[_0x397306[_0x56d873(0x13d)][_0x397306[_0x56d873(0x13d)][_0x56d873(0x16b)]-0x1],_0x56d873(0x12d)]:[_0x397306[_0x56d873(0x13d)][0x0],_0x56d873(0x15e)];}[_0x5d9397(0x13e)](_0x632bee,_0x40ba33){const _0x4c3986=_0x5d9397,_0x52e975=[],_0x20055c=this[_0x4c3986(0x169)](_0x632bee,!0x0);if(_0x20055c){const _0x4add0b=this[_0x4c3986(0x12c)](_0x20055c),_0x1cd402=_0x37c531(_0x4c3986(0x162),_0x4add0b,_0x40ba33);_0x1cd402&&_0x52e975[_0x4c3986(0x143)]([_0x1cd402,_0x4c3986(0x12d)]);}const _0x22421f=this[_0x4c3986(0x131)](_0x632bee,!0x0);if(_0x22421f){const _0x538452=this[_0x4c3986(0x12c)](_0x22421f),_0x10832c=_0x37c531(_0x4c3986(0x162),_0x538452,_0x40ba33);_0x10832c&&_0x52e975[_0x4c3986(0x143)]([_0x10832c,_0x4c3986(0x15e)]);}if(_0x52e975[_0x4c3986(0x16b)]>0x1)return _0x451550(_0x52e975[0x0][0x0])<=_0x451550(_0x52e975[0x1][0x0])?_0x52e975[0x0]:_0x52e975[0x1];return 0x1===_0x52e975[_0x4c3986(0x16b)]?_0x52e975[0x0]:[_0x40ba33[_0x4c3986(0x149)],_0x4c3986(0x12d)];}[_0x5d9397(0x131)](_0x61e8cd,_0x1563ae){const _0x4502ea=_0x5d9397;let _0x333228=_0x61e8cd[_0x4502ea(0x132)],_0x199451=null,_0x54e2f4=!0x1;for(;_0x333228;){if(_0x5c1da2(_0x333228)){if(this[_0x4502ea(0x16a)](_0x333228)&&(_0x199451=_0x333228),this[_0x4502ea(0x141)](_0x333228)&&_0x1563ae&&!_0x54e2f4){_0x54e2f4=!0x0,_0x333228=_0x333228[_0x4502ea(0x132)];continue;}break;}const _0x434600=_0x2b31ac(_0x333228,_0x4502ea(0x162));if(_0x434600&&_0x4502ea(0x157)!==_0x434600&&this[_0x4502ea(0x164)][_0x4502ea(0x145)](_0x434600)){_0x199451=_0x333228;break;}_0x333228=_0x333228[_0x4502ea(0x132)];}return _0x199451;}[_0x5d9397(0x169)](_0x5b8702,_0x47d9eb){const _0x3219d6=_0x5d9397;let _0x2ce664=_0x5b8702[_0x3219d6(0x15c)],_0x247591=null,_0xb2fd09=!0x1;for(;_0x2ce664;){if(_0x5c1da2(_0x2ce664)){if(this[_0x3219d6(0x16a)](_0x2ce664)&&(_0x247591=_0x2ce664),this[_0x3219d6(0x141)](_0x2ce664)&&_0x47d9eb&&!_0xb2fd09){_0xb2fd09=!0x0,_0x2ce664=_0x2ce664[_0x3219d6(0x15c)];continue;}break;}const _0x2f5679=_0x2b31ac(_0x2ce664,_0x3219d6(0x162));if(_0x2f5679&&_0x3219d6(0x157)!==_0x2f5679&&this[_0x3219d6(0x164)][_0x3219d6(0x145)](_0x2f5679)){_0x247591=_0x2ce664;break;}_0x2ce664=_0x2ce664[_0x3219d6(0x15c)];}return _0x247591;}[_0x5d9397(0x144)](_0x28abcc){const _0x5cf8c4=_0x5d9397;_0x83f103(_0x28abcc)&&_0x4e1af9(_0x5cf8c4(0x162),null,_0x28abcc)[_0x5cf8c4(0x148)](_0x45ae4c=>{const _0x51b4c5=_0x5cf8c4;if(this[_0x51b4c5(0x16e)](_0x45ae4c)&&!this[_0x51b4c5(0x167)](_0x45ae4c)){const _0x13ada3=_0x2b31ac(_0x45ae4c,_0x51b4c5(0x162));_0x9d8b9c(_0x45ae4c,_0x51b4c5(0x138),_0x13ada3),_0x9d8b9c(_0x45ae4c,_0x51b4c5(0x162),null);}});}[_0x5d9397(0x12c)](_0x4a4cf5){const _0x183746=_0x5d9397;if(!_0x4a4cf5)return null;if(_0x83f103(_0x4a4cf5))return _0x2b31ac(_0x4a4cf5,_0x183746(0x162));if(_0x5c1da2(_0x4a4cf5)){const _0x220371=_0x23bfe3(_0x4a4cf5)[_0x183746(0x13f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x220371&&_0x220371[0x1])return _0x220371[0x1];}return null;}[_0x5d9397(0x166)](_0x240678){const _0x501121=_0x5d9397;if(_0x5c1da2(_0x240678)){const _0xc4eb9e=_0x23bfe3(_0x240678)[_0x501121(0x13f)](/removed[\s*-]data-id="([^"]+)"/);_0xc4eb9e&&_0xc4eb9e[0x1]&&this[_0x501121(0x14b)][_0x501121(0x168)][_0x501121(0x143)](_0xc4eb9e[0x1]);}}[_0x5d9397(0x163)](_0x5dc97c){const _0xc4c0a8=_0x5d9397;return this[_0xc4c0a8(0x16e)](_0x5dc97c)?_0x2b31ac(_0x5dc97c,_0xc4c0a8(0x162)):this[_0xc4c0a8(0x16c)]();}[_0x5d9397(0x134)](_0xb05f1d){const _0x2d259f=_0x5d9397;_0x25deeb(_0xb05f1d)[_0x2d259f(0x165)](_0xd334c4=>this[_0x2d259f(0x16a)](_0xd334c4)||this[_0x2d259f(0x141)](_0xd334c4))[_0x2d259f(0x148)](_0x92d204=>{_0x545d08(_0x92d204);});}[_0x5d9397(0x159)](_0x5849df){const _0x235d71=_0x5d9397,_0x30e6b8=_0x5849df[_0x235d71(0x13d)],_0x3a08c3=_0x30e6b8[_0x30e6b8[_0x235d71(0x16b)]-0x1];_0x3a08c3&&_0x83f103(_0x3a08c3)&&_0x9d8b9c(_0x3a08c3,_0x235d71(0x152),_0x235d71(0x155));}[_0x5d9397(0x153)](_0x336723,_0x8dec2f){const _0xbc70c2=_0x5d9397,_0x207cb5=_0x37c531(_0xbc70c2(0x152),_0xbc70c2(0x155),_0x336723);if(!_0x207cb5)return;const _0x3e04e2=_0x588691(_0x207cb5)[_0xbc70c2(0x12a)](0x0,-0x1),_0x21e58f=_0x3e04e2[_0xbc70c2(0x16b)];let _0x10c797=_0x207cb5;if(_0x21e58f>_0x8dec2f){let _0x4f121a=_0x21e58f,_0x5eebd4=null;for(;_0x4f121a>_0x8dec2f&&_0x4f121a>=0x0;)_0x4f121a--,_0x5eebd4=_0x3e04e2[_0x4f121a];_0x5eebd4&&(_0x10c797=_0x5eebd4,_0x9d8b9c(_0x207cb5,_0xbc70c2(0x152),null),_0x9d8b9c(_0x5eebd4,_0xbc70c2(0x152),_0xbc70c2(0x155)));}else{if(_0x21e58f<_0x8dec2f){let _0xdb3160=_0x21e58f,_0x45beca=_0x207cb5;for(;_0xdb3160<_0x8dec2f;){const _0x2263cf=_0x45beca[_0xbc70c2(0x13d)][_0xbc70c2(0x165)](_0x1b1a9f=>_0x83f103(_0x1b1a9f));if(0x0===_0x2263cf[_0xbc70c2(0x16b)])break;_0xdb3160++,_0x45beca=_0x2263cf[_0x2263cf[_0xbc70c2(0x16b)]-0x1];}_0x45beca&&(_0x10c797=_0x45beca,_0x9d8b9c(_0x207cb5,_0xbc70c2(0x152),null),_0x9d8b9c(_0x45beca,_0xbc70c2(0x152),_0xbc70c2(0x155)));}}let _0xd96ce1=_0x10c797;for(;_0xd96ce1;){for(;_0xd96ce1[_0xbc70c2(0x132)];)_0xd96ce1=_0xd96ce1[_0xbc70c2(0x132)],_0x83f103(_0xd96ce1)&&_0x9d8b9c(_0xd96ce1,_0xbc70c2(0x152),_0xbc70c2(0x155));_0xd96ce1=_0xd96ce1[_0xbc70c2(0x12f)];}}[_0x5d9397(0x16d)](_0x1e9536){const _0x230e22=_0x5d9397;return Boolean(_0x230e22(0x157)===_0x2b31ac(_0x1e9536,_0x230e22(0x162)));}[_0x5d9397(0x16e)](_0x22b747){const _0x123ea4=_0x5d9397;return Boolean((_0x2b31ac(_0x22b747,_0x123ea4(0x162))||'')[_0x123ea4(0x16b)]>0x0&&_0x123ea4(0x157)!==_0x2b31ac(_0x22b747,_0x123ea4(0x162)));}[_0x5d9397(0x16a)](_0x4dc94e){const _0x206138=_0x5d9397;return!!_0x4dc94e&&Boolean(_0x5c1da2(_0x4dc94e)&&_0x23bfe3(_0x4dc94e)[_0x206138(0x13f)](/removed[\s*-]data-id="[^"]+"/));}[_0x5d9397(0x167)](_0x18347c){const _0x177421=_0x5d9397;let _0x5b42bf=_0x18347c[_0x177421(0x12f)];for(;_0x5b42bf;){if(_0x2b31ac(_0x5b42bf,_0x177421(0x138)))return!0x0;_0x5b42bf=_0x5b42bf[_0x177421(0x12f)];}return!0x1;}[_0x5d9397(0x141)](_0x1b90fc){const _0x286814=_0x5d9397;return Boolean(_0x5c1da2(_0x1b90fc)&&_0x23bfe3(_0x1b90fc)[_0x286814(0x13f)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x22d73f=_0x5d21;(function(_0x1ae372,_0x722d7b){const _0x37ee46=_0x5d21,_0x106466=_0x1ae372();while(!![]){try{const _0x2515d4=-parseInt(_0x37ee46(0xf9))/0x1*(-parseInt(_0x37ee46(0x106))/0x2)+parseInt(_0x37ee46(0x11e))/0x3+parseInt(_0x37ee46(0xe2))/0x4+parseInt(_0x37ee46(0x103))/0x5+-parseInt(_0x37ee46(0xe6))/0x6+-parseInt(_0x37ee46(0x116))/0x7+-parseInt(_0x37ee46(0xf3))/0x8;if(_0x2515d4===_0x722d7b)break;else _0x106466['push'](_0x106466['shift']());}catch(_0x4be3b1){_0x106466['push'](_0x106466['shift']());}}}(_0xef4b,0x74de1));import{ObservableMixin as _0x3fc3a8,uid as _0x23b801}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x510f01,findByAttribute as _0x1f6615,getAttribute as _0x2cd3c8,isComment as _0x79abfe,isTag as _0x3ad00b,insertElement as _0x38ebb4,moveElement as _0x107f3c,removeElement as _0xc6f657,replaceElement as _0xd741a4,serialize as _0x362d18,setAttribute as _0x23533b,clone as _0x42356f,findAllComments as _0x555da4,getParents as _0x1f8493,getNodeNestingLevel as _0xe647c8,areNodesSame as _0x47d6f5,removeElementsAfter as _0x1c521e}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3fc3a8(){[_0x22d73f(0xfb)];[_0x22d73f(0x101)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x22d73f(0x11b)]=new Set();constructor(_0x357c20){const _0x72a493=_0x22d73f;super(),this[_0x72a493(0xfb)]=_0x357c20||_0x23b801;}[_0x22d73f(0x117)](_0x5ea87a,_0x49a25a,_0x13639a){const _0x14acdb=_0x22d73f,_0x22c30d=_0x42356f(_0x5ea87a);if(0x0===_0x49a25a[_0x14acdb(0xe3)][_0x14acdb(0x102)]){const _0x201aa8=[];return _0x510f01(_0x14acdb(0xfe),_0x14acdb(0xfc),_0x22c30d)[_0x14acdb(0x10c)](_0x90eb90=>{const _0x1bb312=_0x14acdb,_0x56a7c7=this[_0x1bb312(0xfb)]();_0x23533b(_0x90eb90,_0x1bb312(0xfe),_0x56a7c7),_0x201aa8[_0x1bb312(0x10a)](_0x56a7c7);}),this[_0x14acdb(0x11f)](_0x22c30d),{'parsedContent':_0x22c30d,'newNodeIds':_0x201aa8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x13639a&&_0x13639a[_0x14acdb(0x104)]&&this[_0x14acdb(0x10b)](_0x22c30d),this[_0x14acdb(0x101)][_0x14acdb(0xfd)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xec)]=[],this[_0x14acdb(0x101)][_0x14acdb(0x118)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xf7)]=[],this[_0x14acdb(0x101)][_0x14acdb(0xeb)]=null,this[_0x14acdb(0x11b)]=new Set(_0x510f01(_0x14acdb(0xfe),null,_0x49a25a)[_0x14acdb(0x11d)](_0x23d946=>_0x2cd3c8(_0x23d946,_0x14acdb(0xfe)))[_0x14acdb(0x108)](_0x15c5db=>!!_0x15c5db));let _0x22f83d=-0x1,_0x1c51cf=!0x1;const _0x24dacb=_0x22c30d[_0x14acdb(0xe3)],_0x2a4a2e=Array[_0x14acdb(0x10e)](_0x24dacb)[_0x14acdb(0x108)](_0x1234a0=>!(0x3===_0x1234a0[_0x14acdb(0x111)]&&''===_0x362d18(_0x1234a0)[_0x14acdb(0x109)]())),_0x8f9211=_0x2a4a2e[_0x14acdb(0x102)];for(let _0x421848=0x0;_0x421848<_0x8f9211;_0x421848++){const _0x3c5b53=_0x2a4a2e[_0x421848],_0x108c53=_0x2a4a2e[_0x421848+0x1];if(this[_0x14acdb(0xf2)](_0x3c5b53)){if(-0x1===_0x22f83d&&(_0x22f83d=_0x421848),this[_0x14acdb(0x115)](_0x3c5b53),!this[_0x14acdb(0xf2)](_0x108c53)){const [_0x1a7bcc,_0x32a08b]=this[_0x14acdb(0xe7)](_0x3c5b53,_0x1c51cf,_0x49a25a);if(_0x1a7bcc){const _0x2af1de=Array[_0x14acdb(0x10e)](_0x2a4a2e)[_0x14acdb(0xf6)](_0x22f83d,_0x421848+0x1);this[_0x14acdb(0x123)](_0x1a7bcc,_0x2af1de,_0x32a08b),_0x22f83d=-0x1;}}}else{if(this[_0x14acdb(0xe8)](_0x3c5b53))_0x1c51cf=!0x0;else{if(this[_0x14acdb(0x124)](_0x3c5b53)){const _0x53b8dd=_0x2cd3c8(_0x3c5b53,_0x14acdb(0xfe));if(_0x53b8dd&&this[_0x14acdb(0x11b)][_0x14acdb(0xff)](_0x53b8dd)){const _0x4f4bfc=_0x1f6615(_0x14acdb(0xfe),_0x53b8dd,_0x49a25a);this[_0x14acdb(0x114)](_0x4f4bfc,_0x3c5b53);}if(this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0xf1)](_0x53b8dd)){const _0x5a83be=this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0x11c)](_0x53b8dd);this[_0x14acdb(0x101)][_0x14acdb(0x118)][_0x14acdb(0xe5)](_0x5a83be,0x1);}}else{if(this[_0x14acdb(0xee)](_0x3c5b53)){const _0x2c253d=_0x2cd3c8(_0x3c5b53,_0x14acdb(0xfe));this[_0x14acdb(0x101)][_0x14acdb(0xec)][_0x14acdb(0xf1)](_0x2c253d)||this[_0x14acdb(0xe1)](_0x3c5b53);}}}}}for(const _0xe5879c of this[_0x14acdb(0x101)][_0x14acdb(0x118)]){const _0x22dc31=_0x1f6615(_0x14acdb(0xfe),_0xe5879c,_0x49a25a);if(_0x22dc31){if(_0x13639a&&_0x13639a[_0x14acdb(0xe9)]){this[_0x14acdb(0x101)][_0x14acdb(0xeb)]=_0xe5879c;const _0x159b5d=_0x13639a[_0x14acdb(0xe9)][_0x14acdb(0x121)](!0x0);_0x23533b(_0x159b5d,_0x14acdb(0xfe),_0xe5879c),_0x23533b(_0x159b5d,_0x14acdb(0x11a),_0x14acdb(0x119)),_0xd741a4(_0x22dc31,_0x159b5d);}else _0xc6f657(_0x22dc31);}}if(_0x510f01(_0x14acdb(0x105),null,_0x49a25a)[_0x14acdb(0x10c)](_0x90dca1=>{const _0x456475=_0x14acdb,_0x2a5449=_0x2cd3c8(_0x90dca1,_0x456475(0x105)),_0x217b67=_0x1f6615(_0x456475(0xfe),_0x2a5449,_0x49a25a);_0x217b67&&_0x107f3c(_0x217b67,_0x90dca1);}),_0x510f01(_0x14acdb(0xfe),_0x14acdb(0xfc),_0x49a25a)[_0x14acdb(0x10c)](_0x2784f5=>{const _0x40408f=_0x14acdb,_0x257f11=this[_0x40408f(0x10d)](_0x2784f5);_0x23533b(_0x2784f5,_0x40408f(0xfe),_0x257f11),this[_0x40408f(0x101)][_0x40408f(0xfd)][_0x40408f(0x10a)](_0x257f11);}),this[_0x14acdb(0x11f)](_0x49a25a),_0x13639a&&_0x13639a[_0x14acdb(0x104)]&&this[_0x14acdb(0xea)](_0x49a25a,_0x13639a[_0x14acdb(0x122)]||0x0),_0x13639a&&_0x13639a[_0x14acdb(0xef)]&&this[_0x14acdb(0x101)][_0x14acdb(0xeb)]){let _0x26f407=_0x1f6615(_0x14acdb(0xfe),this[_0x14acdb(0x101)][_0x14acdb(0xeb)],_0x49a25a);for(;_0x26f407;)_0x1c521e(_0x26f407),_0x26f407=_0x26f407[_0x14acdb(0x107)];}return{'parsedContent':_0x49a25a,'newNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0xfd)],'modifiedNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0xec)],'removedNodeIds':this[_0x14acdb(0x101)][_0x14acdb(0x118)]};}[_0x22d73f(0x123)](_0x5acf8c,_0xee530b,_0x5c200e){const _0x3a1798=_0x22d73f;for(const _0x52c800 of _0xee530b){const _0x465ab5=this[_0x3a1798(0x10d)](_0x52c800);_0x23533b(_0x52c800,_0x3a1798(0xfe),_0x465ab5),this[_0x3a1798(0x101)][_0x3a1798(0xfd)][_0x3a1798(0x10a)](_0x465ab5),this[_0x3a1798(0x101)][_0x3a1798(0xeb)]=_0x465ab5;}const _0x53f18a=_0x3a1798(0xfa)===_0x5c200e||_0x3a1798(0x100)===_0x5c200e?_0xee530b[_0x3a1798(0x110)]():_0xee530b;for(const _0xa97bb1 of _0x53f18a)_0x38ebb4(_0x5acf8c,_0xa97bb1,_0x5c200e);}[_0x22d73f(0x114)](_0x5a3020,_0x19fa33){const _0x2413b9=_0x22d73f;if(!_0x5a3020)return;if(_0x47d6f5(_0x5a3020,_0x19fa33))return;const _0x322020=this[_0x2413b9(0x10d)](_0x5a3020);_0x23533b(_0x19fa33,_0x2413b9(0xfe),_0x322020),this[_0x2413b9(0x101)][_0x2413b9(0xec)][_0x2413b9(0x10a)](_0x322020),this[_0x2413b9(0x101)][_0x2413b9(0xeb)]=_0x322020,_0xd741a4(_0x5a3020,_0x19fa33[_0x2413b9(0x121)](!0x0));}[_0x22d73f(0xe7)](_0x164583,_0x4602d1,_0x38602b){const _0x2de34f=_0x22d73f,_0x121fd9=this[_0x2de34f(0xe4)](_0x164583,!0x1);if(_0x121fd9){const _0x3c63f8=this[_0x2de34f(0xf5)](_0x121fd9),_0x644a3d=_0x1f6615(_0x2de34f(0xfe),_0x3c63f8,_0x38602b);if(_0x644a3d)return[_0x644a3d,_0x2de34f(0x100)];this[_0x2de34f(0x101)][_0x2de34f(0xf7)][_0x2de34f(0x10a)](_0x3c63f8);}const _0x284cd4=this[_0x2de34f(0x125)](_0x164583,!0x1);if(_0x284cd4){const _0x1a7311=this[_0x2de34f(0xf5)](_0x284cd4),_0x1a30c2=_0x1f6615(_0x2de34f(0xfe),_0x1a7311,_0x38602b);if(_0x1a30c2)return[_0x1a30c2,_0x2de34f(0x10f)];this[_0x2de34f(0x101)][_0x2de34f(0xf7)][_0x2de34f(0x10a)](_0x1a7311);}return _0x4602d1?_0x164583[_0x2de34f(0x120)]?this[_0x2de34f(0xf8)](_0x164583,_0x38602b):[_0x38602b[_0x2de34f(0xe3)][_0x38602b[_0x2de34f(0xe3)][_0x2de34f(0x102)]-0x1],_0x2de34f(0x100)]:[_0x38602b[_0x2de34f(0xe3)][0x0],_0x2de34f(0x10f)];}[_0x22d73f(0xf8)](_0x1ef20d,_0x4478cd){const _0x143cb1=_0x22d73f,_0x376f29=[],_0x488230=this[_0x143cb1(0xe4)](_0x1ef20d,!0x0);if(_0x488230){const _0x2da409=this[_0x143cb1(0xf5)](_0x488230),_0x492ffc=_0x1f6615(_0x143cb1(0xfe),_0x2da409,_0x4478cd);_0x492ffc&&_0x376f29[_0x143cb1(0x10a)]([_0x492ffc,_0x143cb1(0x100)]);}const _0x343699=this[_0x143cb1(0x125)](_0x1ef20d,!0x0);if(_0x343699){const _0x225b14=this[_0x143cb1(0xf5)](_0x343699),_0x5b9638=_0x1f6615(_0x143cb1(0xfe),_0x225b14,_0x4478cd);_0x5b9638&&_0x376f29[_0x143cb1(0x10a)]([_0x5b9638,_0x143cb1(0x10f)]);}if(_0x376f29[_0x143cb1(0x102)]>0x1)return _0xe647c8(_0x376f29[0x0][0x0])<=_0xe647c8(_0x376f29[0x1][0x0])?_0x376f29[0x0]:_0x376f29[0x1];return 0x1===_0x376f29[_0x143cb1(0x102)]?_0x376f29[0x0]:[_0x4478cd[_0x143cb1(0x112)],_0x143cb1(0x100)];}[_0x22d73f(0x125)](_0x26947b,_0x4687cf){const _0x24b158=_0x22d73f;let _0x5d5da1=_0x26947b[_0x24b158(0x120)],_0x2b1513=null,_0x4c7453=!0x1;for(;_0x5d5da1;){if(_0x79abfe(_0x5d5da1)){if(this[_0x24b158(0xee)](_0x5d5da1)&&(_0x2b1513=_0x5d5da1),this[_0x24b158(0xe8)](_0x5d5da1)&&_0x4687cf&&!_0x4c7453){_0x4c7453=!0x0,_0x5d5da1=_0x5d5da1[_0x24b158(0x120)];continue;}break;}const _0x3c581d=_0x2cd3c8(_0x5d5da1,_0x24b158(0xfe));if(_0x3c581d&&_0x24b158(0xfc)!==_0x3c581d&&this[_0x24b158(0x11b)][_0x24b158(0xff)](_0x3c581d)){_0x2b1513=_0x5d5da1;break;}_0x5d5da1=_0x5d5da1[_0x24b158(0x120)];}return _0x2b1513;}[_0x22d73f(0xe4)](_0x4ae223,_0x5f5783){const _0x23f2fe=_0x22d73f;let _0x5599a4=_0x4ae223[_0x23f2fe(0xed)],_0x4b9cc1=null,_0xd930ae=!0x1;for(;_0x5599a4;){if(_0x79abfe(_0x5599a4)){if(this[_0x23f2fe(0xee)](_0x5599a4)&&(_0x4b9cc1=_0x5599a4),this[_0x23f2fe(0xe8)](_0x5599a4)&&_0x5f5783&&!_0xd930ae){_0xd930ae=!0x0,_0x5599a4=_0x5599a4[_0x23f2fe(0xed)];continue;}break;}const _0xff51ab=_0x2cd3c8(_0x5599a4,_0x23f2fe(0xfe));if(_0xff51ab&&_0x23f2fe(0xfc)!==_0xff51ab&&this[_0x23f2fe(0x11b)][_0x23f2fe(0xff)](_0xff51ab)){_0x4b9cc1=_0x5599a4;break;}_0x5599a4=_0x5599a4[_0x23f2fe(0xed)];}return _0x4b9cc1;}[_0x22d73f(0x115)](_0x4714a0){const _0x1463c3=_0x22d73f;_0x3ad00b(_0x4714a0)&&_0x510f01(_0x1463c3(0xfe),null,_0x4714a0)[_0x1463c3(0x10c)](_0x289fd7=>{const _0x55a539=_0x1463c3;if(this[_0x55a539(0x124)](_0x289fd7)&&!this[_0x55a539(0xf0)](_0x289fd7)){const _0x473a50=_0x2cd3c8(_0x289fd7,_0x55a539(0xfe));_0x23533b(_0x289fd7,_0x55a539(0x105),_0x473a50),_0x23533b(_0x289fd7,_0x55a539(0xfe),null);}});}[_0x22d73f(0xf5)](_0x420293){const _0x17de13=_0x22d73f;if(!_0x420293)return null;if(_0x3ad00b(_0x420293))return _0x2cd3c8(_0x420293,_0x17de13(0xfe));if(_0x79abfe(_0x420293)){const _0x2fb1bb=_0x362d18(_0x420293)[_0x17de13(0xf4)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2fb1bb&&_0x2fb1bb[0x1])return _0x2fb1bb[0x1];}return null;}[_0x22d73f(0xe1)](_0x2d88ba){const _0x21cc41=_0x22d73f;if(_0x79abfe(_0x2d88ba)){const _0x5f3b77=_0x362d18(_0x2d88ba)[_0x21cc41(0xf4)](/removed[\s*-]data-id="([^"]+)"/);_0x5f3b77&&_0x5f3b77[0x1]&&this[_0x21cc41(0x101)][_0x21cc41(0x118)][_0x21cc41(0x10a)](_0x5f3b77[0x1]);}}[_0x22d73f(0x10d)](_0xe66b99){const _0x27d02f=_0x22d73f;return this[_0x27d02f(0x124)](_0xe66b99)?_0x2cd3c8(_0xe66b99,_0x27d02f(0xfe)):this[_0x27d02f(0xfb)]();}[_0x22d73f(0x11f)](_0xe3982a){const _0x529e48=_0x22d73f;_0x555da4(_0xe3982a)[_0x529e48(0x108)](_0x1a0706=>this[_0x529e48(0xee)](_0x1a0706)||this[_0x529e48(0xe8)](_0x1a0706))[_0x529e48(0x10c)](_0x2f23eb=>{_0xc6f657(_0x2f23eb);});}[_0x22d73f(0x10b)](_0x43bbd5){const _0x2bdc47=_0x22d73f,_0x12432b=_0x43bbd5[_0x2bdc47(0xe3)],_0x1b9382=_0x12432b[_0x12432b[_0x2bdc47(0x102)]-0x1];_0x1b9382&&_0x3ad00b(_0x1b9382)&&_0x23533b(_0x1b9382,_0x2bdc47(0x113),_0x2bdc47(0x119));}[_0x22d73f(0xea)](_0x420b93,_0x49d036){const _0x4a3fba=_0x22d73f,_0x5a20a2=_0x1f6615(_0x4a3fba(0x113),_0x4a3fba(0x119),_0x420b93);if(!_0x5a20a2)return;const _0x5e1502=_0x1f8493(_0x5a20a2)[_0x4a3fba(0xf6)](0x0,-0x1),_0x45d72d=_0x5e1502[_0x4a3fba(0x102)];let _0x295055=_0x5a20a2;if(_0x45d72d>_0x49d036){let _0x1ca684=_0x45d72d,_0x78afbb=null;for(;_0x1ca684>_0x49d036&&_0x1ca684>=0x0;)_0x1ca684--,_0x78afbb=_0x5e1502[_0x1ca684];_0x78afbb&&(_0x295055=_0x78afbb,_0x23533b(_0x5a20a2,_0x4a3fba(0x113),null),_0x23533b(_0x78afbb,_0x4a3fba(0x113),_0x4a3fba(0x119)));}else{if(_0x45d72d<_0x49d036){let _0x4c54b9=_0x45d72d,_0x40a603=_0x5a20a2;for(;_0x4c54b9<_0x49d036;){const _0xc3ee1d=_0x40a603[_0x4a3fba(0xe3)][_0x4a3fba(0x108)](_0x2e2e29=>_0x3ad00b(_0x2e2e29));if(0x0===_0xc3ee1d[_0x4a3fba(0x102)])break;_0x4c54b9++,_0x40a603=_0xc3ee1d[_0xc3ee1d[_0x4a3fba(0x102)]-0x1];}_0x40a603&&(_0x295055=_0x40a603,_0x23533b(_0x5a20a2,_0x4a3fba(0x113),null),_0x23533b(_0x40a603,_0x4a3fba(0x113),_0x4a3fba(0x119)));}}let _0x466fb2=_0x295055;for(;_0x466fb2;){for(;_0x466fb2[_0x4a3fba(0x120)];)_0x466fb2=_0x466fb2[_0x4a3fba(0x120)],_0x3ad00b(_0x466fb2)&&_0x23533b(_0x466fb2,_0x4a3fba(0x113),_0x4a3fba(0x119));_0x466fb2=_0x466fb2[_0x4a3fba(0x107)];}}[_0x22d73f(0xf2)](_0x4b5917){const _0x4be301=_0x22d73f;return Boolean(_0x4be301(0xfc)===_0x2cd3c8(_0x4b5917,_0x4be301(0xfe)));}[_0x22d73f(0x124)](_0x563586){const _0x1d34fd=_0x22d73f;return Boolean((_0x2cd3c8(_0x563586,_0x1d34fd(0xfe))||'')[_0x1d34fd(0x102)]>0x0&&_0x1d34fd(0xfc)!==_0x2cd3c8(_0x563586,_0x1d34fd(0xfe)));}[_0x22d73f(0xee)](_0x602f4f){const _0x16ed61=_0x22d73f;return!!_0x602f4f&&Boolean(_0x79abfe(_0x602f4f)&&_0x362d18(_0x602f4f)[_0x16ed61(0xf4)](/removed[\s*-]data-id="[^"]+"/));}[_0x22d73f(0xf0)](_0x177ac0){const _0x4bea32=_0x22d73f;let _0x1195ec=_0x177ac0[_0x4bea32(0x107)];for(;_0x1195ec;){if(_0x2cd3c8(_0x1195ec,_0x4bea32(0x105)))return!0x0;_0x1195ec=_0x1195ec[_0x4bea32(0x107)];}return!0x1;}[_0x22d73f(0xe8)](_0x1a70e3){const _0x39ce2d=_0x22d73f;return Boolean(_0x79abfe(_0x1a70e3)&&_0x362d18(_0x1a70e3)[_0x39ce2d(0xf4)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5d21(_0x2a1d25,_0xfd222d){const _0xef4b9d=_0xef4b();return _0x5d21=function(_0x5d21b0,_0x40c61e){_0x5d21b0=_0x5d21b0-0xe1;let _0x2399cf=_0xef4b9d[_0x5d21b0];return _0x2399cf;},_0x5d21(_0x2a1d25,_0xfd222d);}function _0xef4b(){const _0xa83e32=['map','1766916VOYrPg','_removeSpecialComments','nextSibling','cloneNode','markUnstableElementsDepth','_insertNodes','_isExistingNode','_findNextElementWithDataId','_storeDeletedElementIds','2651428rywDIz','childNodes','_findPrevElementWithDataId','splice','5552190LmxJFo','_findReferenceNode','_isExistingContentComment','replaceRemovedWith','_markUnstableElements','lastTouchedId','modifiedIds','previousSibling','_isDelNode','cutAfterLastChange','_hasWrappedParent','includes','_isNewNode','2801040WTDAon','match','_getNodeDataId','slice','invalidIds','_findFallbackReferenceNode','122152eWUuFG','afterbegin','_generateUid','new-element','newIds','data-id','has','afterend','_touchedNodesState','length','2574180NTkBGC','markUnstableElements','data-wrapped-id','2uMzNzU','parentNode','filter','trim','push','_markLastTagElementUnstable','forEach','_getUid','from','beforebegin','reverse','nodeType','lastChild','data-unstable','_replaceNode','_markWrappedElements','942431AaYrHA','merge','removedIds','true','data-removed','_existingDataIds','indexOf'];_0xef4b=function(){return _0xa83e32;};return _0xef4b();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x2e04d9=_0xab6e;(function(_0xbec749,_0x9243d1){const _0x4ab7f5=_0xab6e,_0x49a665=_0xbec749();while(!![]){try{const _0x96b6f8=parseInt(_0x4ab7f5(0x12e))/0x1+-parseInt(_0x4ab7f5(0x129))/0x2*(-parseInt(_0x4ab7f5(0x121))/0x3)+parseInt(_0x4ab7f5(0x123))/0x4*(-parseInt(_0x4ab7f5(0x132))/0x5)+-parseInt(_0x4ab7f5(0x12f))/0x6+parseInt(_0x4ab7f5(0x134))/0x7*(parseInt(_0x4ab7f5(0x133))/0x8)+parseInt(_0x4ab7f5(0x131))/0x9+-parseInt(_0x4ab7f5(0x130))/0xa*(parseInt(_0x4ab7f5(0x128))/0xb);if(_0x96b6f8===_0x9243d1)break;else _0x49a665['push'](_0x49a665['shift']());}catch(_0x266e29){_0x49a665['push'](_0x49a665['shift']());}}}(_0x171b,0xc700c));import{ObservableMixin as _0xc98472}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x58d2d0}from'@ckeditor/ckeditor5-markdown-gfm';function _0x171b(){const _0x404a10=['parseAndNormalizeHTML','</dummy>','1730069zLNLwJ','1471540tHdWkX','replace','<dummy>','_parseHTML','_m2html','1224954GveFfd','2802024UzvBdU','70JTmDKP','2129481KJrcjG','5258845xBTYfg','312EAvIds','222117RoVRaj','3uPuCVv','parse','4tCPUjX','children','convertMarkdownToHTML'];_0x171b=function(){return _0x404a10;};return _0x171b();}function _0xab6e(_0x3a0095,_0x17c74a){const _0x171bdd=_0x171b();return _0xab6e=function(_0xab6e9d,_0x2bf2a8){_0xab6e9d=_0xab6e9d-0x121;let _0x5d258b=_0x171bdd[_0xab6e9d];return _0x5d258b;},_0xab6e(_0x3a0095,_0x17c74a);}import{parse as _0x3a0d01}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xc98472(){[_0x2e04d9(0x12d)];constructor(){const _0x423c94=_0x2e04d9;super(),this[_0x423c94(0x12d)]=new _0x58d2d0();}[_0x2e04d9(0x125)](_0x38a920){const _0x2de634=_0x2e04d9,_0x2cb3a9=this[_0x2de634(0x12d)][_0x2de634(0x122)](_0x38a920);return this[_0x2de634(0x126)](_0x2cb3a9);}[_0x2e04d9(0x126)](_0x1600aa){const _0x4e4f44=_0x2e04d9;return this[_0x4e4f44(0x12c)](_0x1600aa);}[_0x2e04d9(0x12c)](_0x1a55cc){const _0x1e32b4=_0x2e04d9,_0x5c8883=_0x1a55cc[_0x1e32b4(0x12a)](/^\t+/gm,'\x20')[_0x1e32b4(0x12a)](/\n*/g,'')[_0x1e32b4(0x12a)](/\s+/g,'\x20')[_0x1e32b4(0x12a)](/<[^>]*?$/g,''),_0x5eb486=_0x3a0d01(_0x1e32b4(0x12b)+_0x5c8883+_0x1e32b4(0x127));return _0x5eb486[_0x1e32b4(0x124)]=_0x5eb486[_0x1e32b4(0x124)][0x0][_0x1e32b4(0x124)],_0x5eb486;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2d1549,_0x3e184d){var _0x1019d4=_0x3e00,_0x278b5d=_0x2d1549();while(!![]){try{var _0x153469=parseInt(_0x1019d4(0x103))/0x1+parseInt(_0x1019d4(0xfe))/0x2*(-parseInt(_0x1019d4(0x100))/0x3)+-parseInt(_0x1019d4(0x104))/0x4*(parseInt(_0x1019d4(0xfd))/0x5)+parseInt(_0x1019d4(0x102))/0x6+-parseInt(_0x1019d4(0xfc))/0x7+-parseInt(_0x1019d4(0xff))/0x8+parseInt(_0x1019d4(0xf9))/0x9;if(_0x153469===_0x3e184d)break;else _0x278b5d['push'](_0x278b5d['shift']());}catch(_0x4b624e){_0x278b5d['push'](_0x278b5d['shift']());}}}(_0x23cf,0x91e6d));import{View as _0x10ff07}from'ckeditor5/src/ui.js';import{getTranslation as _0x14b81e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x10ff07{constructor(_0x110449){var _0x547bd1=_0x3e00;super(_0x110449),this[_0x547bd1(0xfa)]({'tag':_0x547bd1(0x101),'attributes':{'class':['ck',_0x547bd1(0xfb)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x547bd1(0x105)]},'children':[{'text':_0x14b81e(_0x110449,_0x547bd1(0x106))}]}]});}}function _0x3e00(_0x22b49e,_0x1e27b7){var _0x23cfd1=_0x23cf();return _0x3e00=function(_0x3e000e,_0x48a25e){_0x3e000e=_0x3e000e-0xf9;var _0x4f5182=_0x23cfd1[_0x3e000e];return _0x4f5182;},_0x3e00(_0x22b49e,_0x1e27b7);}function _0x23cf(){var _0x4fb4db=['1068043igGFEE','1240qulbbH','ck-ai-disclaimer__content','AI_DISCLAIMER_TEXT','13215996DuMqBg','setTemplate','ck-ai-disclaimer','4593260phouuX','17590UdAbTd','206eELIna','2012752XQnEWY','22893SlUcKi','div','5072838iraplA'];_0x23cf=function(){return _0x4fb4db;};return _0x23cf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x328094=_0x380f;(function(_0x28ecba,_0x4f1b3f){const _0x2fe8ba=_0x380f,_0x24b7eb=_0x28ecba();while(!![]){try{const _0x22b356=-parseInt(_0x2fe8ba(0xfe))/0x1*(parseInt(_0x2fe8ba(0xef))/0x2)+-parseInt(_0x2fe8ba(0x100))/0x3*(parseInt(_0x2fe8ba(0xec))/0x4)+parseInt(_0x2fe8ba(0x103))/0x5+parseInt(_0x2fe8ba(0x101))/0x6+-parseInt(_0x2fe8ba(0xe9))/0x7+parseInt(_0x2fe8ba(0xe7))/0x8+parseInt(_0x2fe8ba(0xe6))/0x9;if(_0x22b356===_0x4f1b3f)break;else _0x24b7eb['push'](_0x24b7eb['shift']());}catch(_0x5f4cee){_0x24b7eb['push'](_0x24b7eb['shift']());}}}(_0x139e,0xcce55));import{View as _0x4392af}from'ckeditor5/src/ui.js';function _0x380f(_0x503ea1,_0x372182){const _0x139e00=_0x139e();return _0x380f=function(_0x380f46,_0x54c956){_0x380f46=_0x380f46-0xe0;let _0x5f5af7=_0x139e00[_0x380f46];return _0x5f5af7;},_0x380f(_0x503ea1,_0x372182);}function _0x139e(){const _0x5ee15c=['tag','_createSkeletonItems','width:\x20','63478QoCPnR','ck-ai-skeleton__item','165pQIdZM','3860328YkQeGN','align','1924205fdsADu','140px','24px','right','width','100%','ck-ai-skeleton','128px','left','class','72px','14273991YVoYwJ','4572184MLBHiW','attributes','1608369GnIAVQ','250px','fill','121628YwmvEJ','150px','map','14QPEoKt','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','height','div','88px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','44px','setTemplate',';\x20height:\x20','center','40px'];_0x139e=function(){return _0x5ee15c;};return _0x139e();}export class AISkeletonView extends _0x4392af{constructor(_0x2a3e3f,_0x32da1e){const _0x23d908=_0x380f;super(_0x2a3e3f),this[_0x23d908(0xf7)]({'tag':_0x23d908(0xf3),'attributes':{'class':['ck',_0x23d908(0xe1)]},'children':this[_0x23d908(0xfc)](_0x32da1e)});}[_0x328094(0xfc)](_0xf52c80){const _0x846d9b=_0x328094,_0x426bfa=['ck',_0x846d9b(0xff)];return _0xf52c80[_0x846d9b(0xee)](_0x32268=>{const _0x4d3410=_0x846d9b;let _0x37b581='';switch(_0x32268[_0x4d3410(0xe8)][_0x4d3410(0x102)]){case _0x4d3410(0x106):_0x37b581=_0x4d3410(0xf1);break;case _0x4d3410(0xf9):_0x37b581=_0x4d3410(0xf5);break;case _0x4d3410(0xe3):_0x37b581=_0x4d3410(0xf0);}return{'tag':_0x32268[_0x4d3410(0xfb)],'attributes':{'class':[..._0x426bfa,_0x32268[_0x4d3410(0xe8)][_0x4d3410(0xe4)]?_0x32268[_0x4d3410(0xe8)][_0x4d3410(0xe4)]:''],'style':_0x4d3410(0xfd)+_0x32268[_0x4d3410(0xe8)][_0x4d3410(0x107)]+_0x4d3410(0xf8)+_0x32268[_0x4d3410(0xe8)][_0x4d3410(0xf2)]+';'+_0x37b581}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe0),'height':_0x328094(0xe5),'align':_0x328094(0x106)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xea),'height':_0x328094(0xfa),'align':_0x328094(0x106)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe0),'height':_0x328094(0xf4),'align':_0x328094(0x106)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xed),'height':_0x328094(0xfa),'align':_0x328094(0x106)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe0),'height':_0x328094(0x104),'align':_0x328094(0x106)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xea),'height':_0x328094(0xfa),'align':_0x328094(0x106)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe0),'height':_0x328094(0xf4),'align':_0x328094(0x106)}}],'aiHistory':ta(0x5,_0x328094(0xe0),_0x328094(0xf6),_0x328094(0x106)),'aiChatResources':ta(0x8,_0x328094(0xe0),_0x328094(0x105),_0x328094(0x106)),'aiReviewChecks':[{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe2),'height':_0x328094(0x105),'align':_0x328094(0xe3)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe0),'height':_0x328094(0x105),'align':_0x328094(0xe3)}},{'tag':_0x328094(0xf3),'attributes':{'width':_0x328094(0xe2),'height':_0x328094(0x105),'align':_0x328094(0xe3)}}]};function ta(_0xa668d0,_0x552abe,_0x24547,_0x12c353){const _0x1a91a3=_0x328094;return new Array(_0xa668d0)[_0x1a91a3(0xeb)](null)[_0x1a91a3(0xee)](()=>({'tag':_0x1a91a3(0xf3),'attributes':{'width':_0x552abe,'height':_0x24547,'align':_0x12c353}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x43d2(_0x196f6e,_0x45bd2c){const _0x377600=_0x3776();return _0x43d2=function(_0x43d260,_0x4b70df){_0x43d260=_0x43d260-0x14a;let _0xa62445=_0x377600[_0x43d260];return _0xa62445;},_0x43d2(_0x196f6e,_0x45bd2c);}function _0x3776(){const _0x1ec7ca=['525593oYAtBO','span','extendTemplate','ck-ai-spinner_','9140124sIGPGk','20336505HQomLG','ck-ai-spinner','1625748VaHFSw','461895bUyDpt','61096ljLfWd','1014624GnHSJt'];_0x3776=function(){return _0x1ec7ca;};return _0x3776();}(function(_0x2f168b,_0x2de970){const _0xc6b9ea=_0x43d2,_0x32604f=_0x2f168b();while(!![]){try{const _0x32b2de=-parseInt(_0xc6b9ea(0x151))/0x1+parseInt(_0xc6b9ea(0x150))/0x2+-parseInt(_0xc6b9ea(0x14d))/0x3+parseInt(_0xc6b9ea(0x14f))/0x4+parseInt(_0xc6b9ea(0x14e))/0x5+-parseInt(_0xc6b9ea(0x14a))/0x6+parseInt(_0xc6b9ea(0x14b))/0x7;if(_0x32b2de===_0x2de970)break;else _0x32604f['push'](_0x32604f['shift']());}catch(_0x1e3771){_0x32604f['push'](_0x32604f['shift']());}}}(_0x3776,0xe2e25));import{SpinnerView as _0x43374c}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x43374c{constructor(_0x3b4c3c=void 0x0){const _0xbc8f5f=_0x43d2;super();const _0x42a1f8=_0x3b4c3c?_0xbc8f5f(0x154)+_0x3b4c3c:'';this[_0xbc8f5f(0x153)]({'tag':_0xbc8f5f(0x152),'attributes':{'class':[_0xbc8f5f(0x14c),_0x42a1f8]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x14cf(){const _0x1b84f2=['4427760ntLtLe','dislike','_config','showDislike','isEnabled','customView','6966WLIUSv','bind','toggleShowChanges','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','dislikeButton','children','showChangesButton','copyButton','showChanges','set','showCopy','ck-ai-mini-toolbar-copy-button__check-mark','_setupRatingButtons','AI_SUGGESTION_BUTTON_SHOW_CHANGES','extendTemplate','109448wjPwFn','locale','execute','fire','items','likeButton','4330088zkAGUs','like','_setupShowChangesButton','ck-ai-mini-toolbar\x20ck-hidden','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar-copy-button','2007364LcFCuG','36duSyOq','AI_MINI_TOOLBAR_DISLIKE','full','ck-ai-mini-toolbar','isOn','580BuzGhG','_setupCopyButton','showLike','class','1vYFAMW','add','6036700OMyZog','addMany','length','isLoading','AI_MINI_TOOLBAR_LIKE','1907835MGKIqp'];_0x14cf=function(){return _0x1b84f2;};return _0x14cf();}function _0x44da(_0xf616a9,_0x57886d){const _0x14cf55=_0x14cf();return _0x44da=function(_0x44da68,_0x3bf87f){_0x44da68=_0x44da68-0x178;let _0x3e8ee4=_0x14cf55[_0x44da68];return _0x3e8ee4;},_0x44da(_0xf616a9,_0x57886d);}const _0x548e22=_0x44da;(function(_0x42940a,_0x603ba3){const _0x23a7c1=_0x44da,_0x1aa80e=_0x42940a();while(!![]){try{const _0x485143=parseInt(_0x23a7c1(0x18a))/0x1*(-parseInt(_0x23a7c1(0x180))/0x2)+-parseInt(_0x23a7c1(0x198))/0x3*(-parseInt(_0x23a7c1(0x186))/0x4)+parseInt(_0x23a7c1(0x191))/0x5+parseInt(_0x23a7c1(0x192))/0x6+parseInt(_0x23a7c1(0x17a))/0x7+-parseInt(_0x23a7c1(0x1a7))/0x8*(-parseInt(_0x23a7c1(0x181))/0x9)+-parseInt(_0x23a7c1(0x18c))/0xa;if(_0x485143===_0x603ba3)break;else _0x1aa80e['push'](_0x1aa80e['shift']());}catch(_0x45dd26){_0x1aa80e['push'](_0x1aa80e['shift']());}}}(_0x14cf,0x7f7bd));import{ButtonView as _0x2fce27,IconView as _0x13a4a,ToolbarView as _0x51f8cf}from'ckeditor5/src/ui.js';import{IconCheck as _0x26c615,IconCopy as _0x4a7def,IconShowChangesOff as _0x361dbc,IconShowChangesOn as _0x3179c2,IconThumbDown as _0x10c465,IconThumbUp as _0x23ee3b}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5a2009}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x51f8cf{[_0x548e22(0x19f)];[_0x548e22(0x179)];[_0x548e22(0x19c)];[_0x548e22(0x19e)];[_0x548e22(0x194)];constructor(_0x5b6b8e,_0x5915a3={},_0x535ceb){const _0x160137=_0x548e22;super(_0x5b6b8e),this[_0x160137(0x1a1)](_0x160137(0x18f),!0x1),this[_0x160137(0x194)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5915a3};const _0x1c9982=!(this[_0x160137(0x194)][_0x160137(0x1a2)]||this[_0x160137(0x194)][_0x160137(0x1a0)]||this[_0x160137(0x194)][_0x160137(0x188)]||this[_0x160137(0x194)][_0x160137(0x195)]||this[_0x160137(0x194)][_0x160137(0x197)]?.[_0x160137(0x18e)]);this[_0x160137(0x189)]=_0x1c9982?_0x160137(0x17d):_0x160137(0x184),this[_0x160137(0x194)][_0x160137(0x1a2)]&&(this[_0x160137(0x187)](),this[_0x160137(0x178)][_0x160137(0x18b)](this[_0x160137(0x19f)])),this[_0x160137(0x194)][_0x160137(0x1a0)]&&(this[_0x160137(0x17c)](_0x535ceb),this[_0x160137(0x178)][_0x160137(0x18b)](this[_0x160137(0x19e)])),this[_0x160137(0x1a4)](),this[_0x160137(0x194)][_0x160137(0x188)]&&this[_0x160137(0x178)][_0x160137(0x18b)](this[_0x160137(0x179)]),this[_0x160137(0x194)][_0x160137(0x195)]&&this[_0x160137(0x178)][_0x160137(0x18b)](this[_0x160137(0x19c)]),this[_0x160137(0x194)][_0x160137(0x197)]&&this[_0x160137(0x178)][_0x160137(0x18d)](this[_0x160137(0x194)][_0x160137(0x197)]);}[_0x548e22(0x1a4)](){const _0x220ac1=_0x548e22;this[_0x220ac1(0x179)]=new _0x2fce27(this[_0x220ac1(0x1a8)]),this[_0x220ac1(0x179)][_0x220ac1(0x1a1)]({'icon':_0x23ee3b,'label':_0x5a2009(this[_0x220ac1(0x1a8)],_0x220ac1(0x190)),'tooltip':!0x0}),this[_0x220ac1(0x179)][_0x220ac1(0x199)](_0x220ac1(0x196))['to'](this,_0x220ac1(0x18f),_0x11174e=>!_0x11174e),this[_0x220ac1(0x179)]['on'](_0x220ac1(0x1a9),()=>{const _0x4860e5=_0x220ac1;this[_0x4860e5(0x1aa)](_0x4860e5(0x17b));}),this[_0x220ac1(0x19c)]=new _0x2fce27(this[_0x220ac1(0x1a8)]),this[_0x220ac1(0x19c)][_0x220ac1(0x1a1)]({'icon':_0x10c465,'label':_0x5a2009(this[_0x220ac1(0x1a8)],_0x220ac1(0x182)),'tooltip':!0x0}),this[_0x220ac1(0x19c)][_0x220ac1(0x199)](_0x220ac1(0x196))['to'](this,_0x220ac1(0x18f),_0xe4cf0d=>!_0xe4cf0d),this[_0x220ac1(0x19c)]['on'](_0x220ac1(0x1a9),()=>{const _0xa5252b=_0x220ac1;this[_0xa5252b(0x1aa)](_0xa5252b(0x193));});}[_0x548e22(0x187)](){const _0x7b4912=_0x548e22;this[_0x7b4912(0x19f)]=new _0x2fce27(this[_0x7b4912(0x1a8)]),this[_0x7b4912(0x19f)][_0x7b4912(0x1a1)]({'icon':_0x4a7def,'label':_0x5a2009(this[_0x7b4912(0x1a8)],_0x7b4912(0x17e)),'class':_0x7b4912(0x17f),'tooltip':!0x0}),this[_0x7b4912(0x19f)][_0x7b4912(0x199)](_0x7b4912(0x196))['to'](this,_0x7b4912(0x18f),_0x15bb51=>!_0x15bb51);const _0x6a5fe=new _0x13a4a();_0x6a5fe[_0x7b4912(0x1a1)]({'content':_0x26c615}),_0x6a5fe[_0x7b4912(0x1a6)]({'attributes':{'class':[_0x7b4912(0x1a3)]}}),this[_0x7b4912(0x19f)]['on'](_0x7b4912(0x1a9),()=>{const _0x1d8300=_0x7b4912;this[_0x1d8300(0x19f)][_0x1d8300(0x189)]=_0x1d8300(0x19b),setTimeout(()=>{const _0x253176=_0x1d8300;this[_0x253176(0x19f)][_0x253176(0x189)]=_0x253176(0x17f);},0x7d0);}),this[_0x7b4912(0x19f)][_0x7b4912(0x19d)][_0x7b4912(0x18b)](_0x6a5fe);}[_0x548e22(0x17c)](_0x4ed772){const _0x2f60a1=_0x548e22;this[_0x2f60a1(0x19e)]=new _0x2fce27(this[_0x2f60a1(0x1a8)]),this[_0x2f60a1(0x19e)][_0x2f60a1(0x1a1)]({'icon':_0x361dbc,'label':_0x5a2009(this[_0x2f60a1(0x1a8)],_0x2f60a1(0x1a5)),'withText':_0x2f60a1(0x183)==this[_0x2f60a1(0x194)][_0x2f60a1(0x1a0)],'tooltip':_0x2f60a1(0x183)!=this[_0x2f60a1(0x194)][_0x2f60a1(0x1a0)],'isOn':_0x4ed772}),this[_0x2f60a1(0x19e)][_0x2f60a1(0x199)](_0x2f60a1(0x196))['to'](this,_0x2f60a1(0x18f),_0xb476e7=>!_0xb476e7),this[_0x2f60a1(0x19e)]['on'](_0x2f60a1(0x1a9),()=>{const _0x2847f3=_0x2f60a1,_0x1bba66=!this[_0x2847f3(0x19e)][_0x2847f3(0x185)];this[_0x2847f3(0x19e)][_0x2847f3(0x1a1)]({'isOn':_0x1bba66,'icon':_0x1bba66?_0x3179c2:_0x361dbc}),this[_0x2847f3(0x1aa)](_0x2847f3(0x19a),_0x1bba66);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51b509=_0x241f;function _0x2172(){const _0x52e3cc=['14003143qZSDDq','addEventListener','index','partsCount','AI_SUGGESTION_EMPTY_PART_WARNING','AI_SUGGESTION_NO_PARTS_WARNING','from','40208kIkwIc','setContent','forEach','filter','_showUnchangedParts','length','updateContentParts','getPartView','partDefinition','createCollection','ck-ai-suggestion__body','10046eiWijP','_areActionsDisabled','288630MIFKMG','23mwEpot','setTemplate','markAsDone','empty-parts-warning','_availableActions','7042100xqfgxe','updatePartState','enqueue','hasChanges','_children','isVisible','pending','_emptyPartsWarningView','set','locale','abort','find','2225091UWRgdV','639dauslF','add','28Hwpzyy','_cachedContentParts','updateContent','hasPendingParts','push','_updateContentPartsPromiseQueue','warning','3111003RUGZEX','div','state','delegate','6Itggft','first','some','findIndex','hasNonEmptyParts','toggleHeader','queueEmptyPromise','ck-ai-suggestion__body__content-parts'];_0x2172=function(){return _0x52e3cc;};return _0x2172();}(function(_0x5106ce,_0x2206a6){const _0x5c6b2e=_0x241f,_0x4bf7c1=_0x5106ce();while(!![]){try{const _0x20956c=parseInt(_0x5c6b2e(0x1fb))/0x1*(parseInt(_0x5c6b2e(0x1f8))/0x2)+-parseInt(_0x5c6b2e(0x20c))/0x3+-parseInt(_0x5c6b2e(0x20f))/0x4*(-parseInt(_0x5c6b2e(0x1fa))/0x5)+parseInt(_0x5c6b2e(0x1de))/0x6*(parseInt(_0x5c6b2e(0x216))/0x7)+parseInt(_0x5c6b2e(0x1ed))/0x8*(-parseInt(_0x5c6b2e(0x20d))/0x9)+-parseInt(_0x5c6b2e(0x200))/0xa+parseInt(_0x5c6b2e(0x1e6))/0xb;if(_0x20956c===_0x2206a6)break;else _0x4bf7c1['push'](_0x4bf7c1['shift']());}catch(_0x294796){_0x4bf7c1['push'](_0x4bf7c1['shift']());}}}(_0x2172,0x6a07c));function _0x241f(_0x2ed16f,_0x29584a){const _0x217211=_0x2172();return _0x241f=function(_0x241f83,_0x34cc8f){_0x241f83=_0x241f83-0x1dd;let _0x4b6598=_0x217211[_0x241f83];return _0x4b6598;},_0x241f(_0x2ed16f,_0x29584a);}import{View as _0xec6198}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x22b186}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x232536}from'../../utils/eventnames.js';import{PromiseQueue as _0xe5a898}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2edb0e}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x165ad1}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0xec6198{[_0x51b509(0x204)];[_0x51b509(0x1f9)];[_0x51b509(0x1f1)];[_0x51b509(0x214)];[_0x51b509(0x207)];[_0x51b509(0x1ff)];[_0x51b509(0x210)]=[];constructor(_0x5fae44,_0x56d12b){const _0xbed00e=_0x51b509;super(_0x5fae44);const {areActionsDisabled:_0x1e2239,showUnchangedParts:_0xb4cfac,availableActions:_0xb0e808}=_0x56d12b;this[_0xbed00e(0x1f9)]=_0x1e2239,this[_0xbed00e(0x1f1)]=_0xb4cfac,this[_0xbed00e(0x1ff)]=_0xb0e808,this[_0xbed00e(0x208)](_0xbed00e(0x212),!0x1),this[_0xbed00e(0x204)]=this[_0xbed00e(0x1f6)](),this[_0xbed00e(0x214)]=new _0xe5a898(),this[_0xbed00e(0x207)]=new _0x2edb0e({'id':_0xbed00e(0x1fe),'initialContent':_0x165ad1(_0x5fae44,_0xbed00e(0x1ea)),'level':_0xbed00e(0x215)}),this[_0xbed00e(0x207)][_0xbed00e(0x205)]=!0x1,this[_0xbed00e(0x1fc)]({'tag':_0xbed00e(0x217),'attributes':{'class':['ck',_0xbed00e(0x1f7)]},'children':[{'tag':_0xbed00e(0x217),'attributes':{'class':['ck',_0xbed00e(0x1e5)]},'children':this[_0xbed00e(0x204)]},this[_0xbed00e(0x207)]]});}get[_0x51b509(0x1e9)](){const _0x4b0db4=_0x51b509;return this[_0x4b0db4(0x204)][_0x4b0db4(0x1f2)];}async[_0x51b509(0x1f3)]({parts:_0x5e01c2,renderingStrategy:_0x277c81,abortSignal:_0x3f4980}){const _0x158247=_0x51b509;this[_0x158247(0x204)][_0x158247(0x1f2)]?_0x5e01c2[_0x158247(0x1ef)](_0x5ae8ab=>{const _0x689308=_0x158247,_0x4851a2=this[_0x689308(0x210)][_0x689308(0x1e1)](_0x1c0ead=>_0x1c0ead[_0x689308(0x1e8)]==_0x5ae8ab[_0x689308(0x1e8)]);-0x1===_0x4851a2?this[_0x689308(0x210)][_0x689308(0x213)](_0x5ae8ab):this[_0x689308(0x210)][_0x4851a2]=_0x5ae8ab;}):this[_0x158247(0x210)]=_0x5e01c2;for(const _0x45c2c0 of _0x5e01c2[_0x158247(0x1f0)](_0x1f5fe7=>_0x1f5fe7[_0x158247(0x203)]))this[_0x158247(0x214)][_0x158247(0x202)](async _0x19cf54=>{const _0x245b86=_0x158247;let _0x466291=this[_0x245b86(0x1f4)](_0x45c2c0[_0x245b86(0x1e8)]);_0x466291||(_0x466291=new _0x22b186(this[_0x245b86(0x209)],{'part':_0x45c2c0,'uiIndex':this[_0x245b86(0x204)][_0x245b86(0x1f2)]+0x1,'areActionsDisabled':this[_0x245b86(0x1f9)],'availableActions':this[_0x245b86(0x1ff)]}),_0x466291[_0x245b86(0x1dd)](..._0x232536)['to'](this),this[_0x245b86(0x204)][_0x245b86(0x20e)](_0x466291),this[_0x245b86(0x212)]=!0x0),0x2===this[_0x245b86(0x204)][_0x245b86(0x1f2)]&&this[_0x245b86(0x204)][_0x245b86(0x1df)][_0x245b86(0x1e3)](!0x0),_0x466291[_0x245b86(0x1e3)](this[_0x245b86(0x204)][_0x245b86(0x1f2)]>0x1),await _0x466291[_0x245b86(0x211)]({'part':_0x45c2c0,'renderingStrategy':_0x277c81,'showUnchangedParts':this[_0x245b86(0x1f1)],'abortSignal':_0x19cf54});});return _0x3f4980?.[_0x158247(0x1e7)](_0x158247(0x20a),()=>{const _0x5e1dd6=_0x158247;this[_0x5e1dd6(0x214)][_0x5e1dd6(0x20a)]();}),this[_0x158247(0x214)][_0x158247(0x1e4)];}[_0x51b509(0x201)](_0x57b6ca,_0x64a955){const _0x4f4242=_0x51b509,_0x171d39=this[_0x4f4242(0x1f4)](_0x57b6ca);_0x171d39&&(_0x171d39[_0x4f4242(0x218)]=_0x64a955),this[_0x4f4242(0x212)]=_0x4f4242(0x206)==_0x64a955||Array[_0x4f4242(0x1ec)](this[_0x4f4242(0x204)])[_0x4f4242(0x1e0)](_0x2a60bf=>_0x4f4242(0x206)==_0x2a60bf[_0x4f4242(0x218)]);}[_0x51b509(0x1f4)](_0x2aa1c5){const _0x450c2f=_0x51b509;return this[_0x450c2f(0x204)][_0x450c2f(0x20b)](_0x1f97e6=>_0x1f97e6[_0x450c2f(0x1f5)][_0x450c2f(0x1e8)]==_0x2aa1c5)??null;}[_0x51b509(0x1fd)](){const _0x1301b9=_0x51b509;if(!this[_0x1301b9(0x1f1)]){const _0x30e360=!this[_0x1301b9(0x210)][_0x1301b9(0x20b)](({hasChanges:_0x4fc4b5})=>_0x4fc4b5),_0x458827=!!this[_0x1301b9(0x210)][_0x1301b9(0x20b)](({hasChanges:_0x3b47bf})=>!_0x3b47bf);this[_0x1301b9(0x207)][_0x1301b9(0x205)]=0x0==this[_0x1301b9(0x204)][_0x1301b9(0x1f2)]||_0x458827,_0x30e360?this[_0x1301b9(0x207)][_0x1301b9(0x1ee)](_0x165ad1(this[_0x1301b9(0x209)],_0x1301b9(0x1eb))):this[_0x1301b9(0x207)][_0x1301b9(0x1ee)](_0x165ad1(this[_0x1301b9(0x209)],_0x1301b9(0x1ea)));}}get[_0x51b509(0x1e2)](){const _0x2f455f=_0x51b509;return!!this[_0x2f455f(0x204)][_0x2f455f(0x20b)](_0x5bb685=>_0x5bb685[_0x2f455f(0x1f5)][_0x2f455f(0x203)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x14a9f7=_0x5afc;(function(_0x51b03a,_0x4c355b){const _0xc48542=_0x5afc,_0x5d1318=_0x51b03a();while(!![]){try{const _0x55414d=parseInt(_0xc48542(0x241))/0x1*(-parseInt(_0xc48542(0x1f7))/0x2)+parseInt(_0xc48542(0x22a))/0x3*(parseInt(_0xc48542(0x23f))/0x4)+parseInt(_0xc48542(0x22d))/0x5*(-parseInt(_0xc48542(0x209))/0x6)+parseInt(_0xc48542(0x1f4))/0x7*(parseInt(_0xc48542(0x20a))/0x8)+-parseInt(_0xc48542(0x239))/0x9*(-parseInt(_0xc48542(0x20e))/0xa)+parseInt(_0xc48542(0x204))/0xb+parseInt(_0xc48542(0x1fe))/0xc*(-parseInt(_0xc48542(0x23d))/0xd);if(_0x55414d===_0x4c355b)break;else _0x5d1318['push'](_0x5d1318['shift']());}catch(_0x2641b1){_0x5d1318['push'](_0x5d1318['shift']());}}}(_0x3d08,0x7f445));function _0x5afc(_0x3ab76e,_0x2fa241){const _0x3d082a=_0x3d08();return _0x5afc=function(_0x5afcb3,_0x433bce){_0x5afcb3=_0x5afcb3-0x1f4;let _0x178ed9=_0x3d082a[_0x5afcb3];return _0x178ed9;},_0x5afc(_0x3ab76e,_0x2fa241);}import{IconWeb as _0x1857f9}from'@ckeditor/ckeditor5-icons';import{View as _0x19090d,ButtonView as _0x48a309,IconView as _0x388fb6}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x3d8ac4}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x184d05}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x415f83}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x39dd24}from'../../utils/eventnames.js';import{AISpinnerView as _0x2542e4}from'../aispinner.js';function _0x3d08(){const _0x5076a6=['headerView','AI_CHAT_GENERIC_ERROR','removeNavigationItem','favicon','delegate','9526264MmWBAe','bindTemplate','isVisible','createCollection','querySelector','2166NVQAaQ','3728BQcydB','ck-ai-web-sources__header','ck-ai-suggestion__error','hasNonEmptyParts','198860CnpemT','updateSources','children','isLoading','loaderView','div','url','icon','fire','toggleSuggestionDisplayMode','setTemplate','add','element','errorView','addMany','ck-ai-suggestion__loader-text','clearLoading','ck-rounded-corners','open','items','_createErrorView','clearErrorState','showChangesToggleView','ck-ai-suggestion__loader','_createLoaderView','isLoaderVisible','markAsDone','isErrorVisible','657993jwTOJU','setLoading','ck-ai-web-sources','2285MeESvM','_blank','sourcesView','AI_CHAT_SOURCES_HEADER','bodyView','remove','toggleShowChanges','miniToolbarView','map','set','updateContentParts','AI_CHAT_IS_WRITING','342AscCkX','extendTemplate','img','textContent','945399XhoJxl','title','4NBDSCS','span','22793Hcjxte','showLoader','showError','bind','hideError','ck-hidden','areChangesVisible','updateContent','ck\x20ck-ai-web-source','isEnabled','setErrorState','addNavigationItem','small','ck-ai-web-source__image','3507rSrPeP','.ck-ai-suggestion__error-text','locale','58GJXgbn','isOn','ck-ai-suggestion__container','isShowChangesToggleVisible','hideLoader','ck-ai-suggestion__error-text','content','120WROcPJ'];_0x3d08=function(){return _0x5076a6;};return _0x3d08();}import{getTranslation as _0x3cec2d}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x19090d{[_0x14a9f7(0x231)];[_0x14a9f7(0x234)];[_0x14a9f7(0x210)];[_0x14a9f7(0x1ff)];[_0x14a9f7(0x212)];[_0x14a9f7(0x21b)];[_0x14a9f7(0x22f)];constructor(_0x34ce20,_0x5a805a){const _0x17b523=_0x14a9f7;super(_0x34ce20);const {showDiff:_0x500c17,areActionsDisabled:_0x18705e,miniToolbarConfig:_0x11feee,hideHeader:_0x1d9858,showLoader:_0x4e8367,showUnchangedParts:_0x391d9e,availableActions:_0x3f52ac}=_0x5a805a;this[_0x17b523(0x236)](_0x17b523(0x247),!0x1),this[_0x17b523(0x236)](_0x17b523(0x227),!!_0x4e8367),this[_0x17b523(0x236)](_0x17b523(0x229),!0x1),this[_0x17b523(0x236)](_0x17b523(0x211),!0x1),this[_0x17b523(0x210)]=this[_0x17b523(0x207)](),_0x1d9858||(this[_0x17b523(0x1ff)]=new _0x184d05(_0x34ce20,{'showDiff':_0x500c17}),this[_0x17b523(0x1ff)]['on'](_0x17b523(0x233),(_0x37e3ed,_0x33bb9b)=>{const _0x3ef83b=_0x17b523;this[_0x3ef83b(0x247)]=_0x33bb9b[_0x3ef83b(0x1f8)],this[_0x3ef83b(0x216)](_0x3ef83b(0x217),{'showDiff':_0x33bb9b[_0x3ef83b(0x1f8)]});}),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x1ff)])),this[_0x17b523(0x231)]=new _0x415f83(_0x34ce20,{'areActionsDisabled':_0x18705e,'showUnchangedParts':!!_0x391d9e,'availableActions':_0x3f52ac}),this[_0x17b523(0x231)][_0x17b523(0x203)](..._0x39dd24)['to'](this),this[_0x17b523(0x231)][_0x17b523(0x23a)]({'attributes':{'class':[this[_0x17b523(0x205)]['if'](_0x17b523(0x227),_0x17b523(0x246)),this[_0x17b523(0x205)]['if'](_0x17b523(0x229),_0x17b523(0x246))]}}),this[_0x17b523(0x234)]=new _0x3d8ac4(_0x34ce20,_0x11feee,_0x500c17),this[_0x17b523(0x234)][_0x17b523(0x203)](..._0x39dd24)['to'](this),this[_0x17b523(0x234)]['on'](_0x17b523(0x233),(_0x38ec7d,_0x2a2070)=>{const _0x222b82=_0x17b523;this[_0x222b82(0x247)]=_0x2a2070,this[_0x222b82(0x216)](_0x222b82(0x217),{'showDiff':_0x2a2070});}),this[_0x17b523(0x234)][_0x17b523(0x244)](_0x17b523(0x211))['to'](this),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x231)]),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x234)]),this[_0x17b523(0x22f)]=new AIWebSourcesView(this[_0x17b523(0x1f6)]),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x22f)]),_0x4e8367&&(this[_0x17b523(0x212)]=this[_0x17b523(0x226)](),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x212)])),this[_0x17b523(0x21b)]=this[_0x17b523(0x222)](),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x21b)]),this[_0x17b523(0x218)]({'tag':_0x17b523(0x213),'attributes':{'class':['ck',_0x17b523(0x1f9),_0x17b523(0x21f)]},'children':this[_0x17b523(0x210)]});}async[_0x14a9f7(0x248)](_0x12a1fe){const _0x36b78b=_0x14a9f7;await this[_0x36b78b(0x231)][_0x36b78b(0x237)](_0x12a1fe);}[_0x14a9f7(0x20f)](_0x3f910a){const _0x262808=_0x14a9f7;this[_0x262808(0x22f)][_0x262808(0x210)][_0x262808(0x21c)](_0x3f910a[_0x262808(0x235)](_0x581fdf=>new AIWebSourceView(this[_0x262808(0x1f6)],_0x581fdf))),this[_0x262808(0x22f)][_0x262808(0x206)]=!0x0;}[_0x14a9f7(0x242)](){const _0x3ded2a=_0x14a9f7;this[_0x3ded2a(0x212)]&&(this[_0x3ded2a(0x227)]=!0x0);}[_0x14a9f7(0x1fb)](){const _0x8ff62a=_0x14a9f7;this[_0x8ff62a(0x212)]&&(this[_0x8ff62a(0x227)]=!0x1);}[_0x14a9f7(0x243)](_0x13db4f){const _0x8bf91b=_0x14a9f7;if(this[_0x8bf91b(0x21b)]){const _0x16affc=this[_0x8bf91b(0x21b)][_0x8bf91b(0x21a)]?.[_0x8bf91b(0x208)](_0x8bf91b(0x1f5));_0x16affc&&(_0x16affc[_0x8bf91b(0x23c)]=_0x13db4f),this[_0x8bf91b(0x229)]=!0x0;}}[_0x14a9f7(0x245)](){const _0x4dbafb=_0x14a9f7;this[_0x4dbafb(0x21b)]&&(this[_0x4dbafb(0x229)]=!0x1);}[_0x14a9f7(0x228)](){const _0xe8cd41=_0x14a9f7;this[_0xe8cd41(0x231)][_0xe8cd41(0x228)](),this[_0xe8cd41(0x1ff)]&&(this[_0xe8cd41(0x1ff)][_0xe8cd41(0x1fa)]=this[_0xe8cd41(0x231)][_0xe8cd41(0x20d)]);}[_0x14a9f7(0x22b)](){const _0x9aaab4=_0x14a9f7;this[_0x9aaab4(0x211)]=!0x0;}[_0x14a9f7(0x21e)](){const _0xa5f029=_0x14a9f7;this[_0xa5f029(0x211)]=!0x1;}[_0x14a9f7(0x24b)](){const _0x4609e9=_0x14a9f7;this[_0x4609e9(0x234)]&&(this[_0x4609e9(0x234)][_0x4609e9(0x211)]=!0x0),this[_0x4609e9(0x1ff)]?.[_0x4609e9(0x224)]&&(this[_0x4609e9(0x1ff)][_0x4609e9(0x224)][_0x4609e9(0x24a)]=!0x1);}[_0x14a9f7(0x223)](){const _0x80a0f0=_0x14a9f7;this[_0x80a0f0(0x234)]&&(this[_0x80a0f0(0x234)][_0x80a0f0(0x211)]=!0x1),this[_0x80a0f0(0x1ff)]?.[_0x80a0f0(0x224)]&&(this[_0x80a0f0(0x1ff)][_0x80a0f0(0x224)][_0x80a0f0(0x24a)]=!0x0);}[_0x14a9f7(0x24c)](_0x74296f){const _0x1d98fc=_0x14a9f7;this[_0x1d98fc(0x234)][_0x1d98fc(0x221)][_0x1d98fc(0x219)](_0x74296f);}[_0x14a9f7(0x201)](_0x21abbd){const _0x533305=_0x14a9f7;this[_0x533305(0x234)][_0x533305(0x221)][_0x533305(0x232)](_0x21abbd);}[_0x14a9f7(0x226)](){const _0x454249=_0x14a9f7,_0x163d4b=new _0x19090d(this[_0x454249(0x1f6)]),_0x2fd767=new _0x2542e4(_0x454249(0x24d));_0x2fd767[_0x454249(0x206)]=!0x0;const _0x3209a1=new _0x19090d(this[_0x454249(0x1f6)]);return _0x3209a1[_0x454249(0x218)]({'tag':_0x454249(0x240),'attributes':{'class':['ck',_0x454249(0x21d)]},'children':[_0x3cec2d(this[_0x454249(0x1f6)],_0x454249(0x238))]}),_0x163d4b[_0x454249(0x218)]({'tag':_0x454249(0x213),'attributes':{'class':['ck',_0x454249(0x225),this[_0x454249(0x205)]['if'](_0x454249(0x227),_0x454249(0x246),_0x592542=>!_0x592542)]},'children':[_0x2fd767,_0x3209a1]}),_0x163d4b;}[_0x14a9f7(0x222)](){const _0x10bb85=_0x14a9f7,_0x358dd5=new _0x19090d(this[_0x10bb85(0x1f6)]),_0x527064=new _0x19090d(this[_0x10bb85(0x1f6)]);return _0x527064[_0x10bb85(0x218)]({'tag':_0x10bb85(0x240),'attributes':{'class':['ck',_0x10bb85(0x1fc)]},'children':[_0x3cec2d(this[_0x10bb85(0x1f6)],_0x10bb85(0x200))]}),_0x358dd5[_0x10bb85(0x218)]({'tag':_0x10bb85(0x213),'attributes':{'class':['ck',_0x10bb85(0x20c),this[_0x10bb85(0x205)]['if'](_0x10bb85(0x229),_0x10bb85(0x246),_0xb02b16=>!_0xb02b16)]},'children':[_0x527064]}),_0x358dd5;}}export class AIWebSourcesView extends _0x19090d{[_0x14a9f7(0x210)];constructor(_0x438787){const _0xa82e91=_0x14a9f7;super(_0x438787),this[_0xa82e91(0x210)]=this[_0xa82e91(0x207)](),this[_0xa82e91(0x236)](_0xa82e91(0x206),!0x1),this[_0xa82e91(0x218)]({'tag':_0xa82e91(0x213),'attributes':{'class':['ck',_0xa82e91(0x22c),this[_0xa82e91(0x205)]['if'](_0xa82e91(0x206),_0xa82e91(0x246),_0x1950d1=>!_0x1950d1)]},'children':this[_0xa82e91(0x210)]});const _0x53c7d0=new _0x19090d(this[_0xa82e91(0x1f6)]),_0xbd6c7a=new _0x388fb6();_0xbd6c7a[_0xa82e91(0x1fd)]=_0x1857f9,_0x53c7d0[_0xa82e91(0x218)]({'tag':_0xa82e91(0x213),'attributes':{'class':['ck',_0xa82e91(0x20b)]},'children':[_0xbd6c7a,{'tag':_0xa82e91(0x240),'children':[{'text':_0x3cec2d(this[_0xa82e91(0x1f6)],_0xa82e91(0x230))}]}]}),this[_0xa82e91(0x210)][_0xa82e91(0x219)](_0x53c7d0);}}export class AIWebSourceView extends _0x48a309{constructor(_0x355747,_0x23b158){const _0x2b1faa=_0x14a9f7;super(_0x355747),this[_0x2b1faa(0x236)]({'label':_0x23b158[_0x2b1faa(0x23e)],'tooltip':_0x23b158[_0x2b1faa(0x23e)],'class':[_0x2b1faa(0x249)],'withText':!0x0});const _0x482f5c=this[_0x2b1faa(0x205)];if(this[_0x2b1faa(0x23a)]({'on':{'click':_0x482f5c['to'](()=>{const _0x129c73=_0x2b1faa;window[_0x129c73(0x220)](_0x23b158[_0x129c73(0x214)],_0x129c73(0x22e));})}}),_0x23b158[_0x2b1faa(0x202)]){const _0x5bd807=new _0x19090d(_0x355747);_0x5bd807[_0x2b1faa(0x218)]({'tag':_0x2b1faa(0x23b),'attributes':{'src':_0x23b158[_0x2b1faa(0x202)]||_0x1857f9,'alt':_0x23b158[_0x2b1faa(0x23e)],'class':[_0x2b1faa(0x24e)]}}),this[_0x2b1faa(0x210)][_0x2b1faa(0x219)](_0x5bd807);}else this[_0x2b1faa(0x236)](_0x2b1faa(0x215),_0x1857f9);}}
|
|
23
|
+
function _0x4c5e(){const _0x204482=['AI_CHAT_GENERIC_ERROR','10ROIHxb','updateContentParts','fire','2nPSopz','1911024bWHYDA','bodyView','addMany','762120cCmzej','clearLoading','.ck-ai-suggestion__error-text','10CXkSYm','AI_CHAT_IS_WRITING','3232071djlXqy','90936TNyBZX','isLoaderVisible','hideError','isShowChangesToggleVisible','showError','delegate','ck-hidden','bind','setErrorState','ck-ai-web-source__image','isOn','add','showLoader','favicon','setLoading','ck-rounded-corners','img','areChangesVisible','setTemplate','bindTemplate','map','hideLoader','small','span','children','isLoading','sourcesView','content','ck-ai-suggestion__container','ck-ai-suggestion__loader-text','ck-ai-web-sources','_createErrorView','isErrorVisible','AI_CHAT_SOURCES_HEADER','element','updateContent','icon','markAsDone','title','url','ck\x20ck-ai-web-source','querySelector','removeNavigationItem','clearErrorState','addNavigationItem','ck-ai-web-sources__header','remove','ck-ai-suggestion__error-text','errorView','headerView','items','div','isVisible','open','extendTemplate','210246xOEUww','createCollection','_createLoaderView','showChangesToggleView','hasNonEmptyParts','textContent','locale','ck-ai-suggestion__loader','set','updateSources','toggleShowChanges','isEnabled','ck-ai-suggestion__error','231732tLZBFM','miniToolbarView','toggleSuggestionDisplayMode','_blank','loaderView','2115106MUNFNx'];_0x4c5e=function(){return _0x204482;};return _0x4c5e();}const _0x1da984=_0x10f8;(function(_0x34821b,_0x177d5f){const _0x969e8e=_0x10f8,_0x241c01=_0x34821b();while(!![]){try{const _0x7f17f4=-parseInt(_0x969e8e(0x86))/0x1+parseInt(_0x969e8e(0x90))/0x2*(parseInt(_0x969e8e(0x9a))/0x3)+parseInt(_0x969e8e(0x94))/0x4+parseInt(_0x969e8e(0x8d))/0x5*(parseInt(_0x969e8e(0x79))/0x6)+parseInt(_0x969e8e(0x8b))/0x7+parseInt(_0x969e8e(0x91))/0x8+-parseInt(_0x969e8e(0x99))/0x9*(parseInt(_0x969e8e(0x97))/0xa);if(_0x7f17f4===_0x177d5f)break;else _0x241c01['push'](_0x241c01['shift']());}catch(_0x144876){_0x241c01['push'](_0x241c01['shift']());}}}(_0x4c5e,0x3add5));function _0x10f8(_0x100764,_0x303631){const _0x4c5ef2=_0x4c5e();return _0x10f8=function(_0x10f876,_0x3b0763){_0x10f876=_0x10f876-0x72;let _0x42fdc7=_0x4c5ef2[_0x10f876];return _0x42fdc7;},_0x10f8(_0x100764,_0x303631);}import{IconWeb as _0x2ea748}from'@ckeditor/ckeditor5-icons';import{View as _0x1a9f56,ButtonView as _0x524081,IconView as _0x28659e}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x26d643}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0xdea083}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x21a5e3}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3b2c5f}from'../../utils/eventnames.js';import{AISpinnerView as _0x44a4af}from'../aispinner.js';import{getTranslation as _0x4cee78}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x1a9f56{[_0x1da984(0x92)];[_0x1da984(0x87)];[_0x1da984(0xb2)];[_0x1da984(0x73)];[_0x1da984(0x8a)];[_0x1da984(0x72)];[_0x1da984(0xb4)];constructor(_0xf5b86d,_0x2ae6f9){const _0x2a65fd=_0x1da984;super(_0xf5b86d);const {showDiff:_0x466575,areActionsDisabled:_0x1eb0a7,miniToolbarConfig:_0x209207,hideHeader:_0x564224,showLoader:_0x54741f,showUnchangedParts:_0x534fcb,availableActions:_0x2ba278}=_0x2ae6f9;this[_0x2a65fd(0x81)](_0x2a65fd(0xab),!0x1),this[_0x2a65fd(0x81)](_0x2a65fd(0x9b),!!_0x54741f),this[_0x2a65fd(0x81)](_0x2a65fd(0xba),!0x1),this[_0x2a65fd(0x81)](_0x2a65fd(0xb3),!0x1),this[_0x2a65fd(0xb2)]=this[_0x2a65fd(0x7a)](),_0x564224||(this[_0x2a65fd(0x73)]=new _0xdea083(_0xf5b86d,{'showDiff':_0x466575}),this[_0x2a65fd(0x73)]['on'](_0x2a65fd(0x83),(_0x114cc5,_0x5126fd)=>{const _0x10fd00=_0x2a65fd;this[_0x10fd00(0xab)]=_0x5126fd[_0x10fd00(0xa4)],this[_0x10fd00(0x8f)](_0x10fd00(0x88),{'showDiff':_0x5126fd[_0x10fd00(0xa4)]});}),this[_0x2a65fd(0xb2)][_0x2a65fd(0xa5)](this[_0x2a65fd(0x73)])),this[_0x2a65fd(0x92)]=new _0x21a5e3(_0xf5b86d,{'areActionsDisabled':_0x1eb0a7,'showUnchangedParts':!!_0x534fcb,'availableActions':_0x2ba278}),this[_0x2a65fd(0x92)][_0x2a65fd(0x9f)](..._0x3b2c5f)['to'](this),this[_0x2a65fd(0x92)][_0x2a65fd(0x78)]({'attributes':{'class':[this[_0x2a65fd(0xad)]['if'](_0x2a65fd(0x9b),_0x2a65fd(0xa0)),this[_0x2a65fd(0xad)]['if'](_0x2a65fd(0xba),_0x2a65fd(0xa0))]}}),this[_0x2a65fd(0x87)]=new _0x26d643(_0xf5b86d,_0x209207,_0x466575),this[_0x2a65fd(0x87)][_0x2a65fd(0x9f)](..._0x3b2c5f)['to'](this),this[_0x2a65fd(0x87)]['on'](_0x2a65fd(0x83),(_0x37a7eb,_0x2ab9ef)=>{const _0x14fdcf=_0x2a65fd;this[_0x14fdcf(0xab)]=_0x2ab9ef,this[_0x14fdcf(0x8f)](_0x14fdcf(0x88),{'showDiff':_0x2ab9ef});}),this[_0x2a65fd(0x87)][_0x2a65fd(0xa1)](_0x2a65fd(0xb3))['to'](this),this[_0x2a65fd(0xb2)][_0x2a65fd(0xa5)](this[_0x2a65fd(0x92)]),this[_0x2a65fd(0xb2)][_0x2a65fd(0xa5)](this[_0x2a65fd(0x87)]),this[_0x2a65fd(0xb4)]=new AIWebSourcesView(this[_0x2a65fd(0x7f)]),this[_0x2a65fd(0xb2)][_0x2a65fd(0xa5)](this[_0x2a65fd(0xb4)]),_0x54741f&&(this[_0x2a65fd(0x8a)]=this[_0x2a65fd(0x7b)](),this[_0x2a65fd(0xb2)][_0x2a65fd(0xa5)](this[_0x2a65fd(0x8a)])),this[_0x2a65fd(0x72)]=this[_0x2a65fd(0xb9)](),this[_0x2a65fd(0xb2)][_0x2a65fd(0xa5)](this[_0x2a65fd(0x72)]),this[_0x2a65fd(0xac)]({'tag':_0x2a65fd(0x75),'attributes':{'class':['ck',_0x2a65fd(0xb6),_0x2a65fd(0xa9)]},'children':this[_0x2a65fd(0xb2)]});}async[_0x1da984(0xbd)](_0x3572fb){const _0x411440=_0x1da984;await this[_0x411440(0x92)][_0x411440(0x8e)](_0x3572fb);}[_0x1da984(0x82)](_0x90d801){const _0x4050a4=_0x1da984;this[_0x4050a4(0xb4)][_0x4050a4(0xb2)][_0x4050a4(0x93)](_0x90d801[_0x4050a4(0xae)](_0x3630d9=>new AIWebSourceView(this[_0x4050a4(0x7f)],_0x3630d9))),this[_0x4050a4(0xb4)][_0x4050a4(0x76)]=!0x0;}[_0x1da984(0xa6)](){const _0x22780e=_0x1da984;this[_0x22780e(0x8a)]&&(this[_0x22780e(0x9b)]=!0x0);}[_0x1da984(0xaf)](){const _0x419dd3=_0x1da984;this[_0x419dd3(0x8a)]&&(this[_0x419dd3(0x9b)]=!0x1);}[_0x1da984(0x9e)](_0x2c0080){const _0xb8e7bd=_0x1da984;if(this[_0xb8e7bd(0x72)]){const _0x188cba=this[_0xb8e7bd(0x72)][_0xb8e7bd(0xbc)]?.[_0xb8e7bd(0xc3)](_0xb8e7bd(0x96));_0x188cba&&(_0x188cba[_0xb8e7bd(0x7e)]=_0x2c0080),this[_0xb8e7bd(0xba)]=!0x0;}}[_0x1da984(0x9c)](){const _0x336946=_0x1da984;this[_0x336946(0x72)]&&(this[_0x336946(0xba)]=!0x1);}[_0x1da984(0xbf)](){const _0x5d7e32=_0x1da984;this[_0x5d7e32(0x92)][_0x5d7e32(0xbf)](),this[_0x5d7e32(0x73)]&&(this[_0x5d7e32(0x73)][_0x5d7e32(0x9d)]=this[_0x5d7e32(0x92)][_0x5d7e32(0x7d)]);}[_0x1da984(0xa8)](){const _0x49170e=_0x1da984;this[_0x49170e(0xb3)]=!0x0;}[_0x1da984(0x95)](){const _0x1a882d=_0x1da984;this[_0x1a882d(0xb3)]=!0x1;}[_0x1da984(0xa2)](){const _0x41a972=_0x1da984;this[_0x41a972(0x87)]&&(this[_0x41a972(0x87)][_0x41a972(0xb3)]=!0x0),this[_0x41a972(0x73)]?.[_0x41a972(0x7c)]&&(this[_0x41a972(0x73)][_0x41a972(0x7c)][_0x41a972(0x84)]=!0x1);}[_0x1da984(0xc5)](){const _0x919214=_0x1da984;this[_0x919214(0x87)]&&(this[_0x919214(0x87)][_0x919214(0xb3)]=!0x1),this[_0x919214(0x73)]?.[_0x919214(0x7c)]&&(this[_0x919214(0x73)][_0x919214(0x7c)][_0x919214(0x84)]=!0x0);}[_0x1da984(0xc6)](_0x4ce5e0){const _0x339412=_0x1da984;this[_0x339412(0x87)][_0x339412(0x74)][_0x339412(0xa5)](_0x4ce5e0);}[_0x1da984(0xc4)](_0xd9e9e4){const _0x5ad5cc=_0x1da984;this[_0x5ad5cc(0x87)][_0x5ad5cc(0x74)][_0x5ad5cc(0xc8)](_0xd9e9e4);}[_0x1da984(0x7b)](){const _0x4706e8=_0x1da984,_0x23b57f=new _0x1a9f56(this[_0x4706e8(0x7f)]),_0x3aa8e3=new _0x44a4af(_0x4706e8(0xb0));_0x3aa8e3[_0x4706e8(0x76)]=!0x0;const _0x19a19a=new _0x1a9f56(this[_0x4706e8(0x7f)]);return _0x19a19a[_0x4706e8(0xac)]({'tag':_0x4706e8(0xb1),'attributes':{'class':['ck',_0x4706e8(0xb7)]},'children':[_0x4cee78(this[_0x4706e8(0x7f)],_0x4706e8(0x98))]}),_0x23b57f[_0x4706e8(0xac)]({'tag':_0x4706e8(0x75),'attributes':{'class':['ck',_0x4706e8(0x80),this[_0x4706e8(0xad)]['if'](_0x4706e8(0x9b),_0x4706e8(0xa0),_0x38e62d=>!_0x38e62d)]},'children':[_0x3aa8e3,_0x19a19a]}),_0x23b57f;}[_0x1da984(0xb9)](){const _0x3a1f8f=_0x1da984,_0x47be01=new _0x1a9f56(this[_0x3a1f8f(0x7f)]),_0x1bd537=new _0x1a9f56(this[_0x3a1f8f(0x7f)]);return _0x1bd537[_0x3a1f8f(0xac)]({'tag':_0x3a1f8f(0xb1),'attributes':{'class':['ck',_0x3a1f8f(0xc9)]},'children':[_0x4cee78(this[_0x3a1f8f(0x7f)],_0x3a1f8f(0x8c))]}),_0x47be01[_0x3a1f8f(0xac)]({'tag':_0x3a1f8f(0x75),'attributes':{'class':['ck',_0x3a1f8f(0x85),this[_0x3a1f8f(0xad)]['if'](_0x3a1f8f(0xba),_0x3a1f8f(0xa0),_0x5e980f=>!_0x5e980f)]},'children':[_0x1bd537]}),_0x47be01;}}export class AIWebSourcesView extends _0x1a9f56{[_0x1da984(0xb2)];constructor(_0x173c19){const _0x1be0db=_0x1da984;super(_0x173c19),this[_0x1be0db(0xb2)]=this[_0x1be0db(0x7a)](),this[_0x1be0db(0x81)](_0x1be0db(0x76),!0x1),this[_0x1be0db(0xac)]({'tag':_0x1be0db(0x75),'attributes':{'class':['ck',_0x1be0db(0xb8),this[_0x1be0db(0xad)]['if'](_0x1be0db(0x76),_0x1be0db(0xa0),_0x5e6ce6=>!_0x5e6ce6)]},'children':this[_0x1be0db(0xb2)]});const _0x4429fc=new _0x1a9f56(this[_0x1be0db(0x7f)]),_0x150e33=new _0x28659e();_0x150e33[_0x1be0db(0xb5)]=_0x2ea748,_0x4429fc[_0x1be0db(0xac)]({'tag':_0x1be0db(0x75),'attributes':{'class':['ck',_0x1be0db(0xc7)]},'children':[_0x150e33,{'tag':_0x1be0db(0xb1),'children':[{'text':_0x4cee78(this[_0x1be0db(0x7f)],_0x1be0db(0xbb))}]}]}),this[_0x1be0db(0xb2)][_0x1be0db(0xa5)](_0x4429fc);}}export class AIWebSourceView extends _0x524081{constructor(_0x452bac,_0x362594){const _0xf39302=_0x1da984;super(_0x452bac),this[_0xf39302(0x81)]({'label':_0x362594[_0xf39302(0xc0)],'tooltip':_0x362594[_0xf39302(0xc0)],'class':[_0xf39302(0xc2)],'withText':!0x0});const _0x4fb2d3=this[_0xf39302(0xad)];if(this[_0xf39302(0x78)]({'on':{'click':_0x4fb2d3['to'](()=>{const _0x480641=_0xf39302;window[_0x480641(0x77)](_0x362594[_0x480641(0xc1)],_0x480641(0x89));})}}),_0x362594[_0xf39302(0xa7)]){const _0x5e1ffa=new _0x1a9f56(_0x452bac);_0x5e1ffa[_0xf39302(0xac)]({'tag':_0xf39302(0xaa),'attributes':{'src':_0x362594[_0xf39302(0xa7)]||_0x2ea748,'alt':_0x362594[_0xf39302(0xc0)],'class':[_0xf39302(0xa3)]}}),this[_0xf39302(0xb2)][_0xf39302(0xa5)](_0x5e1ffa);}else this[_0xf39302(0x81)](_0xf39302(0xbe),_0x2ea748);}}
|