@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.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/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/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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.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/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.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/aireviewmodegeneralerrorview.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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2bd6(_0x1d55aa,_0x2911ff){const _0x1ed112=_0x1ed1();return _0x2bd6=function(_0x2bd6b7,_0x1d4c0e){_0x2bd6b7=_0x2bd6b7-0xc9;let _0x5d609b=_0x1ed112[_0x2bd6b7];return _0x5d609b;},_0x2bd6(_0x1d55aa,_0x2911ff);}const _0x4ffb22=_0x2bd6;(function(_0x559618,_0x1c3dac){const _0x803eee=_0x2bd6,_0x211b4a=_0x559618();while(!![]){try{const _0xd5cee1=-parseInt(_0x803eee(0xd4))/0x1*(parseInt(_0x803eee(0xf1))/0x2)+-parseInt(_0x803eee(0xcd))/0x3+parseInt(_0x803eee(0xec))/0x4+-parseInt(_0x803eee(0xde))/0x5*(-parseInt(_0x803eee(0xf3))/0x6)+-parseInt(_0x803eee(0xda))/0x7+parseInt(_0x803eee(0xd6))/0x8*(parseInt(_0x803eee(0xdb))/0x9)+parseInt(_0x803eee(0xd2))/0xa*(parseInt(_0x803eee(0xd9))/0xb);if(_0xd5cee1===_0x1c3dac)break;else _0x211b4a['push'](_0x211b4a['shift']());}catch(_0x4ff0fb){_0x211b4a['push'](_0x211b4a['shift']());}}}(_0x1ed1,0x4e474));import{EmitterMixin as _0x53c874,logWarning as _0x3e3f34,logError as _0x255d1d}from'ckeditor5/src/utils.js';import{getTranslation as _0x444136}from'../utils/common-translations.js';function _0x1ed1(){const _0x164860=['ai-models-unable-to-retrieve','24VdsOhR','ai-chat-model-id-unrecognized','getLocalized','toUpperCase','_filterModels','isAvailable','name','_defaultModelId','92790esSzVJ','AI_MODEL_NAME_AUTO','getDefault','toLocaleLowerCase','AI_MODEL_DESCRIPTION_','2087110tkUjAS','_modelList','65327BGSopD','list','1826040JmzyPr','push','getModels','33ELHMAS','512498LuhXcq','9TxxZtB','getModel','map','120455fDFOUj','provider','ai-chat-default-model-id-unrecognized','_getModelById','_availableModels','some','find','items','AI_MODEL_DESCRIPTION_AUTO','getAvailableModels','_connector','description','startsWith','string','247852ulFJQF','agent','length','getAll','auto','18DoZwTr'];_0x1ed1=function(){return _0x164860;};return _0x1ed1();}export class AIModels extends _0x53c874(){[_0x4ffb22(0xe8)];[_0x4ffb22(0xe2)];[_0x4ffb22(0xcc)];[_0x4ffb22(0xd3)]=[];constructor({connector:_0x26a42f,availableModels:_0xfdc82,defaultModelId:_0x552763}){const _0x48c8fa=_0x4ffb22;super(),this[_0x48c8fa(0xe8)]=_0x26a42f,this[_0x48c8fa(0xe2)]=_0xfdc82,this[_0x48c8fa(0xcc)]=_0x552763;}async[_0x4ffb22(0xef)](){const _0x885f85=_0x4ffb22;if(!this[_0x885f85(0xd3)][_0x885f85(0xee)])try{const _0x2d48f7=this[_0x885f85(0xe8)][_0x885f85(0xd8)](),_0x4cf419=await _0x2d48f7[_0x885f85(0xd5)]();this[_0x885f85(0xd3)]=_0x4cf419[_0x885f85(0xe5)];}catch(_0x215df2){throw _0x255d1d(_0x885f85(0xf2),{'error':_0x215df2}),_0x215df2;}return[...this[_0x885f85(0xd3)]];}async[_0x4ffb22(0xe7)](){const _0x4ba189=_0x4ffb22,_0x19f544=await this[_0x4ba189(0xef)]();return this[_0x4ba189(0xc9)](_0x19f544,this[_0x4ba189(0xe2)]);}async[_0x4ffb22(0xdc)](_0x273769){const _0x36f5d7=_0x4ffb22,_0x3949c6=await this[_0x36f5d7(0xef)]();if(!_0x3949c6[_0x36f5d7(0xee)])return null;if(_0x273769){const _0x5bb2d6=this[_0x36f5d7(0xe1)](_0x3949c6,_0x273769);if(_0x5bb2d6)return _0x5bb2d6;_0x3e3f34(_0x36f5d7(0xf4),{'modelId':_0x273769,'fallBackModelId':this[_0x36f5d7(0xcc)]});}return this[_0x36f5d7(0xcf)]();}async[_0x4ffb22(0xcf)](){const _0x276f60=_0x4ffb22,_0x3a3fa5=await this[_0x276f60(0xe7)]();if(!_0x3a3fa5[_0x276f60(0xee)])return null;if(this[_0x276f60(0xcc)]){const _0x3fec0b=this[_0x276f60(0xe1)](_0x3a3fa5,this[_0x276f60(0xcc)]);if(_0x3fec0b)return _0x3fec0b;_0x3e3f34(_0x276f60(0xe0),{'defaultModelId':this[_0x276f60(0xcc)],'fallBackModelId':_0x3a3fa5[0x0]['id']});}return _0x3a3fa5[0x0];}async[_0x4ffb22(0xca)](_0x48bd9d){const _0x4547d1=_0x4ffb22;return(await this[_0x4547d1(0xe7)]())[_0x4547d1(0xe3)](_0x8b361=>_0x8b361[_0x4547d1(0xcb)]===_0x48bd9d[_0x4547d1(0xcb)]&&_0x8b361[_0x4547d1(0xdf)]===_0x48bd9d[_0x4547d1(0xdf)]);}[_0x4ffb22(0xc9)](_0x588c5e,_0x47872a){const _0x32c08e=_0x4ffb22;let _0x207a99;if(_0x47872a){_0x207a99=[];const _0x29d71a=_0x32c08e(0xeb)==typeof _0x47872a?[_0x47872a[_0x32c08e(0xd0)]()]:_0x47872a[_0x32c08e(0xdd)](_0x39999b=>_0x39999b[_0x32c08e(0xd0)]());for(const _0x372d53 of _0x29d71a)for(const _0x487731 of _0x588c5e)(_0x487731['id'][_0x32c08e(0xd0)]()===_0x372d53||_0x487731[_0x32c08e(0xcb)][_0x32c08e(0xd0)]()===_0x372d53||Ne(_0x487731)&&_0x32c08e(0xf0)===_0x372d53||_0x487731[_0x32c08e(0xdf)][_0x32c08e(0xd0)]()===_0x372d53||_0x487731['id'][_0x32c08e(0xd0)]()[_0x32c08e(0xea)](_0x372d53))&&_0x207a99[_0x32c08e(0xd7)](_0x487731);}else _0x207a99=_0x588c5e;return _0x207a99;}[_0x4ffb22(0xe1)](_0x154c43,_0x2b6327){const _0x4b3840=_0x4ffb22;return _0x154c43[_0x4b3840(0xe4)](_0x3f0c01=>Ne(_0x3f0c01)&&_0x4b3840(0xf0)===_0x2b6327?_0x3f0c01:_0x3f0c01['id']===_0x2b6327)||null;}static[_0x4ffb22(0xf5)](_0x415d00,_0x3c7daa){const _0x342813=_0x4ffb22;return _0x3c7daa[_0x342813(0xdd)](_0x6b25bd=>{const _0x24e3dd=_0x342813;if(Ne(_0x6b25bd))_0x6b25bd[_0x24e3dd(0xcb)]=_0x444136(_0x415d00,_0x24e3dd(0xce)),_0x6b25bd[_0x24e3dd(0xe9)]=_0x444136(_0x415d00,_0x24e3dd(0xe6));else _0x444136(_0x415d00,_0x24e3dd(0xd1)+_0x6b25bd['id'][_0x24e3dd(0xf6)]())[_0x24e3dd(0xea)](_0x24e3dd(0xd1))||(_0x6b25bd[_0x24e3dd(0xe9)]=_0x444136(_0x415d00,_0x24e3dd(0xd1)+_0x6b25bd['id'][_0x24e3dd(0xf6)]()));return _0x6b25bd;});}}function Ne(_0x2c445e){const _0x37108d=_0x4ffb22;return _0x2c445e['id'][_0x37108d(0xea)](_0x37108d(0xed));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e5aa3=_0xeffd;(function(_0x590228,_0x22da31){const _0x17ad7c=_0xeffd,_0xe439d5=_0x590228();while(!![]){try{const _0xbdd3e2=parseInt(_0x17ad7c(0x1ed))/0x1*(-parseInt(_0x17ad7c(0x1dd))/0x2)+-parseInt(_0x17ad7c(0x1a8))/0x3*(-parseInt(_0x17ad7c(0x1cb))/0x4)+parseInt(_0x17ad7c(0x1e5))/0x5*(-parseInt(_0x17ad7c(0x1f1))/0x6)+parseInt(_0x17ad7c(0x1c4))/0x7*(parseInt(_0x17ad7c(0x1b8))/0x8)+-parseInt(_0x17ad7c(0x1be))/0x9+parseInt(_0x17ad7c(0x1fe))/0xa*(-parseInt(_0x17ad7c(0x1ac))/0xb)+-parseInt(_0x17ad7c(0x1b7))/0xc*(-parseInt(_0x17ad7c(0x1e8))/0xd);if(_0xbdd3e2===_0x22da31)break;else _0xe439d5['push'](_0xe439d5['shift']());}catch(_0xd9da69){_0xe439d5['push'](_0xe439d5['shift']());}}}(_0x4e27,0x6ac73));import{CKEditorError as _0xd9d590,ObservableMixin as _0x2efe03,uid as _0x459aa9}from'ckeditor5/src/utils.js';import{Element as _0x30eb8f,findAll as _0x3135df,getAttribute as _0x4489ac,getParents as _0x111645,Document as _0x28f801,parse as _0x30b4bf,Text as _0x41ac63}from'../utils/htmlparser.js';import{AIResponseParser as _0xa28b9c}from'../pipeline/airesponseparser.js';function _0xeffd(_0x2ec343,_0x327a8d){const _0x4e276c=_0x4e27();return _0xeffd=function(_0xeffd6f,_0x3692dc){_0xeffd6f=_0xeffd6f-0x1a7;let _0x2604fe=_0x4e276c[_0xeffd6f];return _0x2604fe;},_0xeffd(_0x2ec343,_0x327a8d);}import{AIResponseApplier as _0x3e3386}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x29b7a2}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x18f609}from'../utils/common-translations.js';import{cloneDeep as _0x1cccbd}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1e5aa3(0x1ec),_0x1e5aa3(0x1c0),_0x1e5aa3(0x1cc),_0x1e5aa3(0x1d5)];export const AI_REPLY_TYPES_IGNORED=[_0x1e5aa3(0x1c8)];function _0x4e27(){const _0x5298b3=['setChangeGroupState','stopListening','source','72yqIvPS','4400GaaiQX','includes','convertMarkdownToHTML','_setCachedContentParts','data-id','areActionsDisabled','1143855gVtjaQ','aiResponseApplier','text-delta','new','AI_SUGGESTION_CONTENT_PART_REMOVED','indexOf','3290SHZBsr','sources','forEach','ai-reply-get-content-parts-group-not-found','conversation-title','nextSibling','removed','4QBHXPS','web-search','change:content','fire','previousSibling','parseAndNormalizeHTML','state','filter','interactionId','color:\x20#808080;\x20font-style:\x20italic','reasoning','values','updateChangeGroups','type','parsedMergedContent','getContentParts','set','node','403708vmAWAe','locale','modifiedNodeIds','appendContent','merge','aiResponseParser','data-unstable','destroy','5ORJNvN','replyContentUpdated','editor','2213237mTxatV','changeGroups','every','push','modification-delta','1oubOGB','newNodeIds','unshift','isDone','2789706mUTkfE','cloneNode','removedNodeIds','documentContextContent','find','length','parsedContent','_getDifferentChangeGroups','_getCachedContentParts','context','span','changes','replyChangeGroupStateUpdated','187570TMSNwQ','map','withoutDiff','529059zqtYhu','modified','pending','ai-get-editor-from-context-no-editor','132adivqo','content','withDiff','index','cachedSuggestionContentParts','onContentChange','done','splice'];_0x4e27=function(){return _0x5298b3;};return _0x4e27();}export const AI_REPLY_TITLE_TYPE=_0x1e5aa3(0x1c8);export class AIReply extends _0x2efe03(){['id'];[_0x1e5aa3(0x1d3)];[_0x1e5aa3(0x1d8)];[_0x1e5aa3(0x1c5)]=[];[_0x1e5aa3(0x1f7)]=new _0x28f801([]);[_0x1e5aa3(0x1d9)]=new _0x28f801([]);[_0x1e5aa3(0x1e9)]=[];[_0x1e5aa3(0x1bd)]=!0x1;[_0x1e5aa3(0x1f4)];[_0x1e5aa3(0x1e2)];[_0x1e5aa3(0x1bf)];[_0x1e5aa3(0x1e7)];[_0x1e5aa3(0x1b0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3baeec,content:_0x48cc01='',isDone:_0x3bd04d=!0x1,interactionId:_0x708c59,areActionsDisabled:_0xcaac9f,documentContextContent:_0x74cf6,editor:_0x4b19da,id:_0x249f07}){const _0x1fb68d=_0x1e5aa3;super(),this['id']=_0x249f07||_0x459aa9(),this[_0x1fb68d(0x1d3)]=_0x708c59,this[_0x1fb68d(0x1d8)]=_0x3baeec,this[_0x1fb68d(0x1bd)]=!!_0xcaac9f,this[_0x1fb68d(0x1e7)]=_0x4b19da,this[_0x1fb68d(0x1e2)]=new _0xa28b9c(),this[_0x1fb68d(0x1bf)]=new _0x3e3386(),this[_0x1fb68d(0x1f4)]=_0x30b4bf(_0x74cf6||''),this[_0x1fb68d(0x1db)](_0x1fb68d(0x1f0),_0x3bd04d),this['on'](_0x1fb68d(0x1cd),()=>{const _0x475a46=_0x1fb68d;this[_0x475a46(0x1b1)]();}),this[_0x1fb68d(0x1db)](_0x1fb68d(0x1ad),_0x48cc01);}[_0x1e5aa3(0x1e0)](_0x4b4f44){const _0x55f20f=_0x1e5aa3;this[_0x55f20f(0x1db)](_0x55f20f(0x1ad),this[_0x55f20f(0x1ad)]+_0x4b4f44);}[_0x1e5aa3(0x1b2)](){const _0x54035a=_0x1e5aa3;this[_0x54035a(0x1f0)]||(this[_0x54035a(0x1db)](_0x54035a(0x1f0),!0x0),this[_0x54035a(0x1b1)]());}[_0x1e5aa3(0x1e4)](){const _0x2ca222=_0x1e5aa3;this[_0x2ca222(0x1b5)]();}[_0x1e5aa3(0x1b4)](_0x1f4fb8,_0xfc8f56){const _0x161f06=_0x1e5aa3;this[_0x161f06(0x1e9)][_0x1f4fb8][_0x161f06(0x1d1)]=_0xfc8f56,this[_0x161f06(0x1ce)](_0x161f06(0x1fd),{'reply':this,'index':_0x1f4fb8,'state':_0xfc8f56});}[_0x1e5aa3(0x1da)]({showDiff:_0x478721,groupIndex:_0x10dbf7}){const _0x569656=_0x1e5aa3;if(!this[_0x569656(0x1e7)])throw new _0xd9d590(_0x569656(0x1ab),null,{'aiReply':this});const _0xf257d1=this[_0x569656(0x1f9)](_0x478721,_0x10dbf7);if(_0xf257d1)return _0xf257d1;let _0x2243df=[];if(void 0x0===_0x10dbf7)_0x2243df=this[_0x569656(0x1e9)];else{const _0x30822b=this[_0x569656(0x1e9)][_0x569656(0x1f5)](({index:_0x1d8d63})=>_0x1d8d63===_0x10dbf7);if(!_0x30822b)throw new _0xd9d590(_0x569656(0x1c7),null,{'aiReply':this,'groupIndex':_0x10dbf7});_0x2243df=[_0x30822b];}const _0x4c3447=_0x29b7a2({'editor':this[_0x569656(0x1e7)],'showDiff':_0x478721,'changeGroups':_0x2243df,'documentContextContent':this[_0x569656(0x1f4)]});return this[_0x569656(0x1bb)](_0x478721,_0x4c3447),_0x4c3447;}[_0x1e5aa3(0x1f9)](_0x56af86,_0x592ed7){const _0x5916ea=_0x1e5aa3,_0x379bb1=_0x56af86?_0x5916ea(0x1ae):_0x5916ea(0x1a7);if(!this[_0x5916ea(0x1b0)][_0x379bb1][_0x5916ea(0x1f6)])return null;const _0x54a1f6=this[_0x5916ea(0x1b0)][_0x379bb1];if(void 0x0===_0x592ed7)return _0x1cccbd(_0x54a1f6);{const _0x708cbf=_0x54a1f6[_0x5916ea(0x1f5)](({index:_0x3b1210})=>_0x3b1210===_0x592ed7);if(_0x708cbf)return[_0x1cccbd(_0x708cbf)];}return null;}[_0x1e5aa3(0x1bb)](_0x569c70,_0x366a3f){const _0x3873ef=_0x1e5aa3,_0x5164a4=_0x569c70?_0x3873ef(0x1ae):_0x3873ef(0x1a7);_0x366a3f[_0x3873ef(0x1c6)](_0x3ac970=>{const _0x3320d8=_0x3873ef,_0x23e2ff=this[_0x3320d8(0x1b0)][_0x5164a4],_0x4c26eb=_0x23e2ff[_0x3320d8(0x1f5)](({index:_0x2c2e77})=>_0x2c2e77===_0x3ac970[_0x3320d8(0x1af)]);if(_0x4c26eb){const _0x234323=_0x23e2ff[_0x3320d8(0x1c3)](_0x4c26eb);_0x23e2ff[_0x3320d8(0x1b3)](_0x234323,0x1,_0x3ac970);}else _0x23e2ff[_0x3320d8(0x1eb)](_0x3ac970);});}[_0x1e5aa3(0x1b1)](){const _0x2a1370=_0x1e5aa3;if(_0x2a1370(0x1ec)===this[_0x2a1370(0x1d8)]){this[_0x2a1370(0x1f7)]=this[_0x2a1370(0x1e2)][_0x2a1370(0x1d0)](this[_0x2a1370(0x1ad)]);const _0x403298=this[_0x2a1370(0x1e9)];this[_0x2a1370(0x1d7)]();const _0x4895b0=this[_0x2a1370(0x1f8)](_0x403298,this[_0x2a1370(0x1e9)]);(_0x4895b0[_0x2a1370(0x1f6)]||this[_0x2a1370(0x1f0)])&&(this[_0x2a1370(0x1ce)](_0x2a1370(0x1e6),this,_0x4895b0),this[_0x2a1370(0x1b0)][_0x2a1370(0x1ae)][_0x2a1370(0x1f6)]=this[_0x2a1370(0x1b0)][_0x2a1370(0x1a7)][_0x2a1370(0x1f6)]=0x0);}else this[_0x2a1370(0x1f7)]=this[_0x2a1370(0x1e2)][_0x2a1370(0x1ba)](this[_0x2a1370(0x1ad)]),this[_0x2a1370(0x1ce)](_0x2a1370(0x1e6),this);}[_0x1e5aa3(0x1f8)](_0x3ecc22,_0x439899){const _0x8f429=_0x1e5aa3,_0x4d0481=[];for(const _0x3f881f of _0x439899){const _0x47f7ff=_0x3ecc22[_0x3f881f[_0x8f429(0x1af)]];_0x47f7ff?_0x47f7ff[_0x8f429(0x1fc)][_0x8f429(0x1f6)]!==_0x3f881f[_0x8f429(0x1fc)][_0x8f429(0x1f6)]?_0x4d0481[_0x8f429(0x1eb)](_0x3f881f):_0x47f7ff[_0x8f429(0x1fc)][_0x8f429(0x1c6)]((_0x18c993,_0x466255)=>{const _0x11bd99=_0x8f429,_0x1d85a3=_0x3f881f[_0x11bd99(0x1fc)][_0x466255];_0x18c993['id']!==_0x1d85a3['id']&&_0x4d0481[_0x11bd99(0x1eb)](_0x3f881f);}):_0x4d0481[_0x8f429(0x1eb)](_0x3f881f);}return _0x4d0481;}[_0x1e5aa3(0x1d7)](){const _0x217f1a=_0x1e5aa3,_0x1e913e=new _0x30eb8f('p',{},[new _0x30eb8f(_0x217f1a(0x1fb),{'style':_0x217f1a(0x1d4)},[new _0x41ac63(_0x18f609(this[_0x217f1a(0x1e7)][_0x217f1a(0x1de)],_0x217f1a(0x1c2)))])]),_0x27a8eb=this[_0x217f1a(0x1bf)][_0x217f1a(0x1e1)](this[_0x217f1a(0x1f7)],this[_0x217f1a(0x1f4)][_0x217f1a(0x1f2)](!0x0),{'markUnstableElements':!this[_0x217f1a(0x1f0)],'replaceRemovedWith':_0x1e913e,'cutAfterLastChange':!this[_0x217f1a(0x1f0)]});if(!_0x27a8eb[_0x217f1a(0x1df)][_0x217f1a(0x1f6)]&&!this[_0x217f1a(0x1f0)])return;this[_0x217f1a(0x1d9)]=_0x27a8eb[_0x217f1a(0x1f7)];let _0x1aa2dc=[];if(_0x3135df(_0x2381ae=>{const _0x49c70f=_0x217f1a,_0x5a5669=_0x4489ac(_0x2381ae,_0x49c70f(0x1bc));if(!_0x5a5669||!_0x30b8d7(_0x5a5669))return!0x1;const _0x27ff05=[_0x2381ae,..._0x111645(_0x2381ae)]['at'](-0x2);if(_0x2381ae!=_0x27ff05){const _0x16ea79=_0x4489ac(_0x27ff05,_0x49c70f(0x1bc));_0x30b8d7(_0x16ea79)||(_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x27ff05,'id':_0x16ea79,'type':_0x49c70f(0x1a9)}),_0x27a8eb[_0x49c70f(0x1df)][_0x49c70f(0x1eb)](_0x16ea79));}else _0x27a8eb[_0x49c70f(0x1df)][_0x49c70f(0x1b9)](_0x5a5669)?_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x2381ae,'type':_0x49c70f(0x1a9),'id':_0x5a5669}):_0x27a8eb[_0x49c70f(0x1ee)][_0x49c70f(0x1b9)](_0x5a5669)?_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x2381ae,'type':_0x49c70f(0x1c1),'id':_0x5a5669,'anchorId':_0x4489ac(_0x2381ae[_0x49c70f(0x1cf)],_0x49c70f(0x1bc))}):_0x1aa2dc[_0x49c70f(0x1eb)]({'node':_0x2381ae,'type':_0x49c70f(0x1ca),'id':_0x5a5669});return!0x0;},this[_0x217f1a(0x1d9)]),_0x1aa2dc=_0x1aa2dc[_0x217f1a(0x1d2)](({node:_0xca1f2c})=>[..._0x111645(_0xca1f2c),_0xca1f2c][_0x217f1a(0x1ea)](_0x3aa4fb=>!_0x4489ac(_0x3aa4fb,_0x217f1a(0x1e3)))),0x0==_0x1aa2dc[_0x217f1a(0x1f6)])return;const _0x44ed9c=[[_0x1aa2dc[0x0]]];for(let _0x261b63=0x1;_0x261b63<_0x1aa2dc[_0x217f1a(0x1f6)];_0x261b63++){const _0x3c3f31=_0x44ed9c[_0x44ed9c[_0x217f1a(0x1f6)]-0x1],_0x1d71e3=_0x3c3f31[_0x3c3f31[_0x217f1a(0x1f6)]-0x1];_0x1aa2dc[_0x261b63][_0x217f1a(0x1dc)][_0x217f1a(0x1cf)]==_0x1d71e3[_0x217f1a(0x1dc)]&&_0x217f1a(0x1a9)!=_0x1aa2dc[_0x261b63][_0x217f1a(0x1d8)]&&_0x217f1a(0x1a9)!=_0x1d71e3[_0x217f1a(0x1d8)]?_0x3c3f31[_0x217f1a(0x1eb)](_0x1aa2dc[_0x261b63]):_0x44ed9c[_0x217f1a(0x1eb)]([_0x1aa2dc[_0x261b63]]);}for(const _0x582ed3 of _0x44ed9c){const _0x2c5199=_0x582ed3[0x0],_0x1d123f=_0x582ed3[_0x582ed3[_0x217f1a(0x1f6)]-0x1],_0x2c977f=_0x5cf9a6(_0x2c5199[_0x217f1a(0x1dc)][_0x217f1a(0x1cf)]);_0x2c977f&&_0x582ed3[_0x217f1a(0x1ef)](_0x2c977f);const _0x505b1c=_0x5cf9a6(_0x1d123f[_0x217f1a(0x1dc)][_0x217f1a(0x1c9)]);_0x505b1c&&_0x582ed3[_0x217f1a(0x1eb)](_0x505b1c);}function _0x30b8d7(_0x23d7c3){const _0x243420=_0x217f1a;return _0x27a8eb[_0x243420(0x1df)][_0x243420(0x1b9)](_0x23d7c3)||_0x27a8eb[_0x243420(0x1ee)][_0x243420(0x1b9)](_0x23d7c3)||_0x27a8eb[_0x243420(0x1f3)][_0x243420(0x1b9)](_0x23d7c3);}function _0x5cf9a6(_0x72b5ad){const _0x51c46b=_0x217f1a;if(_0x72b5ad&&_0x4489ac(_0x72b5ad,_0x51c46b(0x1bc))&&!_0x4489ac(_0x72b5ad,_0x51c46b(0x1e3))){const _0x359deb=_0x4489ac(_0x72b5ad,_0x51c46b(0x1bc));if(!_0x30b8d7(_0x359deb))return{'node':_0x72b5ad,'type':_0x51c46b(0x1fa),'id':_0x359deb};}return null;}this[_0x217f1a(0x1e9)]=_0x44ed9c[_0x217f1a(0x1ff)]((_0x447fdb,_0x53cbdf)=>({'changes':_0x447fdb,'state':_0x217f1a(0x1aa),'index':_0x53cbdf}));}}export function isValidReplyType(_0x511128){const _0x244d13=_0x1e5aa3;return Object[_0x244d13(0x1d6)](AI_REPLY_TYPES)[_0x244d13(0x1b9)](_0x511128);}export function isIgnoredReplyType(_0x5d3165){const _0x321b04=_0x1e5aa3;return AI_REPLY_TYPES_IGNORED[_0x321b04(0x1b9)](_0x5d3165);}export function isReplyTitleType(_0x580849){return _0x580849===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x67244e){const _0x37403f=_0x1e5aa3;return _0x37403f(0x1b6)===_0x67244e;}
|
|
23
|
+
const _0x2efec0=_0x2e67;(function(_0xb4ccda,_0x121fe0){const _0x4769ca=_0x2e67,_0x33259a=_0xb4ccda();while(!![]){try{const _0x34bb76=-parseInt(_0x4769ca(0x96))/0x1+parseInt(_0x4769ca(0x9a))/0x2*(parseInt(_0x4769ca(0xa9))/0x3)+parseInt(_0x4769ca(0xab))/0x4+-parseInt(_0x4769ca(0xa6))/0x5+parseInt(_0x4769ca(0xce))/0x6+-parseInt(_0x4769ca(0xc5))/0x7+parseInt(_0x4769ca(0x9f))/0x8;if(_0x34bb76===_0x121fe0)break;else _0x33259a['push'](_0x33259a['shift']());}catch(_0x23af93){_0x33259a['push'](_0x33259a['shift']());}}}(_0x50e5,0x32345));import{CKEditorError as _0x514c9a,ObservableMixin as _0x5173d0,uid as _0x306a81}from'ckeditor5/src/utils.js';import{Element as _0x249503,findAll as _0x24fd16,getAttribute as _0x1fd1a5,getParents as _0x2f565b,Document as _0x657692,parse as _0x469195,Text as _0x111dc6}from'../utils/htmlparser.js';import{AIResponseParser as _0x4344c8}from'../pipeline/airesponseparser.js';function _0x50e5(){const _0x4d719a=['conversation-title','reasoning','unshift','splice','354640ZGfXrQ','parsedMergedContent','change:content','17211ctjbsC','removedNodeIds','569284odeFks','state','forEach','data-unstable','ai-get-editor-from-context-no-editor','stopListening','onContentChange','parseAndNormalizeHTML','_getCachedContentParts','_setCachedContentParts','filter','node','setChangeGroupState','new','length','updateChangeGroups','fire','appendContent','documentContextContent','content','values','destroy','isDone','merge','changes','replyContentUpdated','1105566FZcKYi','context','text-delta','newNodeIds','withoutDiff','index','find','removed','modification-delta','889422AaBsYh','locale','AI_SUGGESTION_CONTENT_PART_REMOVED','set','map','span','type','done','every','convertMarkdownToHTML','getContentParts','changeGroups','cloneNode','interactionId','aiResponseParser','modifiedNodeIds','source','previousSibling','push','color:\x20#808080;\x20font-style:\x20italic','aiResponseApplier','replyChangeGroupStateUpdated','cachedSuggestionContentParts','sources','includes','indexOf','data-id','ai-reply-get-content-parts-group-not-found','205251ThXRKS','_getDifferentChangeGroups','withDiff','areActionsDisabled','28jAUhFf','modified','web-search','editor','nextSibling','2151024OmdxbV','pending','parsedContent'];_0x50e5=function(){return _0x4d719a;};return _0x50e5();}import{AIResponseApplier as _0x610486}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x137bf9}from'../utils/getsuggestionpartsfromreply.js';function _0x2e67(_0x476f92,_0x5579eb){const _0x50e5b8=_0x50e5();return _0x2e67=function(_0x2e6722,_0x53b786){_0x2e6722=_0x2e6722-0x7c;let _0x1c6a44=_0x50e5b8[_0x2e6722];return _0x1c6a44;},_0x2e67(_0x476f92,_0x5579eb);}import{getTranslation as _0x17af8e}from'../utils/common-translations.js';import{cloneDeep as _0x5cc09b}from'es-toolkit';export const AI_REPLY_TYPES=[_0x2efec0(0xcd),_0x2efec0(0xc7),_0x2efec0(0x9c),_0x2efec0(0xa3)];export const AI_REPLY_TYPES_IGNORED=[_0x2efec0(0xa2)];export const AI_REPLY_TITLE_TYPE=_0x2efec0(0xa2);export class AIReply extends _0x5173d0(){['id'];[_0x2efec0(0x87)];[_0x2efec0(0x80)];[_0x2efec0(0x91)]=[];[_0x2efec0(0xa1)]=new _0x657692([]);[_0x2efec0(0xa7)]=new _0x657692([]);[_0x2efec0(0x85)]=[];[_0x2efec0(0x99)]=!0x1;[_0x2efec0(0xbd)];[_0x2efec0(0x88)];[_0x2efec0(0x8e)];[_0x2efec0(0x9d)];[_0x2efec0(0x90)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x13a89c,content:_0x1e9c24='',isDone:_0x599102=!0x1,interactionId:_0x318e35,areActionsDisabled:_0x5ac397,documentContextContent:_0x29b5b5,editor:_0x17c513,id:_0xcc92b0}){const _0x173a10=_0x2efec0;super(),this['id']=_0xcc92b0||_0x306a81(),this[_0x173a10(0x87)]=_0x318e35,this[_0x173a10(0x80)]=_0x13a89c,this[_0x173a10(0x99)]=!!_0x5ac397,this[_0x173a10(0x9d)]=_0x17c513,this[_0x173a10(0x88)]=new _0x4344c8(),this[_0x173a10(0x8e)]=new _0x610486(),this[_0x173a10(0xbd)]=_0x469195(_0x29b5b5||''),this[_0x173a10(0x7d)](_0x173a10(0xc1),_0x599102),this['on'](_0x173a10(0xa8),()=>{const _0x46f2bf=_0x173a10;this[_0x46f2bf(0xb1)]();}),this[_0x173a10(0x7d)](_0x173a10(0xbe),_0x1e9c24);}[_0x2efec0(0xbc)](_0x1d0898){const _0x87a0b1=_0x2efec0;this[_0x87a0b1(0x7d)](_0x87a0b1(0xbe),this[_0x87a0b1(0xbe)]+_0x1d0898);}[_0x2efec0(0x81)](){const _0x3e36e5=_0x2efec0;this[_0x3e36e5(0xc1)]||(this[_0x3e36e5(0x7d)](_0x3e36e5(0xc1),!0x0),this[_0x3e36e5(0xb1)]());}[_0x2efec0(0xc0)](){const _0x56da92=_0x2efec0;this[_0x56da92(0xb0)]();}[_0x2efec0(0xb7)](_0x1a4770,_0x160a74){const _0x227334=_0x2efec0;this[_0x227334(0x85)][_0x1a4770][_0x227334(0xac)]=_0x160a74,this[_0x227334(0xbb)](_0x227334(0x8f),{'reply':this,'index':_0x1a4770,'state':_0x160a74});}[_0x2efec0(0x84)]({showDiff:_0xf02aa7,groupIndex:_0x117048}){const _0xead260=_0x2efec0;if(!this[_0xead260(0x9d)])throw new _0x514c9a(_0xead260(0xaf),null,{'aiReply':this});const _0xba6813=this[_0xead260(0xb3)](_0xf02aa7,_0x117048);if(_0xba6813)return _0xba6813;let _0x19baad=[];if(void 0x0===_0x117048)_0x19baad=this[_0xead260(0x85)];else{const _0x1414d9=this[_0xead260(0x85)][_0xead260(0xcb)](({index:_0x81f1d})=>_0x81f1d===_0x117048);if(!_0x1414d9)throw new _0x514c9a(_0xead260(0x95),null,{'aiReply':this,'groupIndex':_0x117048});_0x19baad=[_0x1414d9];}const _0x829740=_0x137bf9({'editor':this[_0xead260(0x9d)],'showDiff':_0xf02aa7,'changeGroups':_0x19baad,'documentContextContent':this[_0xead260(0xbd)]});return this[_0xead260(0xb4)](_0xf02aa7,_0x829740),_0x829740;}[_0x2efec0(0xb3)](_0x458db4,_0x2af408){const _0x355f3c=_0x2efec0,_0x6ff931=_0x458db4?_0x355f3c(0x98):_0x355f3c(0xc9);if(!this[_0x355f3c(0x90)][_0x6ff931][_0x355f3c(0xb9)])return null;const _0x1d0106=this[_0x355f3c(0x90)][_0x6ff931];if(void 0x0===_0x2af408)return _0x5cc09b(_0x1d0106);{const _0x30ae4d=_0x1d0106[_0x355f3c(0xcb)](({index:_0x507d73})=>_0x507d73===_0x2af408);if(_0x30ae4d)return[_0x5cc09b(_0x30ae4d)];}return null;}[_0x2efec0(0xb4)](_0xeaacbf,_0x476672){const _0x5b60d1=_0x2efec0,_0x544f95=_0xeaacbf?_0x5b60d1(0x98):_0x5b60d1(0xc9);_0x476672[_0x5b60d1(0xad)](_0x1622ee=>{const _0x523918=_0x5b60d1,_0x1c1684=this[_0x523918(0x90)][_0x544f95],_0x4ad9e3=_0x1c1684[_0x523918(0xcb)](({index:_0x37a661})=>_0x37a661===_0x1622ee[_0x523918(0xca)]);if(_0x4ad9e3){const _0x3b2f2f=_0x1c1684[_0x523918(0x93)](_0x4ad9e3);_0x1c1684[_0x523918(0xa5)](_0x3b2f2f,0x1,_0x1622ee);}else _0x1c1684[_0x523918(0x8c)](_0x1622ee);});}[_0x2efec0(0xb1)](){const _0x2325e8=_0x2efec0;if(_0x2325e8(0xcd)===this[_0x2325e8(0x80)]){this[_0x2325e8(0xa1)]=this[_0x2325e8(0x88)][_0x2325e8(0xb2)](this[_0x2325e8(0xbe)]);const _0x1d6889=this[_0x2325e8(0x85)];this[_0x2325e8(0xba)]();const _0x131b84=this[_0x2325e8(0x97)](_0x1d6889,this[_0x2325e8(0x85)]);(_0x131b84[_0x2325e8(0xb9)]||this[_0x2325e8(0xc1)])&&(this[_0x2325e8(0xbb)](_0x2325e8(0xc4),this,_0x131b84),this[_0x2325e8(0x90)][_0x2325e8(0x98)][_0x2325e8(0xb9)]=this[_0x2325e8(0x90)][_0x2325e8(0xc9)][_0x2325e8(0xb9)]=0x0);}else this[_0x2325e8(0xa1)]=this[_0x2325e8(0x88)][_0x2325e8(0x83)](this[_0x2325e8(0xbe)]),this[_0x2325e8(0xbb)](_0x2325e8(0xc4),this);}[_0x2efec0(0x97)](_0x2d0637,_0x536c69){const _0x80d97=_0x2efec0,_0x2856fe=[];for(const _0xc0fc50 of _0x536c69){const _0x48c6b8=_0x2d0637[_0xc0fc50[_0x80d97(0xca)]];_0x48c6b8?_0x48c6b8[_0x80d97(0xc3)][_0x80d97(0xb9)]!==_0xc0fc50[_0x80d97(0xc3)][_0x80d97(0xb9)]?_0x2856fe[_0x80d97(0x8c)](_0xc0fc50):_0x48c6b8[_0x80d97(0xc3)][_0x80d97(0xad)]((_0x31a620,_0x488418)=>{const _0x42aa57=_0x80d97,_0x1ba14a=_0xc0fc50[_0x42aa57(0xc3)][_0x488418];_0x31a620['id']!==_0x1ba14a['id']&&_0x2856fe[_0x42aa57(0x8c)](_0xc0fc50);}):_0x2856fe[_0x80d97(0x8c)](_0xc0fc50);}return _0x2856fe;}[_0x2efec0(0xba)](){const _0x3dc3f3=_0x2efec0,_0x3535e9=new _0x249503('p',{},[new _0x249503(_0x3dc3f3(0x7f),{'style':_0x3dc3f3(0x8d)},[new _0x111dc6(_0x17af8e(this[_0x3dc3f3(0x9d)][_0x3dc3f3(0xcf)],_0x3dc3f3(0x7c)))])]),_0xd3e4b1=this[_0x3dc3f3(0x8e)][_0x3dc3f3(0xc2)](this[_0x3dc3f3(0xa1)],this[_0x3dc3f3(0xbd)][_0x3dc3f3(0x86)](!0x0),{'markUnstableElements':!this[_0x3dc3f3(0xc1)],'replaceRemovedWith':_0x3535e9,'cutAfterLastChange':!this[_0x3dc3f3(0xc1)]});if(!_0xd3e4b1[_0x3dc3f3(0x89)][_0x3dc3f3(0xb9)]&&!this[_0x3dc3f3(0xc1)])return;this[_0x3dc3f3(0xa7)]=_0xd3e4b1[_0x3dc3f3(0xa1)];let _0x58e0f0=[];if(_0x24fd16(_0x43378b=>{const _0x2e6d0c=_0x3dc3f3,_0x4f15a9=_0x1fd1a5(_0x43378b,_0x2e6d0c(0x94));if(!_0x4f15a9||!_0x2cee9b(_0x4f15a9))return!0x1;const _0x6637b4=[_0x43378b,..._0x2f565b(_0x43378b)]['at'](-0x2);if(_0x43378b!=_0x6637b4){const _0x22d6c2=_0x1fd1a5(_0x6637b4,_0x2e6d0c(0x94));_0x2cee9b(_0x22d6c2)||(_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x6637b4,'id':_0x22d6c2,'type':_0x2e6d0c(0x9b)}),_0xd3e4b1[_0x2e6d0c(0x89)][_0x2e6d0c(0x8c)](_0x22d6c2));}else _0xd3e4b1[_0x2e6d0c(0x89)][_0x2e6d0c(0x92)](_0x4f15a9)?_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0x9b),'id':_0x4f15a9}):_0xd3e4b1[_0x2e6d0c(0xc8)][_0x2e6d0c(0x92)](_0x4f15a9)?_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0xb8),'id':_0x4f15a9,'anchorId':_0x1fd1a5(_0x43378b[_0x2e6d0c(0x8b)],_0x2e6d0c(0x94))}):_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0xcc),'id':_0x4f15a9});return!0x0;},this[_0x3dc3f3(0xa7)]),_0x58e0f0=_0x58e0f0[_0x3dc3f3(0xb5)](({node:_0x5ef3f3})=>[..._0x2f565b(_0x5ef3f3),_0x5ef3f3][_0x3dc3f3(0x82)](_0x16efd7=>!_0x1fd1a5(_0x16efd7,_0x3dc3f3(0xae)))),0x0==_0x58e0f0[_0x3dc3f3(0xb9)])return;const _0x1169e3=[[_0x58e0f0[0x0]]];for(let _0xba2edf=0x1;_0xba2edf<_0x58e0f0[_0x3dc3f3(0xb9)];_0xba2edf++){const _0x3dca48=_0x1169e3[_0x1169e3[_0x3dc3f3(0xb9)]-0x1],_0x537a2c=_0x3dca48[_0x3dca48[_0x3dc3f3(0xb9)]-0x1];_0x58e0f0[_0xba2edf][_0x3dc3f3(0xb6)][_0x3dc3f3(0x8b)]==_0x537a2c[_0x3dc3f3(0xb6)]&&_0x3dc3f3(0x9b)!=_0x58e0f0[_0xba2edf][_0x3dc3f3(0x80)]&&_0x3dc3f3(0x9b)!=_0x537a2c[_0x3dc3f3(0x80)]?_0x3dca48[_0x3dc3f3(0x8c)](_0x58e0f0[_0xba2edf]):_0x1169e3[_0x3dc3f3(0x8c)]([_0x58e0f0[_0xba2edf]]);}for(const _0x16638a of _0x1169e3){const _0x23b3a6=_0x16638a[0x0],_0xf0a44a=_0x16638a[_0x16638a[_0x3dc3f3(0xb9)]-0x1],_0x1a5e3b=_0x3e05c2(_0x23b3a6[_0x3dc3f3(0xb6)][_0x3dc3f3(0x8b)]);_0x1a5e3b&&_0x16638a[_0x3dc3f3(0xa4)](_0x1a5e3b);const _0x4eb843=_0x3e05c2(_0xf0a44a[_0x3dc3f3(0xb6)][_0x3dc3f3(0x9e)]);_0x4eb843&&_0x16638a[_0x3dc3f3(0x8c)](_0x4eb843);}function _0x2cee9b(_0x31166f){const _0x283801=_0x3dc3f3;return _0xd3e4b1[_0x283801(0x89)][_0x283801(0x92)](_0x31166f)||_0xd3e4b1[_0x283801(0xc8)][_0x283801(0x92)](_0x31166f)||_0xd3e4b1[_0x283801(0xaa)][_0x283801(0x92)](_0x31166f);}function _0x3e05c2(_0x172ca6){const _0x4c3f31=_0x3dc3f3;if(_0x172ca6&&_0x1fd1a5(_0x172ca6,_0x4c3f31(0x94))&&!_0x1fd1a5(_0x172ca6,_0x4c3f31(0xae))){const _0x1e402a=_0x1fd1a5(_0x172ca6,_0x4c3f31(0x94));if(!_0x2cee9b(_0x1e402a))return{'node':_0x172ca6,'type':_0x4c3f31(0xc6),'id':_0x1e402a};}return null;}this[_0x3dc3f3(0x85)]=_0x1169e3[_0x3dc3f3(0x7e)]((_0x51ac5f,_0x1b80cb)=>({'changes':_0x51ac5f,'state':_0x3dc3f3(0xa0),'index':_0x1b80cb}));}}export function isValidReplyType(_0x1b2b68){const _0x16b911=_0x2efec0;return Object[_0x16b911(0xbf)](AI_REPLY_TYPES)[_0x16b911(0x92)](_0x1b2b68);}export function isIgnoredReplyType(_0x521bc2){const _0x293c5e=_0x2efec0;return AI_REPLY_TYPES_IGNORED[_0x293c5e(0x92)](_0x521bc2);}export function isReplyTitleType(_0x15932e){return _0x15932e===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2a88a0){const _0x1dc28f=_0x2efec0;return _0x1dc28f(0x8a)===_0x2a88a0;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0xb54ac7(){[_0x1cd92a(0x109)];[_0x1cd92a(0x11b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x1cd92a(0x11a)]=new Set();constructor(_0x157efa){const _0x17871b=_0x1cd92a;super(),this[_0x17871b(0x109)]=_0x157efa||_0x5b29d5;}[_0x1cd92a(0xe1)](_0xa51432,_0xaf82ba,_0x272cf6){const _0x1020f5=_0x1cd92a,_0x192188=_0x36f115(_0xa51432);if(0x0===_0xaf82ba[_0x1020f5(0xf3)][_0x1020f5(0x117)]){const _0x5c4c52=[];return _0x499230(_0x1020f5(0x106),_0x1020f5(0xfe),_0x192188)[_0x1020f5(0x10c)](_0x5a33bb=>{const _0x11dc3a=_0x1020f5,_0x1df18a=this[_0x11dc3a(0x109)]();_0x1f9e36(_0x5a33bb,_0x11dc3a(0x106),_0x1df18a),_0x5c4c52[_0x11dc3a(0xe2)](_0x1df18a);}),this[_0x1020f5(0x119)](_0x192188),{'parsedContent':_0x192188,'newNodeIds':_0x5c4c52,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x272cf6&&_0x272cf6[_0x1020f5(0xe7)]&&this[_0x1020f5(0xdc)](_0x192188),this[_0x1020f5(0x11b)][_0x1020f5(0xdb)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0x10e)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0x103)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0x11c)]=[],this[_0x1020f5(0x11b)][_0x1020f5(0xf4)]=null,this[_0x1020f5(0x11a)]=new Set(_0x499230(_0x1020f5(0x106),null,_0xaf82ba)[_0x1020f5(0xea)](_0x27301a=>_0x43fc81(_0x27301a,_0x1020f5(0x106)))[_0x1020f5(0xff)](_0x4f121c=>!!_0x4f121c));let _0x3f88d4=-0x1,_0x20ae67=!0x1;const _0x220df0=_0x192188[_0x1020f5(0xf3)],_0x2e4496=Array[_0x1020f5(0xdf)](_0x220df0)[_0x1020f5(0xff)](_0x246bae=>!(0x3===_0x246bae[_0x1020f5(0x121)]&&''===_0x434ecb(_0x246bae)[_0x1020f5(0xfc)]())),_0x224695=_0x2e4496[_0x1020f5(0x117)];for(let _0x3f2012=0x0;_0x3f2012<_0x224695;_0x3f2012++){const _0x359fbe=_0x2e4496[_0x3f2012],_0x2e7fed=_0x2e4496[_0x3f2012+0x1];if(this[_0x1020f5(0xfb)](_0x359fbe)){if(-0x1===_0x3f88d4&&(_0x3f88d4=_0x3f2012),this[_0x1020f5(0xda)](_0x359fbe),!this[_0x1020f5(0xfb)](_0x2e7fed)){const [_0x107177,_0x5b3d60]=this[_0x1020f5(0x102)](_0x359fbe,_0x20ae67,_0xaf82ba);if(_0x107177){const _0x1a4a1a=Array[_0x1020f5(0xdf)](_0x2e4496)[_0x1020f5(0xf2)](_0x3f88d4,_0x3f2012+0x1);this[_0x1020f5(0xdd)](_0x107177,_0x1a4a1a,_0x5b3d60),_0x3f88d4=-0x1;}}}else{if(this[_0x1020f5(0xe0)](_0x359fbe))_0x20ae67=!0x0;else{if(this[_0x1020f5(0x122)](_0x359fbe)){const _0x4a0908=_0x43fc81(_0x359fbe,_0x1020f5(0x106));if(_0x4a0908&&this[_0x1020f5(0x11a)][_0x1020f5(0x112)](_0x4a0908)){const _0x473455=_0x316f4c(_0x1020f5(0x106),_0x4a0908,_0xaf82ba);this[_0x1020f5(0x110)](_0x473455,_0x359fbe);}if(this[_0x1020f5(0x11b)][_0x1020f5(0x103)][_0x1020f5(0xe3)](_0x4a0908)){const _0x55e011=this[_0x1020f5(0x11b)][_0x1020f5(0x103)][_0x1020f5(0x11d)](_0x4a0908);this[_0x1020f5(0x11b)][_0x1020f5(0x103)][_0x1020f5(0x107)](_0x55e011,0x1);}}else{if(this[_0x1020f5(0xf5)](_0x359fbe)){const _0x5217e1=_0x43fc81(_0x359fbe,_0x1020f5(0x106));this[_0x1020f5(0x11b)][_0x1020f5(0x10e)][_0x1020f5(0xe3)](_0x5217e1)||this[_0x1020f5(0xfd)](_0x359fbe);}}}}}for(const _0x1c0746 of this[_0x1020f5(0x11b)][_0x1020f5(0x103)]){const _0x49b579=_0x316f4c(_0x1020f5(0x106),_0x1c0746,_0xaf82ba);if(_0x49b579){if(_0x272cf6&&_0x272cf6[_0x1020f5(0x115)]){this[_0x1020f5(0x11b)][_0x1020f5(0xf4)]=_0x1c0746;const _0x746fb9=_0x272cf6[_0x1020f5(0x115)][_0x1020f5(0x120)](!0x0);_0x1f9e36(_0x746fb9,_0x1020f5(0x106),_0x1c0746),_0x1f9e36(_0x746fb9,_0x1020f5(0x10a),_0x1020f5(0x101)),_0xf2dcc7(_0x49b579,_0x746fb9);}else _0x450074(_0x49b579);}}if(_0x499230(_0x1020f5(0xe8),null,_0xaf82ba)[_0x1020f5(0x10c)](_0x13ab72=>{const _0x159114=_0x1020f5,_0x2f4c4a=_0x43fc81(_0x13ab72,_0x159114(0xe8)),_0xd51d89=_0x316f4c(_0x159114(0x106),_0x2f4c4a,_0xaf82ba);_0xd51d89&&_0x2dac23(_0xd51d89,_0x13ab72);}),_0x499230(_0x1020f5(0x106),_0x1020f5(0xfe),_0xaf82ba)[_0x1020f5(0x10c)](_0x3b29f3=>{const _0x52a913=_0x1020f5,_0x4cda73=this[_0x52a913(0x118)](_0x3b29f3);_0x1f9e36(_0x3b29f3,_0x52a913(0x106),_0x4cda73),this[_0x52a913(0x11b)][_0x52a913(0xdb)][_0x52a913(0xe2)](_0x4cda73);}),this[_0x1020f5(0x119)](_0xaf82ba),_0x272cf6&&_0x272cf6[_0x1020f5(0xe7)]&&this[_0x1020f5(0x116)](_0xaf82ba,_0x272cf6[_0x1020f5(0x108)]||0x0),_0x272cf6&&_0x272cf6[_0x1020f5(0x10b)]&&this[_0x1020f5(0x11b)][_0x1020f5(0xf4)]){let _0xa01569=_0x316f4c(_0x1020f5(0x106),this[_0x1020f5(0x11b)][_0x1020f5(0xf4)],_0xaf82ba);for(;_0xa01569;)_0x4fefac(_0xa01569),_0xa01569=_0xa01569[_0x1020f5(0xec)];}return{'parsedContent':_0xaf82ba,'newNodeIds':this[_0x1020f5(0x11b)][_0x1020f5(0xdb)],'modifiedNodeIds':this[_0x1020f5(0x11b)][_0x1020f5(0x10e)],'removedNodeIds':this[_0x1020f5(0x11b)][_0x1020f5(0x103)]};}[_0x1cd92a(0xdd)](_0x7ebc8,_0x495be9,_0x2d9841){const _0x54bdb8=_0x1cd92a;for(const _0x39b632 of _0x495be9){const _0x617825=this[_0x54bdb8(0x118)](_0x39b632);_0x1f9e36(_0x39b632,_0x54bdb8(0x106),_0x617825),this[_0x54bdb8(0x11b)][_0x54bdb8(0xdb)][_0x54bdb8(0xe2)](_0x617825),this[_0x54bdb8(0x11b)][_0x54bdb8(0xf4)]=_0x617825;}const _0x541820=_0x54bdb8(0x10d)===_0x2d9841||_0x54bdb8(0xde)===_0x2d9841?_0x495be9[_0x54bdb8(0x104)]():_0x495be9;for(const _0x559253 of _0x541820)_0x572831(_0x7ebc8,_0x559253,_0x2d9841);}[_0x1cd92a(0x110)](_0x1db845,_0x25cd83){const _0x4cd81e=_0x1cd92a;if(!_0x1db845)return;if(_0x533ed1(_0x1db845,_0x25cd83))return;const _0x48ee57=this[_0x4cd81e(0x118)](_0x1db845);_0x1f9e36(_0x25cd83,_0x4cd81e(0x106),_0x48ee57),this[_0x4cd81e(0x11b)][_0x4cd81e(0x10e)][_0x4cd81e(0xe2)](_0x48ee57),this[_0x4cd81e(0x11b)][_0x4cd81e(0xf4)]=_0x48ee57,_0xf2dcc7(_0x1db845,_0x25cd83[_0x4cd81e(0x120)](!0x0));}[_0x1cd92a(0x102)](_0x4cb3ba,_0x119017,_0x5c1fea){const _0xef4b1b=_0x1cd92a,_0xd62124=this[_0xef4b1b(0x114)](_0x4cb3ba,!0x1);if(_0xd62124){const _0x667fe2=this[_0xef4b1b(0xf1)](_0xd62124),_0x5183cf=_0x316f4c(_0xef4b1b(0x106),_0x667fe2,_0x5c1fea);if(_0x5183cf)return[_0x5183cf,_0xef4b1b(0xde)];this[_0xef4b1b(0x11b)][_0xef4b1b(0x11c)][_0xef4b1b(0xe2)](_0x667fe2);}const _0x180579=this[_0xef4b1b(0xf0)](_0x4cb3ba,!0x1);if(_0x180579){const _0x5ce410=this[_0xef4b1b(0xf1)](_0x180579),_0x13fb7d=_0x316f4c(_0xef4b1b(0x106),_0x5ce410,_0x5c1fea);if(_0x13fb7d)return[_0x13fb7d,_0xef4b1b(0xeb)];this[_0xef4b1b(0x11b)][_0xef4b1b(0x11c)][_0xef4b1b(0xe2)](_0x5ce410);}return _0x119017?_0x4cb3ba[_0xef4b1b(0x10f)]?this[_0xef4b1b(0xee)](_0x4cb3ba,_0x5c1fea):[_0x5c1fea[_0xef4b1b(0xf3)][_0x5c1fea[_0xef4b1b(0xf3)][_0xef4b1b(0x117)]-0x1],_0xef4b1b(0xde)]:[_0x5c1fea[_0xef4b1b(0xf3)][0x0],_0xef4b1b(0xeb)];}[_0x1cd92a(0xee)](_0x5059e5,_0x4b4b94){const _0x2bc81b=_0x1cd92a,_0x153bc2=[],_0x11d30d=this[_0x2bc81b(0x114)](_0x5059e5,!0x0);if(_0x11d30d){const _0x13013f=this[_0x2bc81b(0xf1)](_0x11d30d),_0x424e9c=_0x316f4c(_0x2bc81b(0x106),_0x13013f,_0x4b4b94);_0x424e9c&&_0x153bc2[_0x2bc81b(0xe2)]([_0x424e9c,_0x2bc81b(0xde)]);}const _0x3e19ee=this[_0x2bc81b(0xf0)](_0x5059e5,!0x0);if(_0x3e19ee){const _0x11087e=this[_0x2bc81b(0xf1)](_0x3e19ee),_0xa114e1=_0x316f4c(_0x2bc81b(0x106),_0x11087e,_0x4b4b94);_0xa114e1&&_0x153bc2[_0x2bc81b(0xe2)]([_0xa114e1,_0x2bc81b(0xeb)]);}if(_0x153bc2[_0x2bc81b(0x117)]>0x1)return _0x27d44e(_0x153bc2[0x0][0x0])<=_0x27d44e(_0x153bc2[0x1][0x0])?_0x153bc2[0x0]:_0x153bc2[0x1];return 0x1===_0x153bc2[_0x2bc81b(0x117)]?_0x153bc2[0x0]:[_0x4b4b94[_0x2bc81b(0x105)],_0x2bc81b(0xde)];}[_0x1cd92a(0xf0)](_0x419824,_0x593777){const _0x2d450d=_0x1cd92a;let _0x218913=_0x419824[_0x2d450d(0x10f)],_0x586053=null,_0x342244=!0x1;for(;_0x218913;){if(_0x185e2d(_0x218913)){if(this[_0x2d450d(0xf5)](_0x218913)&&(_0x586053=_0x218913),this[_0x2d450d(0xe0)](_0x218913)&&_0x593777&&!_0x342244){_0x342244=!0x0,_0x218913=_0x218913[_0x2d450d(0x10f)];continue;}break;}const _0x2a079c=_0x43fc81(_0x218913,_0x2d450d(0x106));if(_0x2a079c&&_0x2d450d(0xfe)!==_0x2a079c&&this[_0x2d450d(0x11a)][_0x2d450d(0x112)](_0x2a079c)){_0x586053=_0x218913;break;}_0x218913=_0x218913[_0x2d450d(0x10f)];}return _0x586053;}[_0x1cd92a(0x114)](_0x51677f,_0x3db6bf){const _0x15f524=_0x1cd92a;let _0x420495=_0x51677f[_0x15f524(0xfa)],_0x522ed2=null,_0x496925=!0x1;for(;_0x420495;){if(_0x185e2d(_0x420495)){if(this[_0x15f524(0xf5)](_0x420495)&&(_0x522ed2=_0x420495),this[_0x15f524(0xe0)](_0x420495)&&_0x3db6bf&&!_0x496925){_0x496925=!0x0,_0x420495=_0x420495[_0x15f524(0xfa)];continue;}break;}const _0x2f275f=_0x43fc81(_0x420495,_0x15f524(0x106));if(_0x2f275f&&_0x15f524(0xfe)!==_0x2f275f&&this[_0x15f524(0x11a)][_0x15f524(0x112)](_0x2f275f)){_0x522ed2=_0x420495;break;}_0x420495=_0x420495[_0x15f524(0xfa)];}return _0x522ed2;}[_0x1cd92a(0xda)](_0x46dfc0){const _0x4a933d=_0x1cd92a;_0x46637d(_0x46dfc0)&&_0x499230(_0x4a933d(0x106),null,_0x46dfc0)[_0x4a933d(0x10c)](_0x5a30a7=>{const _0x595d1a=_0x4a933d;if(this[_0x595d1a(0x122)](_0x5a30a7)&&!this[_0x595d1a(0x100)](_0x5a30a7)){const _0x4d2d65=_0x43fc81(_0x5a30a7,_0x595d1a(0x106));_0x1f9e36(_0x5a30a7,_0x595d1a(0xe8),_0x4d2d65),_0x1f9e36(_0x5a30a7,_0x595d1a(0x106),null);}});}[_0x1cd92a(0xf1)](_0x357fd0){const _0x52a23a=_0x1cd92a;if(!_0x357fd0)return null;if(_0x46637d(_0x357fd0))return _0x43fc81(_0x357fd0,_0x52a23a(0x106));if(_0x185e2d(_0x357fd0)){const _0x338b9e=_0x434ecb(_0x357fd0)[_0x52a23a(0xe5)](/removed[\s*-]data-id="([^"]+)"/);if(_0x338b9e&&_0x338b9e[0x1])return _0x338b9e[0x1];}return null;}[_0x1cd92a(0xfd)](_0x1e4911){const _0x8a4a27=_0x1cd92a;if(_0x185e2d(_0x1e4911)){const _0x7048f4=_0x434ecb(_0x1e4911)[_0x8a4a27(0xe5)](/removed[\s*-]data-id="([^"]+)"/);_0x7048f4&&_0x7048f4[0x1]&&this[_0x8a4a27(0x11b)][_0x8a4a27(0x103)][_0x8a4a27(0xe2)](_0x7048f4[0x1]);}}[_0x1cd92a(0x118)](_0x223e34){const _0x21d4ce=_0x1cd92a;return this[_0x21d4ce(0x122)](_0x223e34)?_0x43fc81(_0x223e34,_0x21d4ce(0x106)):this[_0x21d4ce(0x109)]();}[_0x1cd92a(0x119)](_0x6a7435){const _0x16f376=_0x1cd92a;_0x4d6b39(_0x6a7435)[_0x16f376(0xff)](_0x432cd6=>this[_0x16f376(0xf5)](_0x432cd6)||this[_0x16f376(0xe0)](_0x432cd6))[_0x16f376(0x10c)](_0x426042=>{_0x450074(_0x426042);});}[_0x1cd92a(0xdc)](_0xfcd77f){const _0x2a9cb5=_0x1cd92a,_0x584fd2=_0xfcd77f[_0x2a9cb5(0xf3)],_0x426dab=_0x584fd2[_0x584fd2[_0x2a9cb5(0x117)]-0x1];_0x426dab&&_0x46637d(_0x426dab)&&_0x1f9e36(_0x426dab,_0x2a9cb5(0xf9),_0x2a9cb5(0x101));}[_0x1cd92a(0x116)](_0x47a834,_0x5dd8e4){const _0x388d7c=_0x1cd92a,_0x1f4331=_0x316f4c(_0x388d7c(0xf9),_0x388d7c(0x101),_0x47a834);if(!_0x1f4331)return;const _0x488c25=_0x2cdf21(_0x1f4331)[_0x388d7c(0xf2)](0x0,-0x1),_0x435c77=_0x488c25[_0x388d7c(0x117)];let _0xb291eb=_0x1f4331;if(_0x435c77>_0x5dd8e4){let _0x2a670e=_0x435c77,_0x567059=null;for(;_0x2a670e>_0x5dd8e4&&_0x2a670e>=0x0;)_0x2a670e--,_0x567059=_0x488c25[_0x2a670e];_0x567059&&(_0xb291eb=_0x567059,_0x1f9e36(_0x1f4331,_0x388d7c(0xf9),null),_0x1f9e36(_0x567059,_0x388d7c(0xf9),_0x388d7c(0x101)));}else{if(_0x435c77<_0x5dd8e4){let _0x1d99bd=_0x435c77,_0x1a86af=_0x1f4331;for(;_0x1d99bd<_0x5dd8e4;){const _0x3313d6=_0x1a86af[_0x388d7c(0xf3)][_0x388d7c(0xff)](_0x43f1c4=>_0x46637d(_0x43f1c4));if(0x0===_0x3313d6[_0x388d7c(0x117)])break;_0x1d99bd++,_0x1a86af=_0x3313d6[_0x3313d6[_0x388d7c(0x117)]-0x1];}_0x1a86af&&(_0xb291eb=_0x1a86af,_0x1f9e36(_0x1f4331,_0x388d7c(0xf9),null),_0x1f9e36(_0x1a86af,_0x388d7c(0xf9),_0x388d7c(0x101)));}}let _0x2a1008=_0xb291eb;for(;_0x2a1008;){for(;_0x2a1008[_0x388d7c(0x10f)];)_0x2a1008=_0x2a1008[_0x388d7c(0x10f)],_0x46637d(_0x2a1008)&&_0x1f9e36(_0x2a1008,_0x388d7c(0xf9),_0x388d7c(0x101));_0x2a1008=_0x2a1008[_0x388d7c(0xec)];}}[_0x1cd92a(0xfb)](_0x4c6356){const _0x481237=_0x1cd92a;return Boolean(_0x481237(0xfe)===_0x43fc81(_0x4c6356,_0x481237(0x106)));}[_0x1cd92a(0x122)](_0x269e4b){const _0x8a4d34=_0x1cd92a;return Boolean((_0x43fc81(_0x269e4b,_0x8a4d34(0x106))||'')[_0x8a4d34(0x117)]>0x0&&_0x8a4d34(0xfe)!==_0x43fc81(_0x269e4b,_0x8a4d34(0x106)));}[_0x1cd92a(0xf5)](_0xbc9756){const _0x252018=_0x1cd92a;return!!_0xbc9756&&Boolean(_0x185e2d(_0xbc9756)&&_0x434ecb(_0xbc9756)[_0x252018(0xe5)](/removed[\s*-]data-id="[^"]+"/));}[_0x1cd92a(0x100)](_0xd6e0d8){const _0x4d8beb=_0x1cd92a;let _0x2cf869=_0xd6e0d8[_0x4d8beb(0xec)];for(;_0x2cf869;){if(_0x43fc81(_0x2cf869,_0x4d8beb(0xe8)))return!0x0;_0x2cf869=_0x2cf869[_0x4d8beb(0xec)];}return!0x1;}[_0x1cd92a(0xe0)](_0x6c62ed){const _0x44dd5f=_0x1cd92a;return Boolean(_0x185e2d(_0x6c62ed)&&_0x434ecb(_0x6c62ed)[_0x44dd5f(0xe5)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x46c7(){const _0x1e4e7e=['push','_hasWrappedParent','12702780IVRpcz','nodeType','data-id','afterend','1177832bRpeZW','has','replaceRemovedWith','true','filter','_markWrappedElements','removedIds','_isNewNode','_removeSpecialComments','785583WTHXIv','_isDelNode','_touchedNodesState','_storeDeletedElementIds','216tjMxWX','_getNodeDataId','trim','cutAfterLastChange','new-element','3VkdRFA','215220EPIliG','reverse','_findNextElementWithDataId','92oXiyYf','previousSibling','childNodes','nextSibling','newIds','invalidIds','markUnstableElementsDepth','lastChild','_existingDataIds','451WzNAUf','lastTouchedId','_replaceNode','data-unstable','_markLastTagElementUnstable','indexOf','from','211615xcITpL','_getUid','includes','data-wrapped-id','_markUnstableElements','data-removed','forEach','modifiedIds','_findFallbackReferenceNode','_findPrevElementWithDataId','beforebegin','cloneNode','parentNode','_generateUid','match','_insertNodes','merge','splice','488vTyaeC','map','_isExistingNode','slice','158823bFvGAP','length','139989STQFxK','afterbegin','_isExistingContentComment','markUnstableElements','_findReferenceNode'];_0x46c7=function(){return _0x1e4e7e;};return _0x46c7();}const _0x221c77=_0x3407;(function(_0x44a4e5,_0x48756b){const _0x4fd5c3=_0x3407,_0x3b36cb=_0x44a4e5();while(!![]){try{const _0x595eec=-parseInt(_0x4fd5c3(0xe6))/0x1*(-parseInt(_0x4fd5c3(0x11d))/0x2)+parseInt(_0x4fd5c3(0x112))/0x3*(parseInt(_0x4fd5c3(0xea))/0x4)+parseInt(_0x4fd5c3(0xfa))/0x5*(parseInt(_0x4fd5c3(0xe1))/0x6)+-parseInt(_0x4fd5c3(0x110))/0x7*(parseInt(_0x4fd5c3(0x10c))/0x8)+-parseInt(_0x4fd5c3(0xdd))/0x9+-parseInt(_0x4fd5c3(0x119))/0xa+parseInt(_0x4fd5c3(0xf3))/0xb*(-parseInt(_0x4fd5c3(0xe7))/0xc);if(_0x595eec===_0x48756b)break;else _0x3b36cb['push'](_0x3b36cb['shift']());}catch(_0x277635){_0x3b36cb['push'](_0x3b36cb['shift']());}}}(_0x46c7,0xd87a8));import{ObservableMixin as _0x35ccac,uid as _0x5a1746}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x52ee52,findByAttribute as _0x26c226,getAttribute as _0x2f5d61,isComment as _0x4f17e9,isTag as _0xf7a53d,insertElement as _0x493ada,moveElement as _0x1d4cd6,removeElement as _0xdf2c7d,replaceElement as _0x57b9bc,serialize as _0xc23915,setAttribute as _0x510964,clone as _0x320393,findAllComments as _0x348ace,getParents as _0x32b1d0,getNodeNestingLevel as _0x509e95,areNodesSame as _0x5ca035,removeElementsAfter as _0x4b22cd}from'../utils/htmlparser.js';function _0x3407(_0x2dbed4,_0x53f0af){const _0x46c7d1=_0x46c7();return _0x3407=function(_0x3407ec,_0x598793){_0x3407ec=_0x3407ec-0xd8;let _0x201b51=_0x46c7d1[_0x3407ec];return _0x201b51;},_0x3407(_0x2dbed4,_0x53f0af);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x35ccac(){[_0x221c77(0x107)];[_0x221c77(0xdf)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x221c77(0xf2)]=new Set();constructor(_0x4fd4cb){const _0x591b81=_0x221c77;super(),this[_0x591b81(0x107)]=_0x4fd4cb||_0x5a1746;}[_0x221c77(0x10a)](_0x408d2e,_0x20db38,_0x589533){const _0xb6cb8d=_0x221c77,_0x5e8ad3=_0x320393(_0x408d2e);if(0x0===_0x20db38[_0xb6cb8d(0xec)][_0xb6cb8d(0x111)]){const _0x32ecde=[];return _0x52ee52(_0xb6cb8d(0x11b),_0xb6cb8d(0xe5),_0x5e8ad3)[_0xb6cb8d(0x100)](_0x2cc4e4=>{const _0x5e774e=_0xb6cb8d,_0x581799=this[_0x5e774e(0x107)]();_0x510964(_0x2cc4e4,_0x5e774e(0x11b),_0x581799),_0x32ecde[_0x5e774e(0x117)](_0x581799);}),this[_0xb6cb8d(0xdc)](_0x5e8ad3),{'parsedContent':_0x5e8ad3,'newNodeIds':_0x32ecde,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x589533&&_0x589533[_0xb6cb8d(0x115)]&&this[_0xb6cb8d(0xf7)](_0x5e8ad3),this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xee)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0x101)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xef)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)]=null,this[_0xb6cb8d(0xf2)]=new Set(_0x52ee52(_0xb6cb8d(0x11b),null,_0x20db38)[_0xb6cb8d(0x10d)](_0x1d7247=>_0x2f5d61(_0x1d7247,_0xb6cb8d(0x11b)))[_0xb6cb8d(0xd8)](_0xcfc896=>!!_0xcfc896));let _0x526522=-0x1,_0x29079e=!0x1;const _0x133817=_0x5e8ad3[_0xb6cb8d(0xec)],_0x5db9fe=Array[_0xb6cb8d(0xf9)](_0x133817)[_0xb6cb8d(0xd8)](_0x4908e7=>!(0x3===_0x4908e7[_0xb6cb8d(0x11a)]&&''===_0xc23915(_0x4908e7)[_0xb6cb8d(0xe3)]())),_0x1e0983=_0x5db9fe[_0xb6cb8d(0x111)];for(let _0x23389b=0x0;_0x23389b<_0x1e0983;_0x23389b++){const _0x46b79a=_0x5db9fe[_0x23389b],_0x3a427c=_0x5db9fe[_0x23389b+0x1];if(this[_0xb6cb8d(0xdb)](_0x46b79a)){if(-0x1===_0x526522&&(_0x526522=_0x23389b),this[_0xb6cb8d(0xd9)](_0x46b79a),!this[_0xb6cb8d(0xdb)](_0x3a427c)){const [_0x5b8a7e,_0x56f84b]=this[_0xb6cb8d(0x116)](_0x46b79a,_0x29079e,_0x20db38);if(_0x5b8a7e){const _0x44423f=Array[_0xb6cb8d(0xf9)](_0x5db9fe)[_0xb6cb8d(0x10f)](_0x526522,_0x23389b+0x1);this[_0xb6cb8d(0x109)](_0x5b8a7e,_0x44423f,_0x56f84b),_0x526522=-0x1;}}}else{if(this[_0xb6cb8d(0x114)](_0x46b79a))_0x29079e=!0x0;else{if(this[_0xb6cb8d(0x10e)](_0x46b79a)){const _0x2ddcfd=_0x2f5d61(_0x46b79a,_0xb6cb8d(0x11b));if(_0x2ddcfd&&this[_0xb6cb8d(0xf2)][_0xb6cb8d(0x11e)](_0x2ddcfd)){const _0x524c57=_0x26c226(_0xb6cb8d(0x11b),_0x2ddcfd,_0x20db38);this[_0xb6cb8d(0xf5)](_0x524c57,_0x46b79a);}if(this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)][_0xb6cb8d(0xfc)](_0x2ddcfd)){const _0x2a86d2=this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)][_0xb6cb8d(0xf8)](_0x2ddcfd);this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)][_0xb6cb8d(0x10b)](_0x2a86d2,0x1);}}else{if(this[_0xb6cb8d(0xde)](_0x46b79a)){const _0x5c332f=_0x2f5d61(_0x46b79a,_0xb6cb8d(0x11b));this[_0xb6cb8d(0xdf)][_0xb6cb8d(0x101)][_0xb6cb8d(0xfc)](_0x5c332f)||this[_0xb6cb8d(0xe0)](_0x46b79a);}}}}}for(const _0x16aa1d of this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)]){const _0x41ef7f=_0x26c226(_0xb6cb8d(0x11b),_0x16aa1d,_0x20db38);if(_0x41ef7f){if(_0x589533&&_0x589533[_0xb6cb8d(0x11f)]){this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)]=_0x16aa1d;const _0x4938c0=_0x589533[_0xb6cb8d(0x11f)][_0xb6cb8d(0x105)](!0x0);_0x510964(_0x4938c0,_0xb6cb8d(0x11b),_0x16aa1d),_0x510964(_0x4938c0,_0xb6cb8d(0xff),_0xb6cb8d(0x120)),_0x57b9bc(_0x41ef7f,_0x4938c0);}else _0xdf2c7d(_0x41ef7f);}}if(_0x52ee52(_0xb6cb8d(0xfd),null,_0x20db38)[_0xb6cb8d(0x100)](_0xff2d7=>{const _0x4a116b=_0xb6cb8d,_0x11b2d5=_0x2f5d61(_0xff2d7,_0x4a116b(0xfd)),_0x2aabba=_0x26c226(_0x4a116b(0x11b),_0x11b2d5,_0x20db38);_0x2aabba&&_0x1d4cd6(_0x2aabba,_0xff2d7);}),_0x52ee52(_0xb6cb8d(0x11b),_0xb6cb8d(0xe5),_0x20db38)[_0xb6cb8d(0x100)](_0x357654=>{const _0x41ae6f=_0xb6cb8d,_0x3e3cfa=this[_0x41ae6f(0xfb)](_0x357654);_0x510964(_0x357654,_0x41ae6f(0x11b),_0x3e3cfa),this[_0x41ae6f(0xdf)][_0x41ae6f(0xee)][_0x41ae6f(0x117)](_0x3e3cfa);}),this[_0xb6cb8d(0xdc)](_0x20db38),_0x589533&&_0x589533[_0xb6cb8d(0x115)]&&this[_0xb6cb8d(0xfe)](_0x20db38,_0x589533[_0xb6cb8d(0xf0)]||0x0),_0x589533&&_0x589533[_0xb6cb8d(0xe4)]&&this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)]){let _0x321a5c=_0x26c226(_0xb6cb8d(0x11b),this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)],_0x20db38);for(;_0x321a5c;)_0x4b22cd(_0x321a5c),_0x321a5c=_0x321a5c[_0xb6cb8d(0x106)];}return{'parsedContent':_0x20db38,'newNodeIds':this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xee)],'modifiedNodeIds':this[_0xb6cb8d(0xdf)][_0xb6cb8d(0x101)],'removedNodeIds':this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)]};}[_0x221c77(0x109)](_0x1a2d2a,_0x1cba7c,_0x150372){const _0x15bffd=_0x221c77;for(const _0x8ad5b2 of _0x1cba7c){const _0x3a40fc=this[_0x15bffd(0xfb)](_0x8ad5b2);_0x510964(_0x8ad5b2,_0x15bffd(0x11b),_0x3a40fc),this[_0x15bffd(0xdf)][_0x15bffd(0xee)][_0x15bffd(0x117)](_0x3a40fc),this[_0x15bffd(0xdf)][_0x15bffd(0xf4)]=_0x3a40fc;}const _0x4d810d=_0x15bffd(0x113)===_0x150372||_0x15bffd(0x11c)===_0x150372?_0x1cba7c[_0x15bffd(0xe8)]():_0x1cba7c;for(const _0x368d81 of _0x4d810d)_0x493ada(_0x1a2d2a,_0x368d81,_0x150372);}[_0x221c77(0xf5)](_0x8d4013,_0x2829c1){const _0x26e279=_0x221c77;if(!_0x8d4013)return;if(_0x5ca035(_0x8d4013,_0x2829c1))return;const _0x4b2ad6=this[_0x26e279(0xfb)](_0x8d4013);_0x510964(_0x2829c1,_0x26e279(0x11b),_0x4b2ad6),this[_0x26e279(0xdf)][_0x26e279(0x101)][_0x26e279(0x117)](_0x4b2ad6),this[_0x26e279(0xdf)][_0x26e279(0xf4)]=_0x4b2ad6,_0x57b9bc(_0x8d4013,_0x2829c1[_0x26e279(0x105)](!0x0));}[_0x221c77(0x116)](_0x2e7022,_0x19a335,_0x9ee649){const _0x578e23=_0x221c77,_0xd207e1=this[_0x578e23(0x103)](_0x2e7022,!0x1);if(_0xd207e1){const _0x211107=this[_0x578e23(0xe2)](_0xd207e1),_0x1f8864=_0x26c226(_0x578e23(0x11b),_0x211107,_0x9ee649);if(_0x1f8864)return[_0x1f8864,_0x578e23(0x11c)];this[_0x578e23(0xdf)][_0x578e23(0xef)][_0x578e23(0x117)](_0x211107);}const _0x276733=this[_0x578e23(0xe9)](_0x2e7022,!0x1);if(_0x276733){const _0x3a3c12=this[_0x578e23(0xe2)](_0x276733),_0x46d305=_0x26c226(_0x578e23(0x11b),_0x3a3c12,_0x9ee649);if(_0x46d305)return[_0x46d305,_0x578e23(0x104)];this[_0x578e23(0xdf)][_0x578e23(0xef)][_0x578e23(0x117)](_0x3a3c12);}return _0x19a335?_0x2e7022[_0x578e23(0xed)]?this[_0x578e23(0x102)](_0x2e7022,_0x9ee649):[_0x9ee649[_0x578e23(0xec)][_0x9ee649[_0x578e23(0xec)][_0x578e23(0x111)]-0x1],_0x578e23(0x11c)]:[_0x9ee649[_0x578e23(0xec)][0x0],_0x578e23(0x104)];}[_0x221c77(0x102)](_0x45621f,_0x52e6b8){const _0x2f3b4e=_0x221c77,_0x4720c9=[],_0x5af1d0=this[_0x2f3b4e(0x103)](_0x45621f,!0x0);if(_0x5af1d0){const _0x1e717a=this[_0x2f3b4e(0xe2)](_0x5af1d0),_0x56eaa8=_0x26c226(_0x2f3b4e(0x11b),_0x1e717a,_0x52e6b8);_0x56eaa8&&_0x4720c9[_0x2f3b4e(0x117)]([_0x56eaa8,_0x2f3b4e(0x11c)]);}const _0x6bc904=this[_0x2f3b4e(0xe9)](_0x45621f,!0x0);if(_0x6bc904){const _0xe78098=this[_0x2f3b4e(0xe2)](_0x6bc904),_0x1a289e=_0x26c226(_0x2f3b4e(0x11b),_0xe78098,_0x52e6b8);_0x1a289e&&_0x4720c9[_0x2f3b4e(0x117)]([_0x1a289e,_0x2f3b4e(0x104)]);}if(_0x4720c9[_0x2f3b4e(0x111)]>0x1)return _0x509e95(_0x4720c9[0x0][0x0])<=_0x509e95(_0x4720c9[0x1][0x0])?_0x4720c9[0x0]:_0x4720c9[0x1];return 0x1===_0x4720c9[_0x2f3b4e(0x111)]?_0x4720c9[0x0]:[_0x52e6b8[_0x2f3b4e(0xf1)],_0x2f3b4e(0x11c)];}[_0x221c77(0xe9)](_0x4fcbf1,_0x4e91ac){const _0x320367=_0x221c77;let _0x3ba67b=_0x4fcbf1[_0x320367(0xed)],_0x2b52b3=null,_0xceb214=!0x1;for(;_0x3ba67b;){if(_0x4f17e9(_0x3ba67b)){if(this[_0x320367(0xde)](_0x3ba67b)&&(_0x2b52b3=_0x3ba67b),this[_0x320367(0x114)](_0x3ba67b)&&_0x4e91ac&&!_0xceb214){_0xceb214=!0x0,_0x3ba67b=_0x3ba67b[_0x320367(0xed)];continue;}break;}const _0x4752bd=_0x2f5d61(_0x3ba67b,_0x320367(0x11b));if(_0x4752bd&&_0x320367(0xe5)!==_0x4752bd&&this[_0x320367(0xf2)][_0x320367(0x11e)](_0x4752bd)){_0x2b52b3=_0x3ba67b;break;}_0x3ba67b=_0x3ba67b[_0x320367(0xed)];}return _0x2b52b3;}[_0x221c77(0x103)](_0x1913fa,_0x5bfafe){const _0x4d42f2=_0x221c77;let _0x4f9f82=_0x1913fa[_0x4d42f2(0xeb)],_0xc0194e=null,_0x422aa1=!0x1;for(;_0x4f9f82;){if(_0x4f17e9(_0x4f9f82)){if(this[_0x4d42f2(0xde)](_0x4f9f82)&&(_0xc0194e=_0x4f9f82),this[_0x4d42f2(0x114)](_0x4f9f82)&&_0x5bfafe&&!_0x422aa1){_0x422aa1=!0x0,_0x4f9f82=_0x4f9f82[_0x4d42f2(0xeb)];continue;}break;}const _0x4a4eb9=_0x2f5d61(_0x4f9f82,_0x4d42f2(0x11b));if(_0x4a4eb9&&_0x4d42f2(0xe5)!==_0x4a4eb9&&this[_0x4d42f2(0xf2)][_0x4d42f2(0x11e)](_0x4a4eb9)){_0xc0194e=_0x4f9f82;break;}_0x4f9f82=_0x4f9f82[_0x4d42f2(0xeb)];}return _0xc0194e;}[_0x221c77(0xd9)](_0xafb11c){const _0xc7be58=_0x221c77;_0xf7a53d(_0xafb11c)&&_0x52ee52(_0xc7be58(0x11b),null,_0xafb11c)[_0xc7be58(0x100)](_0x3c935d=>{const _0x25511a=_0xc7be58;if(this[_0x25511a(0x10e)](_0x3c935d)&&!this[_0x25511a(0x118)](_0x3c935d)){const _0x525bf6=_0x2f5d61(_0x3c935d,_0x25511a(0x11b));_0x510964(_0x3c935d,_0x25511a(0xfd),_0x525bf6),_0x510964(_0x3c935d,_0x25511a(0x11b),null);}});}[_0x221c77(0xe2)](_0x804271){const _0x5ac79c=_0x221c77;if(!_0x804271)return null;if(_0xf7a53d(_0x804271))return _0x2f5d61(_0x804271,_0x5ac79c(0x11b));if(_0x4f17e9(_0x804271)){const _0x7b0fd=_0xc23915(_0x804271)[_0x5ac79c(0x108)](/removed[\s*-]data-id="([^"]+)"/);if(_0x7b0fd&&_0x7b0fd[0x1])return _0x7b0fd[0x1];}return null;}[_0x221c77(0xe0)](_0x3cafcf){const _0xe1d3f4=_0x221c77;if(_0x4f17e9(_0x3cafcf)){const _0x182a15=_0xc23915(_0x3cafcf)[_0xe1d3f4(0x108)](/removed[\s*-]data-id="([^"]+)"/);_0x182a15&&_0x182a15[0x1]&&this[_0xe1d3f4(0xdf)][_0xe1d3f4(0xda)][_0xe1d3f4(0x117)](_0x182a15[0x1]);}}[_0x221c77(0xfb)](_0x64e1a1){const _0x56c3bb=_0x221c77;return this[_0x56c3bb(0x10e)](_0x64e1a1)?_0x2f5d61(_0x64e1a1,_0x56c3bb(0x11b)):this[_0x56c3bb(0x107)]();}[_0x221c77(0xdc)](_0x4d81f6){const _0x8a23e1=_0x221c77;_0x348ace(_0x4d81f6)[_0x8a23e1(0xd8)](_0x18f866=>this[_0x8a23e1(0xde)](_0x18f866)||this[_0x8a23e1(0x114)](_0x18f866))[_0x8a23e1(0x100)](_0x2764e5=>{_0xdf2c7d(_0x2764e5);});}[_0x221c77(0xf7)](_0x351bd2){const _0xa03ff2=_0x221c77,_0x5e8e37=_0x351bd2[_0xa03ff2(0xec)],_0x47fb76=_0x5e8e37[_0x5e8e37[_0xa03ff2(0x111)]-0x1];_0x47fb76&&_0xf7a53d(_0x47fb76)&&_0x510964(_0x47fb76,_0xa03ff2(0xf6),_0xa03ff2(0x120));}[_0x221c77(0xfe)](_0x1a07d8,_0x1fcff0){const _0x21e30c=_0x221c77,_0x2170d0=_0x26c226(_0x21e30c(0xf6),_0x21e30c(0x120),_0x1a07d8);if(!_0x2170d0)return;const _0x31e40a=_0x32b1d0(_0x2170d0)[_0x21e30c(0x10f)](0x0,-0x1),_0xe8e5a4=_0x31e40a[_0x21e30c(0x111)];let _0x2bfdb6=_0x2170d0;if(_0xe8e5a4>_0x1fcff0){let _0x55d076=_0xe8e5a4,_0xf07ced=null;for(;_0x55d076>_0x1fcff0&&_0x55d076>=0x0;)_0x55d076--,_0xf07ced=_0x31e40a[_0x55d076];_0xf07ced&&(_0x2bfdb6=_0xf07ced,_0x510964(_0x2170d0,_0x21e30c(0xf6),null),_0x510964(_0xf07ced,_0x21e30c(0xf6),_0x21e30c(0x120)));}else{if(_0xe8e5a4<_0x1fcff0){let _0x2b152e=_0xe8e5a4,_0x511ed3=_0x2170d0;for(;_0x2b152e<_0x1fcff0;){const _0x146cae=_0x511ed3[_0x21e30c(0xec)][_0x21e30c(0xd8)](_0x4b1232=>_0xf7a53d(_0x4b1232));if(0x0===_0x146cae[_0x21e30c(0x111)])break;_0x2b152e++,_0x511ed3=_0x146cae[_0x146cae[_0x21e30c(0x111)]-0x1];}_0x511ed3&&(_0x2bfdb6=_0x511ed3,_0x510964(_0x2170d0,_0x21e30c(0xf6),null),_0x510964(_0x511ed3,_0x21e30c(0xf6),_0x21e30c(0x120)));}}let _0xf75274=_0x2bfdb6;for(;_0xf75274;){for(;_0xf75274[_0x21e30c(0xed)];)_0xf75274=_0xf75274[_0x21e30c(0xed)],_0xf7a53d(_0xf75274)&&_0x510964(_0xf75274,_0x21e30c(0xf6),_0x21e30c(0x120));_0xf75274=_0xf75274[_0x21e30c(0x106)];}}[_0x221c77(0xdb)](_0x2a7591){const _0x4aae5d=_0x221c77;return Boolean(_0x4aae5d(0xe5)===_0x2f5d61(_0x2a7591,_0x4aae5d(0x11b)));}[_0x221c77(0x10e)](_0x4493b9){const _0x2ab857=_0x221c77;return Boolean((_0x2f5d61(_0x4493b9,_0x2ab857(0x11b))||'')[_0x2ab857(0x111)]>0x0&&_0x2ab857(0xe5)!==_0x2f5d61(_0x4493b9,_0x2ab857(0x11b)));}[_0x221c77(0xde)](_0x159118){const _0x423010=_0x221c77;return!!_0x159118&&Boolean(_0x4f17e9(_0x159118)&&_0xc23915(_0x159118)[_0x423010(0x108)](/removed[\s*-]data-id="[^"]+"/));}[_0x221c77(0x118)](_0x5b1c4b){const _0x337389=_0x221c77;let _0x27a8a2=_0x5b1c4b[_0x337389(0x106)];for(;_0x27a8a2;){if(_0x2f5d61(_0x27a8a2,_0x337389(0xfd)))return!0x0;_0x27a8a2=_0x27a8a2[_0x337389(0x106)];}return!0x1;}[_0x221c77(0x114)](_0x573462){const _0x4dc634=_0x221c77;return Boolean(_0x4f17e9(_0x573462)&&_0xc23915(_0x573462)[_0x4dc634(0x108)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x5a110e=_0x1213;(function(_0x175397,_0x8181f6){const _0x2810c2=_0x1213,_0x4a085c=_0x175397();while(!![]){try{const _0x58efc3=-parseInt(_0x2810c2(0x9f))/0x1+-parseInt(_0x2810c2(0x9a))/0x2*(-parseInt(_0x2810c2(0x9d))/0x3)+parseInt(_0x2810c2(0x9b))/0x4*(-parseInt(_0x2810c2(0x91))/0x5)+parseInt(_0x2810c2(0x94))/0x6+parseInt(_0x2810c2(0x95))/0x7+-parseInt(_0x2810c2(0x98))/0x8+-parseInt(_0x2810c2(0x9e))/0x9;if(_0x58efc3===_0x8181f6)break;else _0x4a085c['push'](_0x4a085c['shift']());}catch(_0x8ded0e){_0x4a085c['push'](_0x4a085c['shift']());}}}(_0x49c9,0x28b3a));import{ObservableMixin as _0x5488ef}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x16ce8b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5a3909}from'../utils/htmlparser.js';function _0x1213(_0x4d556e,_0x234ddc){const _0x49c934=_0x49c9();return _0x1213=function(_0x121399,_0x362e1d){_0x121399=_0x121399-0x91;let _0x58d61a=_0x49c934[_0x121399];return _0x58d61a;},_0x1213(_0x4d556e,_0x234ddc);}function _0x49c9(){const _0x9978=['<dummy>','1152824lqWiOW','parse','47132AxUKil','20RlqKLo','parseAndNormalizeHTML','39Tafeuv','1198674uZfeHC','290281KizFno','</dummy>','_parseHTML','convertMarkdownToHTML','42485frJRfv','replace','children','1045272vjxGaU','2073393FmHsTT','_m2html'];_0x49c9=function(){return _0x9978;};return _0x49c9();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5488ef(){[_0x5a110e(0x96)];constructor(){const _0x4c3a1d=_0x5a110e;super(),this[_0x4c3a1d(0x96)]=new _0x16ce8b();}[_0x5a110e(0xa2)](_0x484528){const _0x39f6b6=_0x5a110e,_0x2285e4=this[_0x39f6b6(0x96)][_0x39f6b6(0x99)](_0x484528);return this[_0x39f6b6(0x9c)](_0x2285e4);}[_0x5a110e(0x9c)](_0x24119d){const _0x4fb81e=_0x5a110e;return this[_0x4fb81e(0xa1)](_0x24119d);}[_0x5a110e(0xa1)](_0x22a446){const _0xa87c51=_0x5a110e,_0x400e4e=_0x22a446[_0xa87c51(0x92)](/^\t+/gm,'\x20')[_0xa87c51(0x92)](/\n*/g,'')[_0xa87c51(0x92)](/\s+/g,'\x20')[_0xa87c51(0x92)](/<[^>]*?$/g,''),_0x424223=_0x5a3909(_0xa87c51(0x97)+_0x400e4e+_0xa87c51(0xa0));return _0x424223[_0xa87c51(0x93)]=_0x424223[_0xa87c51(0x93)][0x0][_0xa87c51(0x93)],_0x424223;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2098de,_0x396cb4){var _0x1c687f=_0x5def,_0x455d6e=_0x2098de();while(!![]){try{var _0x5f3859=parseInt(_0x1c687f(0xce))/0x1*(parseInt(_0x1c687f(0xc4))/0x2)+-parseInt(_0x1c687f(0xca))/0x3*(parseInt(_0x1c687f(0xcc))/0x4)+-parseInt(_0x1c687f(0xcd))/0x5+-parseInt(_0x1c687f(0xc7))/0x6+parseInt(_0x1c687f(0xcf))/0x7*(-parseInt(_0x1c687f(0xc6))/0x8)+-parseInt(_0x1c687f(0xc8))/0x9+parseInt(_0x1c687f(0xc9))/0xa;if(_0x5f3859===_0x396cb4)break;else _0x455d6e['push'](_0x455d6e['shift']());}catch(_0x3293a2){_0x455d6e['push'](_0x455d6e['shift']());}}}(_0x1f0f,0x581db));import{View as _0x8ee306}from'ckeditor5/src/ui.js';function _0x5def(_0x2454b5,_0x5af894){var _0x1f0fda=_0x1f0f();return _0x5def=function(_0x5def6d,_0x289d96){_0x5def6d=_0x5def6d-0xc2;var _0x2a1871=_0x1f0fda[_0x5def6d];return _0x2a1871;},_0x5def(_0x2454b5,_0x5af894);}import{getTranslation as _0x1bdfee}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x8ee306{constructor(_0x438e41){var _0x25c3de=_0x5def;super(_0x438e41),this[_0x25c3de(0xc3)]({'tag':_0x25c3de(0xc2),'attributes':{'class':['ck',_0x25c3de(0xd0)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x25c3de(0xcb)]},'children':[{'text':_0x1bdfee(_0x438e41,_0x25c3de(0xc5))}]}]});}}function _0x1f0f(){var _0x2e757d=['div','setTemplate','74ucNLnE','AI_DISCLAIMER_TEXT','1349104QzHRJS','3169638QWokIc','6016248cvBbOV','27974960sVPagY','3DVOBFm','ck-ai-disclaimer__content','2033688GaOMqm','3359775ZbnlfV','2951AfIfVC','7icrzPZ','ck-ai-disclaimer'];_0x1f0f=function(){return _0x2e757d;};return _0x1f0f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4f0ab8=_0xc855;function _0xc855(_0x57ff46,_0x70c414){const _0x54dda0=_0x54dd();return _0xc855=function(_0xc85563,_0xef15ba){_0xc85563=_0xc85563-0x14b;let _0x1016d5=_0x54dda0[_0xc85563];return _0x1016d5;},_0xc855(_0x57ff46,_0x70c414);}(function(_0x15b171,_0x140bbc){const _0x58daa6=_0xc855,_0x2a2ada=_0x15b171();while(!![]){try{const _0x1325e9=parseInt(_0x58daa6(0x14b))/0x1+parseInt(_0x58daa6(0x150))/0x2*(-parseInt(_0x58daa6(0x155))/0x3)+-parseInt(_0x58daa6(0x16d))/0x4+-parseInt(_0x58daa6(0x151))/0x5*(-parseInt(_0x58daa6(0x170))/0x6)+parseInt(_0x58daa6(0x164))/0x7+parseInt(_0x58daa6(0x15f))/0x8*(-parseInt(_0x58daa6(0x14c))/0x9)+-parseInt(_0x58daa6(0x174))/0xa*(-parseInt(_0x58daa6(0x14e))/0xb);if(_0x1325e9===_0x140bbc)break;else _0x2a2ada['push'](_0x2a2ada['shift']());}catch(_0x13aa09){_0x2a2ada['push'](_0x2a2ada['shift']());}}}(_0x54dd,0x98d51));import{View as _0x259997}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x259997{constructor(_0x3fd435,_0x1f0ce2){const _0x5c2be0=_0xc855;super(_0x3fd435),this[_0x5c2be0(0x163)]({'tag':_0x5c2be0(0x171),'attributes':{'class':['ck',_0x5c2be0(0x16a)]},'children':this[_0x5c2be0(0x165)](_0x1f0ce2)});}[_0x4f0ab8(0x165)](_0x22f4ca){const _0x3f8eac=_0x4f0ab8,_0x2a906d=['ck',_0x3f8eac(0x172)];return _0x22f4ca[_0x3f8eac(0x169)](_0x533336=>{const _0x1add46=_0x3f8eac;let _0x4fc624='';switch(_0x533336[_0x1add46(0x173)][_0x1add46(0x15a)]){case _0x1add46(0x152):_0x4fc624=_0x1add46(0x16f);break;case _0x1add46(0x157):_0x4fc624=_0x1add46(0x156);break;case _0x1add46(0x167):_0x4fc624=_0x1add46(0x14f);}return{'tag':_0x533336[_0x1add46(0x14d)],'attributes':{'class':[..._0x2a906d,_0x533336[_0x1add46(0x173)][_0x1add46(0x162)]?_0x533336[_0x1add46(0x173)][_0x1add46(0x162)]:''],'style':_0x1add46(0x16e)+_0x533336[_0x1add46(0x173)][_0x1add46(0x154)]+_0x1add46(0x168)+_0x533336[_0x1add46(0x173)][_0x1add46(0x153)]+';'+_0x4fc624}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x15b),'height':_0x4f0ab8(0x160),'align':_0x4f0ab8(0x152)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x159),'height':_0x4f0ab8(0x16b),'align':_0x4f0ab8(0x152)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x15b),'height':_0x4f0ab8(0x15d),'align':_0x4f0ab8(0x152)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x15c),'height':_0x4f0ab8(0x16b),'align':_0x4f0ab8(0x152)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x15b),'height':_0x4f0ab8(0x158),'align':_0x4f0ab8(0x152)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x159),'height':_0x4f0ab8(0x16b),'align':_0x4f0ab8(0x152)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x15b),'height':_0x4f0ab8(0x15d),'align':_0x4f0ab8(0x152)}}],'aiHistory':ta(0x5,_0x4f0ab8(0x15b),_0x4f0ab8(0x161),_0x4f0ab8(0x152)),'aiChatResources':ta(0x8,_0x4f0ab8(0x15b),_0x4f0ab8(0x16c),_0x4f0ab8(0x152)),'aiReviewChecks':[{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x166),'height':_0x4f0ab8(0x16c),'align':_0x4f0ab8(0x167)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x15b),'height':_0x4f0ab8(0x16c),'align':_0x4f0ab8(0x167)}},{'tag':_0x4f0ab8(0x171),'attributes':{'width':_0x4f0ab8(0x166),'height':_0x4f0ab8(0x16c),'align':_0x4f0ab8(0x167)}}]};function _0x54dd(){const _0x2ab470=['ck-ai-skeleton__item','attributes','160140KEiSBI','759772CEgRYe','9FaOFhR','tag','539afdVIJ','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','24IMyUjA','5TnfrBJ','right','height','width','186474oxVSWi','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','center','140px','250px','align','100%','150px','88px','fill','591368DIccjt','72px','44px','class','setTemplate','2903383ynLDKT','_createSkeletonItems','128px','left',';\x20height:\x20','map','ck-ai-skeleton','40px','24px','4165384EGUBTM','width:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','3167622nRskwB','div'];_0x54dd=function(){return _0x2ab470;};return _0x54dd();}function ta(_0x2e7b8d,_0x5dafb2,_0x4d8029,_0x57e2e9){const _0x2f37b3=_0x4f0ab8;return new Array(_0x2e7b8d)[_0x2f37b3(0x15e)](null)[_0x2f37b3(0x169)](()=>({'tag':_0x2f37b3(0x171),'attributes':{'width':_0x5dafb2,'height':_0x4d8029,'align':_0x57e2e9}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2057(_0x2216b9,_0xc885e9){const _0x5043c5=_0x5043();return _0x2057=function(_0x205731,_0x203374){_0x205731=_0x205731-0x116;let _0x5e23d2=_0x5043c5[_0x205731];return _0x5e23d2;},_0x2057(_0x2216b9,_0xc885e9);}const _0x3f869d=_0x2057;(function(_0x178ded,_0x11b98d){const _0x20cbc5=_0x2057,_0x1e03e5=_0x178ded();while(!![]){try{const _0x575d1c=-parseInt(_0x20cbc5(0x122))/0x1*(-parseInt(_0x20cbc5(0x120))/0x2)+-parseInt(_0x20cbc5(0x145))/0x3*(-parseInt(_0x20cbc5(0x138))/0x4)+parseInt(_0x20cbc5(0x11c))/0x5*(parseInt(_0x20cbc5(0x137))/0x6)+parseInt(_0x20cbc5(0x11b))/0x7*(-parseInt(_0x20cbc5(0x12d))/0x8)+parseInt(_0x20cbc5(0x141))/0x9+parseInt(_0x20cbc5(0x13c))/0xa+-parseInt(_0x20cbc5(0x135))/0xb;if(_0x575d1c===_0x11b98d)break;else _0x1e03e5['push'](_0x1e03e5['shift']());}catch(_0x4a2839){_0x1e03e5['push'](_0x1e03e5['shift']());}}}(_0x5043,0x39105));import{ButtonView as _0x167dc5,IconView as _0x2b02ec,ToolbarView as _0x550c86}from'ckeditor5/src/ui.js';import{IconCheck as _0xab30b2,IconCopy as _0x330b67,IconShowChangesOff as _0x5a8945,IconShowChangesOn as _0xa05531,IconThumbDown as _0x5329de,IconThumbUp as _0x4418b2}from'@ckeditor/ckeditor5-icons';function _0x5043(){const _0x527483=['1965010lTOARx','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showCopy','_setupRatingButtons','isOn','4159917ecZjjJ','dislikeButton','isEnabled','fire','48ldozAu','extendTemplate','showLike','toggleShowChanges','showDislike','ck-ai-mini-toolbar-copy-button__check-mark','_config','_setupCopyButton','add','like','66661cFPTaA','9995DtuKGO','full','items','customView','40GqGiJr','AI_MINI_TOOLBAR_COPY','16034ONOKZz','_setupShowChangesButton','length','showChanges','AI_MINI_TOOLBAR_LIKE','addMany','ck-ai-mini-toolbar-copy-button','ck-ai-mini-toolbar\x20ck-hidden','copyButton','dislike','ck-ai-mini-toolbar','16VmTCeK','children','locale','isLoading','bind','execute','showChangesButton','AI_MINI_TOOLBAR_DISLIKE','14347520oggftl','set','1002koLkdG','60968bvLdSP','likeButton','class','AI_SUGGESTION_BUTTON_SHOW_CHANGES'];_0x5043=function(){return _0x527483;};return _0x5043();}import{getTranslation as _0x114ffb}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x550c86{[_0x3f869d(0x12a)];[_0x3f869d(0x139)];[_0x3f869d(0x142)];[_0x3f869d(0x133)];[_0x3f869d(0x117)];constructor(_0x50367f,_0x58f8f8={},_0x99f4b5){const _0xf28a=_0x3f869d;super(_0x50367f),this[_0xf28a(0x136)](_0xf28a(0x130),!0x1),this[_0xf28a(0x117)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x58f8f8};const _0x2a64ca=!(this[_0xf28a(0x117)][_0xf28a(0x13e)]||this[_0xf28a(0x117)][_0xf28a(0x125)]||this[_0xf28a(0x117)][_0xf28a(0x147)]||this[_0xf28a(0x117)][_0xf28a(0x149)]||this[_0xf28a(0x117)][_0xf28a(0x11f)]?.[_0xf28a(0x124)]);this[_0xf28a(0x13a)]=_0x2a64ca?_0xf28a(0x129):_0xf28a(0x12c),this[_0xf28a(0x117)][_0xf28a(0x13e)]&&(this[_0xf28a(0x118)](),this[_0xf28a(0x11e)][_0xf28a(0x119)](this[_0xf28a(0x12a)])),this[_0xf28a(0x117)][_0xf28a(0x125)]&&(this[_0xf28a(0x123)](_0x99f4b5),this[_0xf28a(0x11e)][_0xf28a(0x119)](this[_0xf28a(0x133)])),this[_0xf28a(0x13f)](),this[_0xf28a(0x117)][_0xf28a(0x147)]&&this[_0xf28a(0x11e)][_0xf28a(0x119)](this[_0xf28a(0x139)]),this[_0xf28a(0x117)][_0xf28a(0x149)]&&this[_0xf28a(0x11e)][_0xf28a(0x119)](this[_0xf28a(0x142)]),this[_0xf28a(0x117)][_0xf28a(0x11f)]&&this[_0xf28a(0x11e)][_0xf28a(0x127)](this[_0xf28a(0x117)][_0xf28a(0x11f)]);}[_0x3f869d(0x13f)](){const _0x441372=_0x3f869d;this[_0x441372(0x139)]=new _0x167dc5(this[_0x441372(0x12f)]),this[_0x441372(0x139)][_0x441372(0x136)]({'icon':_0x4418b2,'label':_0x114ffb(this[_0x441372(0x12f)],_0x441372(0x126)),'tooltip':!0x0}),this[_0x441372(0x139)][_0x441372(0x131)](_0x441372(0x143))['to'](this,_0x441372(0x130),_0x114edd=>!_0x114edd),this[_0x441372(0x139)]['on'](_0x441372(0x132),()=>{const _0x217ca3=_0x441372;this[_0x217ca3(0x144)](_0x217ca3(0x11a));}),this[_0x441372(0x142)]=new _0x167dc5(this[_0x441372(0x12f)]),this[_0x441372(0x142)][_0x441372(0x136)]({'icon':_0x5329de,'label':_0x114ffb(this[_0x441372(0x12f)],_0x441372(0x134)),'tooltip':!0x0}),this[_0x441372(0x142)][_0x441372(0x131)](_0x441372(0x143))['to'](this,_0x441372(0x130),_0x2f1f41=>!_0x2f1f41),this[_0x441372(0x142)]['on'](_0x441372(0x132),()=>{const _0x3ef829=_0x441372;this[_0x3ef829(0x144)](_0x3ef829(0x12b));});}[_0x3f869d(0x118)](){const _0x531c40=_0x3f869d;this[_0x531c40(0x12a)]=new _0x167dc5(this[_0x531c40(0x12f)]),this[_0x531c40(0x12a)][_0x531c40(0x136)]({'icon':_0x330b67,'label':_0x114ffb(this[_0x531c40(0x12f)],_0x531c40(0x121)),'class':_0x531c40(0x128),'tooltip':!0x0}),this[_0x531c40(0x12a)][_0x531c40(0x131)](_0x531c40(0x143))['to'](this,_0x531c40(0x130),_0x26c882=>!_0x26c882);const _0x3c6f64=new _0x2b02ec();_0x3c6f64[_0x531c40(0x136)]({'content':_0xab30b2}),_0x3c6f64[_0x531c40(0x146)]({'attributes':{'class':[_0x531c40(0x116)]}}),this[_0x531c40(0x12a)]['on'](_0x531c40(0x132),()=>{const _0x108783=_0x531c40;this[_0x108783(0x12a)][_0x108783(0x13a)]=_0x108783(0x13d),setTimeout(()=>{const _0x46eb17=_0x108783;this[_0x46eb17(0x12a)][_0x46eb17(0x13a)]=_0x46eb17(0x128);},0x7d0);}),this[_0x531c40(0x12a)][_0x531c40(0x12e)][_0x531c40(0x119)](_0x3c6f64);}[_0x3f869d(0x123)](_0x17060d){const _0x4b12f0=_0x3f869d;this[_0x4b12f0(0x133)]=new _0x167dc5(this[_0x4b12f0(0x12f)]),this[_0x4b12f0(0x133)][_0x4b12f0(0x136)]({'icon':_0x5a8945,'label':_0x114ffb(this[_0x4b12f0(0x12f)],_0x4b12f0(0x13b)),'withText':_0x4b12f0(0x11d)==this[_0x4b12f0(0x117)][_0x4b12f0(0x125)],'tooltip':_0x4b12f0(0x11d)!=this[_0x4b12f0(0x117)][_0x4b12f0(0x125)],'isOn':_0x17060d}),this[_0x4b12f0(0x133)][_0x4b12f0(0x131)](_0x4b12f0(0x143))['to'](this,_0x4b12f0(0x130),_0x291f68=>!_0x291f68),this[_0x4b12f0(0x133)]['on'](_0x4b12f0(0x132),()=>{const _0x2fd0af=_0x4b12f0,_0x1374b1=!this[_0x2fd0af(0x133)][_0x2fd0af(0x140)];this[_0x2fd0af(0x133)][_0x2fd0af(0x136)]({'isOn':_0x1374b1,'icon':_0x1374b1?_0xa05531:_0x5a8945}),this[_0x2fd0af(0x144)](_0x2fd0af(0x148),_0x1374b1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xedbe(){const _0x3fc3a2=['div','warning','forEach','_cachedContentParts','push','AI_SUGGESTION_EMPTY_PART_WARNING','enqueue','ck-ai-suggestion__body','some','index','AI_SUGGESTION_NO_PARTS_WARNING','length','filter','abort','ck-ai-suggestion__body__content-parts','_showUnchangedParts','310752cAVrBD','find','partDefinition','findIndex','updateContentParts','hasPendingParts','12376pKucEp','addEventListener','20151BBoegB','empty-parts-warning','2125800QuBNQF','setContent','partsCount','from','first','hasChanges','_availableActions','add','markAsDone','2eaCEwe','7573398REKcHj','getPartView','updateContent','toggleHeader','pending','2514659YSLVxO','delegate','hasNonEmptyParts','set','_emptyPartsWarningView','1134401FoUKoy','state','_children','8696gJAaoJ','isVisible','queueEmptyPromise','_updateContentPartsPromiseQueue','createCollection','locale','_areActionsDisabled','setTemplate','updatePartState'];_0xedbe=function(){return _0x3fc3a2;};return _0xedbe();}const _0x346c79=_0x18a6;(function(_0x4354e9,_0x459dbe){const _0x43c43c=_0x18a6,_0x39759b=_0x4354e9();while(!![]){try{const _0x529091=parseInt(_0x43c43c(0xe3))/0x1*(parseInt(_0x43c43c(0xd8))/0x2)+parseInt(_0x43c43c(0xc5))/0x3+parseInt(_0x43c43c(0xcb))/0x4+parseInt(_0x43c43c(0xcf))/0x5+parseInt(_0x43c43c(0xd9))/0x6+parseInt(_0x43c43c(0xde))/0x7+parseInt(_0x43c43c(0xe6))/0x8*(-parseInt(_0x43c43c(0xcd))/0x9);if(_0x529091===_0x459dbe)break;else _0x39759b['push'](_0x39759b['shift']());}catch(_0x3522f5){_0x39759b['push'](_0x39759b['shift']());}}}(_0xedbe,0xd079c));import{View as _0x55fb40}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x36e34c}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5a4cc7}from'../../utils/eventnames.js';import{PromiseQueue as _0x4c79f9}from'../../../aichat/utils/promisequeue.js';function _0x18a6(_0x20d8e2,_0x4ca927){const _0xedbeb6=_0xedbe();return _0x18a6=function(_0x18a60e,_0x2d5c05){_0x18a60e=_0x18a60e-0xb4;let _0x6ec38a=_0xedbeb6[_0x18a60e];return _0x6ec38a;},_0x18a6(_0x20d8e2,_0x4ca927);}import{AIChatFeedErrorItemView as _0x3cde57}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x5dd2cb}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x55fb40{[_0x346c79(0xe5)];[_0x346c79(0xec)];[_0x346c79(0xc4)];[_0x346c79(0xe9)];[_0x346c79(0xe2)];[_0x346c79(0xd5)];[_0x346c79(0xb8)]=[];constructor(_0x23f324,_0x6ec6a6){const _0x1d2c66=_0x346c79;super(_0x23f324);const {areActionsDisabled:_0x54f361,showUnchangedParts:_0xf5a3db,availableActions:_0x137daf}=_0x6ec6a6;this[_0x1d2c66(0xec)]=_0x54f361,this[_0x1d2c66(0xc4)]=_0xf5a3db,this[_0x1d2c66(0xd5)]=_0x137daf,this[_0x1d2c66(0xe1)](_0x1d2c66(0xca),!0x1),this[_0x1d2c66(0xe5)]=this[_0x1d2c66(0xea)](),this[_0x1d2c66(0xe9)]=new _0x4c79f9(),this[_0x1d2c66(0xe2)]=new _0x3cde57({'id':_0x1d2c66(0xce),'initialContent':_0x5dd2cb(_0x23f324,_0x1d2c66(0xba)),'level':_0x1d2c66(0xb6)}),this[_0x1d2c66(0xe2)][_0x1d2c66(0xe7)]=!0x1,this[_0x1d2c66(0xed)]({'tag':_0x1d2c66(0xb5),'attributes':{'class':['ck',_0x1d2c66(0xbc)]},'children':[{'tag':_0x1d2c66(0xb5),'attributes':{'class':['ck',_0x1d2c66(0xc3)]},'children':this[_0x1d2c66(0xe5)]},this[_0x1d2c66(0xe2)]]});}get[_0x346c79(0xd1)](){const _0x73bc1=_0x346c79;return this[_0x73bc1(0xe5)][_0x73bc1(0xc0)];}async[_0x346c79(0xc9)]({parts:_0x46ba98,renderingStrategy:_0x4f9b48,abortSignal:_0x4aa045}){const _0x5d428a=_0x346c79;this[_0x5d428a(0xe5)][_0x5d428a(0xc0)]?_0x46ba98[_0x5d428a(0xb7)](_0xc26525=>{const _0x53e275=_0x5d428a,_0x17e429=this[_0x53e275(0xb8)][_0x53e275(0xc8)](_0x517f18=>_0x517f18[_0x53e275(0xbe)]==_0xc26525[_0x53e275(0xbe)]);-0x1===_0x17e429?this[_0x53e275(0xb8)][_0x53e275(0xb9)](_0xc26525):this[_0x53e275(0xb8)][_0x17e429]=_0xc26525;}):this[_0x5d428a(0xb8)]=_0x46ba98;for(const _0x585b83 of _0x46ba98[_0x5d428a(0xc1)](_0x1f4792=>_0x1f4792[_0x5d428a(0xd4)]))this[_0x5d428a(0xe9)][_0x5d428a(0xbb)](async _0x408b98=>{const _0x524a97=_0x5d428a;let _0x4240ea=this[_0x524a97(0xda)](_0x585b83[_0x524a97(0xbe)]);_0x4240ea||(_0x4240ea=new _0x36e34c(this[_0x524a97(0xeb)],{'part':_0x585b83,'uiIndex':this[_0x524a97(0xe5)][_0x524a97(0xc0)]+0x1,'areActionsDisabled':this[_0x524a97(0xec)],'availableActions':this[_0x524a97(0xd5)]}),_0x4240ea[_0x524a97(0xdf)](..._0x5a4cc7)['to'](this),this[_0x524a97(0xe5)][_0x524a97(0xd6)](_0x4240ea),this[_0x524a97(0xca)]=!0x0),0x2===this[_0x524a97(0xe5)][_0x524a97(0xc0)]&&this[_0x524a97(0xe5)][_0x524a97(0xd3)][_0x524a97(0xdc)](!0x0),_0x4240ea[_0x524a97(0xdc)](this[_0x524a97(0xe5)][_0x524a97(0xc0)]>0x1),await _0x4240ea[_0x524a97(0xdb)]({'part':_0x585b83,'renderingStrategy':_0x4f9b48,'showUnchangedParts':this[_0x524a97(0xc4)],'abortSignal':_0x408b98});});return _0x4aa045?.[_0x5d428a(0xcc)](_0x5d428a(0xc2),()=>{const _0x5607d7=_0x5d428a;this[_0x5607d7(0xe9)][_0x5607d7(0xc2)]();}),this[_0x5d428a(0xe9)][_0x5d428a(0xe8)];}[_0x346c79(0xb4)](_0x3794db,_0xd1da84){const _0xc23f3=_0x346c79,_0x54967f=this[_0xc23f3(0xda)](_0x3794db);_0x54967f&&(_0x54967f[_0xc23f3(0xe4)]=_0xd1da84),this[_0xc23f3(0xca)]=_0xc23f3(0xdd)==_0xd1da84||Array[_0xc23f3(0xd2)](this[_0xc23f3(0xe5)])[_0xc23f3(0xbd)](_0x532f68=>_0xc23f3(0xdd)==_0x532f68[_0xc23f3(0xe4)]);}[_0x346c79(0xda)](_0x2ebfec){const _0x536a6d=_0x346c79;return this[_0x536a6d(0xe5)][_0x536a6d(0xc6)](_0x414c46=>_0x414c46[_0x536a6d(0xc7)][_0x536a6d(0xbe)]==_0x2ebfec)??null;}[_0x346c79(0xd7)](){const _0x28fa53=_0x346c79;if(!this[_0x28fa53(0xc4)]){const _0x3cd1c9=!this[_0x28fa53(0xb8)][_0x28fa53(0xc6)](({hasChanges:_0x2161e7})=>_0x2161e7),_0x5115b1=!!this[_0x28fa53(0xb8)][_0x28fa53(0xc6)](({hasChanges:_0x44f439})=>!_0x44f439);this[_0x28fa53(0xe2)][_0x28fa53(0xe7)]=0x0==this[_0x28fa53(0xe5)][_0x28fa53(0xc0)]||_0x5115b1,_0x3cd1c9?this[_0x28fa53(0xe2)][_0x28fa53(0xd0)](_0x5dd2cb(this[_0x28fa53(0xeb)],_0x28fa53(0xbf))):this[_0x28fa53(0xe2)][_0x28fa53(0xd0)](_0x5dd2cb(this[_0x28fa53(0xeb)],_0x28fa53(0xba)));}}get[_0x346c79(0xe0)](){const _0x59171b=_0x346c79;return!!this[_0x59171b(0xe5)][_0x59171b(0xc6)](_0x330f4d=>_0x330f4d[_0x59171b(0xc7)][_0x59171b(0xd4)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x385f(){const _0x530eee=['clearLoading','AI_CHAT_SOURCES_HEADER','585624ccDPRx','div','errorView','fire','setErrorState','clearErrorState','60zyqzaf','bodyView','showLoader','querySelector','306qERDvb','_blank','ck-ai-suggestion__error','isOn','setTemplate','isShowChangesToggleVisible','icon','2KqAZgM','setLoading','textContent','showError','ck-ai-suggestion__container','_createErrorView','url','2448YBvosq','sourcesView','.ck-ai-suggestion__error-text','toggleSuggestionDisplayMode','bindTemplate','hideLoader','ck-hidden','showChangesToggleView','119fqKmIg','markAsDone','6449963mKitZl','ck-ai-web-sources','isErrorVisible','hideError','content','ck-ai-web-source__image','2200gCDfVo','delegate','ck-ai-suggestion__error-text','toggleShowChanges','ck-ai-web-sources__header','locale','1001192NGfcch','updateContent','hasNonEmptyParts','ck-ai-suggestion__loader-text','isEnabled','159984vQKmrN','AI_CHAT_IS_WRITING','miniToolbarView','span','extendTemplate','70758hHKBkF','createCollection','ck-rounded-corners','AI_CHAT_GENERIC_ERROR','map','updateSources','areChangesVisible','headerView','ck-ai-suggestion__loader','50055AwpOnN','87307JTmPOd','addNavigationItem','small','updateContentParts','set','isLoading','loaderView','addMany','favicon','img','items','isLoaderVisible','element','children','open','remove','_createLoaderView','isVisible','removeNavigationItem','ck\x20ck-ai-web-source','title','add','bind'];_0x385f=function(){return _0x530eee;};return _0x385f();}const _0x16d3b8=_0x2d15;(function(_0xb25ee5,_0x142662){const _0x160a9b=_0x2d15,_0xe457f7=_0xb25ee5();while(!![]){try{const _0x4cebc0=parseInt(_0x160a9b(0x203))/0x1*(-parseInt(_0x160a9b(0x241))/0x2)+parseInt(_0x160a9b(0x208))/0x3*(parseInt(_0x160a9b(0x236))/0x4)+parseInt(_0x160a9b(0x216))/0x5*(-parseInt(_0x160a9b(0x23a))/0x6)+-parseInt(_0x160a9b(0x1f5))/0x7*(-parseInt(_0x160a9b(0x230))/0x8)+-parseInt(_0x160a9b(0x20d))/0x9*(parseInt(_0x160a9b(0x1fd))/0xa)+-parseInt(_0x160a9b(0x217))/0xb*(-parseInt(_0x160a9b(0x1ed))/0xc)+parseInt(_0x160a9b(0x1f7))/0xd;if(_0x4cebc0===_0x142662)break;else _0xe457f7['push'](_0xe457f7['shift']());}catch(_0x18b91b){_0xe457f7['push'](_0xe457f7['shift']());}}}(_0x385f,0xe0305));import{IconWeb as _0x2e4d2b}from'@ckeditor/ckeditor5-icons';import{View as _0x24de8e,ButtonView as _0x5c0521,IconView as _0x107ad1}from'ckeditor5/src/ui.js';function _0x2d15(_0x34922e,_0x293d53){const _0x385f28=_0x385f();return _0x2d15=function(_0x2d1510,_0x4390fd){_0x2d1510=_0x2d1510-0x1ed;let _0xa6bc43=_0x385f28[_0x2d1510];return _0xa6bc43;},_0x2d15(_0x34922e,_0x293d53);}import{AIMiniToolbarView as _0x25c882}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x25182f}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x1d421b}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x35f848}from'../../utils/eventnames.js';import{AISpinnerView as _0x54553b}from'../aispinner.js';import{getTranslation as _0x43c9c7}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x24de8e{[_0x16d3b8(0x237)];[_0x16d3b8(0x20a)];[_0x16d3b8(0x224)];[_0x16d3b8(0x214)];[_0x16d3b8(0x21d)];[_0x16d3b8(0x232)];[_0x16d3b8(0x1ee)];constructor(_0x152510,_0xcea82){const _0x175526=_0x16d3b8;super(_0x152510);const {showDiff:_0x42acc6,areActionsDisabled:_0x6cf653,miniToolbarConfig:_0x414624,hideHeader:_0x32661b,showLoader:_0x314c93,showUnchangedParts:_0x5a49ff,availableActions:_0x3229e8}=_0xcea82;this[_0x175526(0x21b)](_0x175526(0x213),!0x1),this[_0x175526(0x21b)](_0x175526(0x222),!!_0x314c93),this[_0x175526(0x21b)](_0x175526(0x1f9),!0x1),this[_0x175526(0x21b)](_0x175526(0x21c),!0x1),this[_0x175526(0x224)]=this[_0x175526(0x20e)](),_0x32661b||(this[_0x175526(0x214)]=new _0x25182f(_0x152510,{'showDiff':_0x42acc6}),this[_0x175526(0x214)]['on'](_0x175526(0x200),(_0x4ea3e8,_0x5b6f24)=>{const _0x2030ce=_0x175526;this[_0x2030ce(0x213)]=_0x5b6f24[_0x2030ce(0x23d)],this[_0x2030ce(0x233)](_0x2030ce(0x1f0),{'showDiff':_0x5b6f24[_0x2030ce(0x23d)]});}),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x214)])),this[_0x175526(0x237)]=new _0x1d421b(_0x152510,{'areActionsDisabled':_0x6cf653,'showUnchangedParts':!!_0x5a49ff,'availableActions':_0x3229e8}),this[_0x175526(0x237)][_0x175526(0x1fe)](..._0x35f848)['to'](this),this[_0x175526(0x237)][_0x175526(0x20c)]({'attributes':{'class':[this[_0x175526(0x1f1)]['if'](_0x175526(0x222),_0x175526(0x1f3)),this[_0x175526(0x1f1)]['if'](_0x175526(0x1f9),_0x175526(0x1f3))]}}),this[_0x175526(0x20a)]=new _0x25c882(_0x152510,_0x414624,_0x42acc6),this[_0x175526(0x20a)][_0x175526(0x1fe)](..._0x35f848)['to'](this),this[_0x175526(0x20a)]['on'](_0x175526(0x200),(_0x2011e9,_0x4b1ab1)=>{const _0x400e5a=_0x175526;this[_0x400e5a(0x213)]=_0x4b1ab1,this[_0x400e5a(0x233)](_0x400e5a(0x1f0),{'showDiff':_0x4b1ab1});}),this[_0x175526(0x20a)][_0x175526(0x22d)](_0x175526(0x21c))['to'](this),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x237)]),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x20a)]),this[_0x175526(0x1ee)]=new AIWebSourcesView(this[_0x175526(0x202)]),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x1ee)]),_0x314c93&&(this[_0x175526(0x21d)]=this[_0x175526(0x227)](),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x21d)])),this[_0x175526(0x232)]=this[_0x175526(0x246)](),this[_0x175526(0x224)][_0x175526(0x22c)](this[_0x175526(0x232)]),this[_0x175526(0x23e)]({'tag':_0x175526(0x231),'attributes':{'class':['ck',_0x175526(0x245),_0x175526(0x20f)]},'children':this[_0x175526(0x224)]});}async[_0x16d3b8(0x204)](_0x584a66){const _0x23261d=_0x16d3b8;await this[_0x23261d(0x237)][_0x23261d(0x21a)](_0x584a66);}[_0x16d3b8(0x212)](_0x51b078){const _0x21310d=_0x16d3b8;this[_0x21310d(0x1ee)][_0x21310d(0x224)][_0x21310d(0x21e)](_0x51b078[_0x21310d(0x211)](_0x8f33a3=>new AIWebSourceView(this[_0x21310d(0x202)],_0x8f33a3))),this[_0x21310d(0x1ee)][_0x21310d(0x228)]=!0x0;}[_0x16d3b8(0x238)](){const _0x49b44e=_0x16d3b8;this[_0x49b44e(0x21d)]&&(this[_0x49b44e(0x222)]=!0x0);}[_0x16d3b8(0x1f2)](){const _0x3731d2=_0x16d3b8;this[_0x3731d2(0x21d)]&&(this[_0x3731d2(0x222)]=!0x1);}[_0x16d3b8(0x244)](_0xb9ad3e){const _0x52a8db=_0x16d3b8;if(this[_0x52a8db(0x232)]){const _0x486a86=this[_0x52a8db(0x232)][_0x52a8db(0x223)]?.[_0x52a8db(0x239)](_0x52a8db(0x1ef));_0x486a86&&(_0x486a86[_0x52a8db(0x243)]=_0xb9ad3e),this[_0x52a8db(0x1f9)]=!0x0;}}[_0x16d3b8(0x1fa)](){const _0x46d69d=_0x16d3b8;this[_0x46d69d(0x232)]&&(this[_0x46d69d(0x1f9)]=!0x1);}[_0x16d3b8(0x1f6)](){const _0x48d028=_0x16d3b8;this[_0x48d028(0x237)][_0x48d028(0x1f6)](),this[_0x48d028(0x214)]&&(this[_0x48d028(0x214)][_0x48d028(0x23f)]=this[_0x48d028(0x237)][_0x48d028(0x205)]);}[_0x16d3b8(0x242)](){const _0x261cb5=_0x16d3b8;this[_0x261cb5(0x21c)]=!0x0;}[_0x16d3b8(0x22e)](){const _0x167aee=_0x16d3b8;this[_0x167aee(0x21c)]=!0x1;}[_0x16d3b8(0x234)](){const _0x13de5b=_0x16d3b8;this[_0x13de5b(0x20a)]&&(this[_0x13de5b(0x20a)][_0x13de5b(0x21c)]=!0x0),this[_0x13de5b(0x214)]?.[_0x13de5b(0x1f4)]&&(this[_0x13de5b(0x214)][_0x13de5b(0x1f4)][_0x13de5b(0x207)]=!0x1);}[_0x16d3b8(0x235)](){const _0x14cce4=_0x16d3b8;this[_0x14cce4(0x20a)]&&(this[_0x14cce4(0x20a)][_0x14cce4(0x21c)]=!0x1),this[_0x14cce4(0x214)]?.[_0x14cce4(0x1f4)]&&(this[_0x14cce4(0x214)][_0x14cce4(0x1f4)][_0x14cce4(0x207)]=!0x0);}[_0x16d3b8(0x218)](_0x217f09){const _0xfb4ef3=_0x16d3b8;this[_0xfb4ef3(0x20a)][_0xfb4ef3(0x221)][_0xfb4ef3(0x22c)](_0x217f09);}[_0x16d3b8(0x229)](_0x4f778c){const _0x2c807c=_0x16d3b8;this[_0x2c807c(0x20a)][_0x2c807c(0x221)][_0x2c807c(0x226)](_0x4f778c);}[_0x16d3b8(0x227)](){const _0x2d1bfe=_0x16d3b8,_0xce0184=new _0x24de8e(this[_0x2d1bfe(0x202)]),_0x3bfe02=new _0x54553b(_0x2d1bfe(0x219));_0x3bfe02[_0x2d1bfe(0x228)]=!0x0;const _0x554816=new _0x24de8e(this[_0x2d1bfe(0x202)]);return _0x554816[_0x2d1bfe(0x23e)]({'tag':_0x2d1bfe(0x20b),'attributes':{'class':['ck',_0x2d1bfe(0x206)]},'children':[_0x43c9c7(this[_0x2d1bfe(0x202)],_0x2d1bfe(0x209))]}),_0xce0184[_0x2d1bfe(0x23e)]({'tag':_0x2d1bfe(0x231),'attributes':{'class':['ck',_0x2d1bfe(0x215),this[_0x2d1bfe(0x1f1)]['if'](_0x2d1bfe(0x222),_0x2d1bfe(0x1f3),_0x18a05f=>!_0x18a05f)]},'children':[_0x3bfe02,_0x554816]}),_0xce0184;}[_0x16d3b8(0x246)](){const _0x3dc31c=_0x16d3b8,_0x524afb=new _0x24de8e(this[_0x3dc31c(0x202)]),_0x438042=new _0x24de8e(this[_0x3dc31c(0x202)]);return _0x438042[_0x3dc31c(0x23e)]({'tag':_0x3dc31c(0x20b),'attributes':{'class':['ck',_0x3dc31c(0x1ff)]},'children':[_0x43c9c7(this[_0x3dc31c(0x202)],_0x3dc31c(0x210))]}),_0x524afb[_0x3dc31c(0x23e)]({'tag':_0x3dc31c(0x231),'attributes':{'class':['ck',_0x3dc31c(0x23c),this[_0x3dc31c(0x1f1)]['if'](_0x3dc31c(0x1f9),_0x3dc31c(0x1f3),_0x5b1333=>!_0x5b1333)]},'children':[_0x438042]}),_0x524afb;}}export class AIWebSourcesView extends _0x24de8e{[_0x16d3b8(0x224)];constructor(_0x20bd1b){const _0x50c11e=_0x16d3b8;super(_0x20bd1b),this[_0x50c11e(0x224)]=this[_0x50c11e(0x20e)](),this[_0x50c11e(0x21b)](_0x50c11e(0x228),!0x1),this[_0x50c11e(0x23e)]({'tag':_0x50c11e(0x231),'attributes':{'class':['ck',_0x50c11e(0x1f8),this[_0x50c11e(0x1f1)]['if'](_0x50c11e(0x228),_0x50c11e(0x1f3),_0x4ff35b=>!_0x4ff35b)]},'children':this[_0x50c11e(0x224)]});const _0x33277f=new _0x24de8e(this[_0x50c11e(0x202)]),_0x314014=new _0x107ad1();_0x314014[_0x50c11e(0x1fb)]=_0x2e4d2b,_0x33277f[_0x50c11e(0x23e)]({'tag':_0x50c11e(0x231),'attributes':{'class':['ck',_0x50c11e(0x201)]},'children':[_0x314014,{'tag':_0x50c11e(0x20b),'children':[{'text':_0x43c9c7(this[_0x50c11e(0x202)],_0x50c11e(0x22f))}]}]}),this[_0x50c11e(0x224)][_0x50c11e(0x22c)](_0x33277f);}}export class AIWebSourceView extends _0x5c0521{constructor(_0x5827cf,_0x47afaa){const _0x38709e=_0x16d3b8;super(_0x5827cf),this[_0x38709e(0x21b)]({'label':_0x47afaa[_0x38709e(0x22b)],'tooltip':_0x47afaa[_0x38709e(0x22b)],'class':[_0x38709e(0x22a)],'withText':!0x0});const _0x7ba5af=this[_0x38709e(0x1f1)];if(this[_0x38709e(0x20c)]({'on':{'click':_0x7ba5af['to'](()=>{const _0x597ae7=_0x38709e;window[_0x597ae7(0x225)](_0x47afaa[_0x597ae7(0x247)],_0x597ae7(0x23b));})}}),_0x47afaa[_0x38709e(0x21f)]){const _0x3a4c5c=new _0x24de8e(_0x5827cf);_0x3a4c5c[_0x38709e(0x23e)]({'tag':_0x38709e(0x220),'attributes':{'src':_0x47afaa[_0x38709e(0x21f)]||_0x2e4d2b,'alt':_0x47afaa[_0x38709e(0x22b)],'class':[_0x38709e(0x1fc)]}}),this[_0x38709e(0x224)][_0x38709e(0x22c)](_0x3a4c5c);}else this[_0x38709e(0x21b)](_0x38709e(0x240),_0x2e4d2b);}}
|
|
23
|
+
function _0x97a5(_0x38db23,_0x44bed5){const _0x459e61=_0x459e();return _0x97a5=function(_0x97a5d2,_0x3a5dea){_0x97a5d2=_0x97a5d2-0x1d1;let _0x407b66=_0x459e61[_0x97a5d2];return _0x407b66;},_0x97a5(_0x38db23,_0x44bed5);}const _0x56abed=_0x97a5;(function(_0x177f9b,_0x1f82ba){const _0x556eb6=_0x97a5,_0xc90ab3=_0x177f9b();while(!![]){try{const _0x40524f=-parseInt(_0x556eb6(0x203))/0x1+-parseInt(_0x556eb6(0x1f6))/0x2+-parseInt(_0x556eb6(0x209))/0x3+parseInt(_0x556eb6(0x20b))/0x4*(parseInt(_0x556eb6(0x1de))/0x5)+parseInt(_0x556eb6(0x1e9))/0x6*(parseInt(_0x556eb6(0x1fa))/0x7)+parseInt(_0x556eb6(0x1fd))/0x8+-parseInt(_0x556eb6(0x1d7))/0x9*(-parseInt(_0x556eb6(0x213))/0xa);if(_0x40524f===_0x1f82ba)break;else _0xc90ab3['push'](_0xc90ab3['shift']());}catch(_0x3a4745){_0xc90ab3['push'](_0xc90ab3['shift']());}}}(_0x459e,0xc2b5d));import{IconWeb as _0x1c22f0}from'@ckeditor/ckeditor5-icons';import{View as _0x23efb9,ButtonView as _0x121cae,IconView as _0x306a8e}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x366799}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x301126}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x38bed9}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x24b6c7}from'../../utils/eventnames.js';import{AISpinnerView as _0x201db8}from'../aispinner.js';import{getTranslation as _0x50e762}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x23efb9{[_0x56abed(0x1d8)];[_0x56abed(0x1da)];[_0x56abed(0x212)];[_0x56abed(0x207)];[_0x56abed(0x1ee)];[_0x56abed(0x223)];[_0x56abed(0x21d)];constructor(_0x396d5b,_0x109c13){const _0x3ceece=_0x56abed;super(_0x396d5b);const {showDiff:_0x335153,areActionsDisabled:_0x1be228,miniToolbarConfig:_0xdafaf7,hideHeader:_0x17c2d4,showLoader:_0x15bd00,showUnchangedParts:_0x3b62f0,availableActions:_0xaf4f32}=_0x109c13;this[_0x3ceece(0x214)](_0x3ceece(0x20c),!0x1),this[_0x3ceece(0x214)](_0x3ceece(0x1e5),!!_0x15bd00),this[_0x3ceece(0x214)](_0x3ceece(0x222),!0x1),this[_0x3ceece(0x214)](_0x3ceece(0x218),!0x1),this[_0x3ceece(0x212)]=this[_0x3ceece(0x20d)](),_0x17c2d4||(this[_0x3ceece(0x207)]=new _0x301126(_0x396d5b,{'showDiff':_0x335153}),this[_0x3ceece(0x207)]['on'](_0x3ceece(0x1f8),(_0xdfdb2,_0x393eb6)=>{const _0x408c15=_0x3ceece;this[_0x408c15(0x20c)]=_0x393eb6[_0x408c15(0x20e)],this[_0x408c15(0x1e6)](_0x408c15(0x1db),{'showDiff':_0x393eb6[_0x408c15(0x20e)]});}),this[_0x3ceece(0x212)][_0x3ceece(0x1d5)](this[_0x3ceece(0x207)])),this[_0x3ceece(0x1d8)]=new _0x38bed9(_0x396d5b,{'areActionsDisabled':_0x1be228,'showUnchangedParts':!!_0x3b62f0,'availableActions':_0xaf4f32}),this[_0x3ceece(0x1d8)][_0x3ceece(0x1df)](..._0x24b6c7)['to'](this),this[_0x3ceece(0x1d8)][_0x3ceece(0x1d4)]({'attributes':{'class':[this[_0x3ceece(0x21f)]['if'](_0x3ceece(0x1e5),_0x3ceece(0x200)),this[_0x3ceece(0x21f)]['if'](_0x3ceece(0x222),_0x3ceece(0x200))]}}),this[_0x3ceece(0x1da)]=new _0x366799(_0x396d5b,_0xdafaf7,_0x335153),this[_0x3ceece(0x1da)][_0x3ceece(0x1df)](..._0x24b6c7)['to'](this),this[_0x3ceece(0x1da)]['on'](_0x3ceece(0x1f8),(_0x41e58a,_0x50c868)=>{const _0x3afc77=_0x3ceece;this[_0x3afc77(0x20c)]=_0x50c868,this[_0x3afc77(0x1e6)](_0x3afc77(0x1db),{'showDiff':_0x50c868});}),this[_0x3ceece(0x1da)][_0x3ceece(0x1ec)](_0x3ceece(0x218))['to'](this),this[_0x3ceece(0x212)][_0x3ceece(0x1d5)](this[_0x3ceece(0x1d8)]),this[_0x3ceece(0x212)][_0x3ceece(0x1d5)](this[_0x3ceece(0x1da)]),this[_0x3ceece(0x21d)]=new AIWebSourcesView(this[_0x3ceece(0x228)]),this[_0x3ceece(0x212)][_0x3ceece(0x1d5)](this[_0x3ceece(0x21d)]),_0x15bd00&&(this[_0x3ceece(0x1ee)]=this[_0x3ceece(0x204)](),this[_0x3ceece(0x212)][_0x3ceece(0x1d5)](this[_0x3ceece(0x1ee)])),this[_0x3ceece(0x223)]=this[_0x3ceece(0x1f9)](),this[_0x3ceece(0x212)][_0x3ceece(0x1d5)](this[_0x3ceece(0x223)]),this[_0x3ceece(0x1f0)]({'tag':_0x3ceece(0x210),'attributes':{'class':['ck',_0x3ceece(0x1d9),_0x3ceece(0x21e)]},'children':this[_0x3ceece(0x212)]});}async[_0x56abed(0x1f3)](_0x131e0c){const _0x31e7ba=_0x56abed;await this[_0x31e7ba(0x1d8)][_0x31e7ba(0x1dd)](_0x131e0c);}[_0x56abed(0x1d6)](_0x3ac6c2){const _0x9b5fbe=_0x56abed;this[_0x9b5fbe(0x21d)][_0x9b5fbe(0x212)][_0x9b5fbe(0x1d2)](_0x3ac6c2[_0x9b5fbe(0x1ef)](_0x2bf63d=>new AIWebSourceView(this[_0x9b5fbe(0x228)],_0x2bf63d))),this[_0x9b5fbe(0x21d)][_0x9b5fbe(0x205)]=!0x0;}[_0x56abed(0x1f2)](){const _0x373224=_0x56abed;this[_0x373224(0x1ee)]&&(this[_0x373224(0x1e5)]=!0x0);}[_0x56abed(0x1dc)](){const _0x20883a=_0x56abed;this[_0x20883a(0x1ee)]&&(this[_0x20883a(0x1e5)]=!0x1);}[_0x56abed(0x1ed)](_0x580ea9){const _0xfc7da3=_0x56abed;if(this[_0xfc7da3(0x223)]){const _0x2d600e=this[_0xfc7da3(0x223)][_0xfc7da3(0x1f4)]?.[_0xfc7da3(0x216)](_0xfc7da3(0x1d3));_0x2d600e&&(_0x2d600e[_0xfc7da3(0x1e1)]=_0x580ea9),this[_0xfc7da3(0x222)]=!0x0;}}[_0x56abed(0x1e7)](){const _0x12b5d3=_0x56abed;this[_0x12b5d3(0x223)]&&(this[_0x12b5d3(0x222)]=!0x1);}[_0x56abed(0x211)](){const _0x32a4b2=_0x56abed;this[_0x32a4b2(0x1d8)][_0x32a4b2(0x211)](),this[_0x32a4b2(0x207)]&&(this[_0x32a4b2(0x207)][_0x32a4b2(0x20a)]=this[_0x32a4b2(0x1d8)][_0x32a4b2(0x208)]);}[_0x56abed(0x1fc)](){const _0x202b89=_0x56abed;this[_0x202b89(0x218)]=!0x0;}[_0x56abed(0x215)](){const _0x40b45a=_0x56abed;this[_0x40b45a(0x218)]=!0x1;}[_0x56abed(0x220)](){const _0x338b90=_0x56abed;this[_0x338b90(0x1da)]&&(this[_0x338b90(0x1da)][_0x338b90(0x218)]=!0x0),this[_0x338b90(0x207)]?.[_0x338b90(0x1f5)]&&(this[_0x338b90(0x207)][_0x338b90(0x1f5)][_0x338b90(0x1d1)]=!0x1);}[_0x56abed(0x217)](){const _0x1b1f39=_0x56abed;this[_0x1b1f39(0x1da)]&&(this[_0x1b1f39(0x1da)][_0x1b1f39(0x218)]=!0x1),this[_0x1b1f39(0x207)]?.[_0x1b1f39(0x1f5)]&&(this[_0x1b1f39(0x207)][_0x1b1f39(0x1f5)][_0x1b1f39(0x1d1)]=!0x0);}[_0x56abed(0x1e2)](_0x262794){const _0xc3a24f=_0x56abed;this[_0xc3a24f(0x1da)][_0xc3a24f(0x20f)][_0xc3a24f(0x1d5)](_0x262794);}[_0x56abed(0x1e0)](_0x1ed6a6){const _0x399284=_0x56abed;this[_0x399284(0x1da)][_0x399284(0x20f)][_0x399284(0x1f1)](_0x1ed6a6);}[_0x56abed(0x204)](){const _0x1f55c2=_0x56abed,_0x2b237a=new _0x23efb9(this[_0x1f55c2(0x228)]),_0x18a6d3=new _0x201db8(_0x1f55c2(0x1fe));_0x18a6d3[_0x1f55c2(0x205)]=!0x0;const _0x44b059=new _0x23efb9(this[_0x1f55c2(0x228)]);return _0x44b059[_0x1f55c2(0x1f0)]({'tag':_0x1f55c2(0x225),'attributes':{'class':['ck',_0x1f55c2(0x21a)]},'children':[_0x50e762(this[_0x1f55c2(0x228)],_0x1f55c2(0x21c))]}),_0x2b237a[_0x1f55c2(0x1f0)]({'tag':_0x1f55c2(0x210),'attributes':{'class':['ck',_0x1f55c2(0x1f7),this[_0x1f55c2(0x21f)]['if'](_0x1f55c2(0x1e5),_0x1f55c2(0x200),_0x5c8c9f=>!_0x5c8c9f)]},'children':[_0x18a6d3,_0x44b059]}),_0x2b237a;}[_0x56abed(0x1f9)](){const _0x3a0770=_0x56abed,_0x4d85e0=new _0x23efb9(this[_0x3a0770(0x228)]),_0x1f20ed=new _0x23efb9(this[_0x3a0770(0x228)]);return _0x1f20ed[_0x3a0770(0x1f0)]({'tag':_0x3a0770(0x225),'attributes':{'class':['ck',_0x3a0770(0x1eb)]},'children':[_0x50e762(this[_0x3a0770(0x228)],_0x3a0770(0x1ea))]}),_0x4d85e0[_0x3a0770(0x1f0)]({'tag':_0x3a0770(0x210),'attributes':{'class':['ck',_0x3a0770(0x202),this[_0x3a0770(0x21f)]['if'](_0x3a0770(0x222),_0x3a0770(0x200),_0x1b6bee=>!_0x1b6bee)]},'children':[_0x1f20ed]}),_0x4d85e0;}}export class AIWebSourcesView extends _0x23efb9{[_0x56abed(0x212)];constructor(_0x4e66c5){const _0x22c3bc=_0x56abed;super(_0x4e66c5),this[_0x22c3bc(0x212)]=this[_0x22c3bc(0x20d)](),this[_0x22c3bc(0x214)](_0x22c3bc(0x205),!0x1),this[_0x22c3bc(0x1f0)]({'tag':_0x22c3bc(0x210),'attributes':{'class':['ck',_0x22c3bc(0x1e3),this[_0x22c3bc(0x21f)]['if'](_0x22c3bc(0x205),_0x22c3bc(0x200),_0x4dacdd=>!_0x4dacdd)]},'children':this[_0x22c3bc(0x212)]});const _0x1090b4=new _0x23efb9(this[_0x22c3bc(0x228)]),_0x4b5264=new _0x306a8e();_0x4b5264[_0x22c3bc(0x221)]=_0x1c22f0,_0x1090b4[_0x22c3bc(0x1f0)]({'tag':_0x22c3bc(0x210),'attributes':{'class':['ck',_0x22c3bc(0x206)]},'children':[_0x4b5264,{'tag':_0x22c3bc(0x225),'children':[{'text':_0x50e762(this[_0x22c3bc(0x228)],_0x22c3bc(0x227))}]}]}),this[_0x22c3bc(0x212)][_0x22c3bc(0x1d5)](_0x1090b4);}}function _0x459e(){const _0x38d491=['small','open','ck-hidden','img','ck-ai-suggestion__error','823767kErSsW','_createLoaderView','isVisible','ck-ai-web-sources__header','headerView','hasNonEmptyParts','1098219ComLeQ','isShowChangesToggleVisible','72tstcWe','areChangesVisible','createCollection','isOn','items','div','markAsDone','children','10sYvdGN','set','clearLoading','querySelector','clearErrorState','isLoading','_blank','ck-ai-suggestion__loader-text','icon','AI_CHAT_IS_WRITING','sourcesView','ck-rounded-corners','bindTemplate','setErrorState','content','isErrorVisible','errorView','url','span','ck-ai-web-source__image','AI_CHAT_SOURCES_HEADER','locale','isEnabled','addMany','.ck-ai-suggestion__error-text','extendTemplate','add','updateSources','5726817InKkav','bodyView','ck-ai-suggestion__container','miniToolbarView','toggleSuggestionDisplayMode','hideLoader','updateContentParts','313545IbLGCs','delegate','removeNavigationItem','textContent','addNavigationItem','ck-ai-web-sources','favicon','isLoaderVisible','fire','hideError','title','5423496TwXXPd','AI_CHAT_GENERIC_ERROR','ck-ai-suggestion__error-text','bind','showError','loaderView','map','setTemplate','remove','showLoader','updateContent','element','showChangesToggleView','2679090sytXAE','ck-ai-suggestion__loader','toggleShowChanges','_createErrorView','7kdOYLl','ck\x20ck-ai-web-source','setLoading','5263416MAvjLd'];_0x459e=function(){return _0x38d491;};return _0x459e();}export class AIWebSourceView extends _0x121cae{constructor(_0x593757,_0x287407){const _0x54f793=_0x56abed;super(_0x593757),this[_0x54f793(0x214)]({'label':_0x287407[_0x54f793(0x1e8)],'tooltip':_0x287407[_0x54f793(0x1e8)],'class':[_0x54f793(0x1fb)],'withText':!0x0});const _0x3e3bc2=this[_0x54f793(0x21f)];if(this[_0x54f793(0x1d4)]({'on':{'click':_0x3e3bc2['to'](()=>{const _0xaba5cd=_0x54f793;window[_0xaba5cd(0x1ff)](_0x287407[_0xaba5cd(0x224)],_0xaba5cd(0x219));})}}),_0x287407[_0x54f793(0x1e4)]){const _0x1aafbf=new _0x23efb9(_0x593757);_0x1aafbf[_0x54f793(0x1f0)]({'tag':_0x54f793(0x201),'attributes':{'src':_0x287407[_0x54f793(0x1e4)]||_0x1c22f0,'alt':_0x287407[_0x54f793(0x1e8)],'class':[_0x54f793(0x226)]}}),this[_0x54f793(0x212)][_0x54f793(0x1d5)](_0x1aafbf);}else this[_0x54f793(0x214)](_0x54f793(0x21b),_0x1c22f0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x40345c=_0x51f7;function _0x21e9(){const _0x4af304=['ck-ai-suggestion__body__content-part__content','accepted','addMany','change:state','ck-ai-suggestion__body__content-part_','children','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','execute','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','mouseLeaveSuggestion','index','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','innerHTML','setTemplate','insertSuggestion','push','_toolbarView','includes','AI_SUGGESTION_CONTENT_PART_DELETE','htmlStreamer','state','isEnabled','mouseOverSuggestion','11992977VGuARt','toString','items','isVisible','span','showChangeInText','stream','ck-ai-suggestion__body__content-part__icon-outdated','element','ck-ai-suggestion__body__content-part__icon-rejected','2072250dhSQch','ck-ai-suggestion__body__content-part__title','_iconStateRejected','_iconStateAccepted','bind','streaming','ck-ai-suggestion__body__content-part','_iconStateOutdated','outdated','bindTemplate','31668520csRldH','597pkCSLU','rejected','delegate','7ZmdbLQ','ck-content','has','div','content','8228310ZxKAKX','ck-reset_all-excluded','hasChanges','toggleHeader','pending','partDefinition','createCollection','ck-ai-suggestion__body__content-part__icon-accepted','ck-hidden','set','AI_SUGGESTION_CONTENT_PART_OUTDATED','ck-ai-suggestion__body__content-part__title__label','headerView','fire','animation:\x20ck-html-streamer-fade-in\x20.5s','6812RUkQfz','remove','ck-ai-suggestion__body__content-part__icon-title','ck-ai-suggestion__body__content-part_active','2351475oOChKv','extendTemplate','contentView','8tCrfrF','AI_SUGGESTION_CONTENT_PART_REJECTED','rejectSuggestion','AI_SUGGESTION_CONTENT_PART_TITLE','updateContent','1431963IwVnCg','add'];_0x21e9=function(){return _0x4af304;};return _0x21e9();}(function(_0x5d27f9,_0x4ce4ea){const _0xbd25db=_0x51f7,_0x56fa04=_0x5d27f9();while(!![]){try{const _0x2e9594=parseInt(_0xbd25db(0x114))/0x1+-parseInt(_0xbd25db(0x137))/0x2+parseInt(_0xbd25db(0xf1))/0x3*(parseInt(_0xbd25db(0x108))/0x4)+parseInt(_0xbd25db(0x10c))/0x5+-parseInt(_0xbd25db(0xf9))/0x6*(-parseInt(_0xbd25db(0xf4))/0x7)+-parseInt(_0xbd25db(0x10f))/0x8*(-parseInt(_0xbd25db(0x12d))/0x9)+-parseInt(_0xbd25db(0xf0))/0xa;if(_0x2e9594===_0x4ce4ea)break;else _0x56fa04['push'](_0x56fa04['shift']());}catch(_0x43a1c9){_0x56fa04['push'](_0x56fa04['shift']());}}}(_0x21e9,0xb52e4));import{View as _0x14d4bf,IconView as _0x107313,ToolbarView as _0x29ca81,ButtonView as _0x17a635}from'ckeditor5/src/ui.js';import{IconAddComment as _0x16f7a3,IconDocumentWithLoupe as _0xd6f4ae,IconDocumentWithCheckmark as _0x503f75,IconDocumentWithCross as _0x44f936,IconRemove as _0x3a6f28,IconThreeStars as _0x577a32}from'ckeditor5/src/icons.js';function _0x51f7(_0x238647,_0x21a8b2){const _0x21e982=_0x21e9();return _0x51f7=function(_0x51f7f3,_0x36d1a6){_0x51f7f3=_0x51f7f3-0xe7;let _0x406c22=_0x21e982[_0x51f7f3];return _0x406c22;},_0x51f7(_0x238647,_0x21a8b2);}import{HTMLStreamer as _0x165cd8}from'../../utils/htmlstreamer.js';import{getTranslation as _0x544407}from'../../utils/common-translations.js';import{serialize as _0x2acbb8}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x429af9}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x14d4bf{[_0x40345c(0x129)];[_0x40345c(0x11b)];[_0x40345c(0x105)];[_0x40345c(0x10e)];constructor(_0x5115c3,{part:_0x26db29,uiIndex:_0x48ebc2,areActionsDisabled:_0x1c7c11,availableActions:_0x3578dd}){const _0x59ffc4=_0x40345c;super(_0x5115c3),this[_0x59ffc4(0x102)](_0x59ffc4(0xfe),_0x26db29),this[_0x59ffc4(0x102)](_0x59ffc4(0x12a),_0x59ffc4(0xfd)),this[_0x59ffc4(0x102)](_0x59ffc4(0x130),!0x1),this[_0x59ffc4(0xea)](_0x59ffc4(0x12b))['to'](this,_0x59ffc4(0x12a),_0x3be077=>_0x59ffc4(0xfd)==_0x3be077&&!_0x1c7c11),this[_0x59ffc4(0x11b)]=this[_0x59ffc4(0xff)](),this[_0x59ffc4(0x129)]=new _0x165cd8({'textNodeStyle':_0x59ffc4(0x107),'delay':0x14}),this[_0x59ffc4(0x105)]=new Pn(_0x5115c3,{'part':_0x26db29,'uiIndex':_0x48ebc2,'availableActions':_0x3578dd}),this[_0x59ffc4(0x105)][_0x59ffc4(0xea)](_0x59ffc4(0xfe))['to'](this),this[_0x59ffc4(0x105)][_0x59ffc4(0xea)](_0x59ffc4(0x12b))['to'](this),this[_0x59ffc4(0x105)][_0x59ffc4(0xea)](_0x59ffc4(0x12a))['to'](this),this[_0x59ffc4(0x105)][_0x59ffc4(0xf3)](..._0x429af9)['to'](this);const _0x28dfe9=this[_0x59ffc4(0xef)];this[_0x59ffc4(0x10e)]=new _0x14d4bf(),this[_0x59ffc4(0x10e)][_0x59ffc4(0x123)]({'tag':_0x59ffc4(0xf7),'attributes':{'class':['ck',_0x59ffc4(0xf5),_0x59ffc4(0xfa),_0x59ffc4(0x116)]}}),this[_0x59ffc4(0x11b)][_0x59ffc4(0x118)]([this[_0x59ffc4(0x10e)]]),this[_0x59ffc4(0x123)]({'tag':_0x59ffc4(0xf7),'attributes':{'class':['ck',_0x59ffc4(0xec),_0x28dfe9['to'](_0x59ffc4(0x12a),_0x20dbbb=>_0x59ffc4(0x11a)+_0x20dbbb),_0x28dfe9['to'](_0x59ffc4(0x12b),_0x4b58ed=>_0x4b58ed?_0x59ffc4(0x10b):void 0x0),_0x28dfe9['if'](_0x59ffc4(0x130),_0x59ffc4(0x101),_0x55f539=>!_0x55f539)]},'children':this[_0x59ffc4(0x11b)],'on':{'mouseenter':_0x28dfe9['to'](()=>{const _0x5a56a1=_0x59ffc4;this[_0x5a56a1(0x12b)]&&this[_0x5a56a1(0x106)](_0x5a56a1(0x12c),{'index':_0x26db29[_0x5a56a1(0x120)]});}),'mouseleave':_0x28dfe9['to'](()=>{const _0x4f54d8=_0x59ffc4;this[_0x4f54d8(0x12b)]&&this[_0x4f54d8(0x106)](_0x4f54d8(0x11f),{'index':_0x26db29[_0x4f54d8(0x120)]});})}});}async[_0x40345c(0x113)]({part:_0x2343a0,renderingStrategy:_0x45b75c,showUnchangedParts:_0x3caecd=!0x1,abortSignal:_0x1b3426}){const _0x206baa=_0x40345c;this[_0x206baa(0xfe)]=_0x2343a0,this[_0x206baa(0x130)]=this[_0x206baa(0xfe)][_0x206baa(0xfb)]||_0x3caecd,this[_0x206baa(0x130)]&&(_0x206baa(0xeb)===_0x45b75c?await this[_0x206baa(0x129)][_0x206baa(0x133)]({'document':this[_0x206baa(0xfe)][_0x206baa(0xf8)],'targetElement':this[_0x206baa(0x10e)][_0x206baa(0x135)],'abortSignal':_0x1b3426}):this[_0x206baa(0x10e)][_0x206baa(0x135)][_0x206baa(0x122)]=_0x2acbb8(this[_0x206baa(0xfe)][_0x206baa(0xf8)]));}[_0x40345c(0xfc)](_0x1ea187){const _0x503579=_0x40345c;_0x1ea187?this[_0x503579(0x11b)][_0x503579(0xf6)](this[_0x503579(0x105)])||this[_0x503579(0x11b)][_0x503579(0x115)](this[_0x503579(0x105)],0x0):this[_0x503579(0x11b)][_0x503579(0xf6)](this[_0x503579(0x105)])&&this[_0x503579(0x11b)][_0x503579(0x109)](this[_0x503579(0x105)]);}}class Pn extends _0x14d4bf{[_0x40345c(0x11b)];[_0x40345c(0x126)];[_0x40345c(0xe9)];[_0x40345c(0xe8)];[_0x40345c(0xed)];constructor(_0x23fd22,{part:_0x482707,uiIndex:_0x410676,availableActions:_0x4987d1}){const _0x20c68a=_0x40345c;super(_0x23fd22),this[_0x20c68a(0x102)](_0x20c68a(0xfe),_0x482707),this[_0x20c68a(0x102)](_0x20c68a(0x12b),!0x0),this[_0x20c68a(0x102)](_0x20c68a(0x12a),_0x20c68a(0xfd));const _0x5c5627=new _0x107313();_0x5c5627[_0x20c68a(0xf8)]=_0x577a32,_0x5c5627[_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x10a)]}});const _0x11b791=[];if(_0x4987d1[_0x20c68a(0x127)](_0x20c68a(0x132))){const _0x2cfb13=new _0x17a635(_0x23fd22);_0x2cfb13[_0x20c68a(0x102)]({'label':_0x544407(_0x23fd22,_0x20c68a(0x11e)),'tooltip':!0x0,'withText':!0x1,'icon':_0xd6f4ae}),_0x2cfb13[_0x20c68a(0xea)](_0x20c68a(0x12b))['to'](this),_0x2cfb13['on'](_0x20c68a(0x11d),()=>{const _0xae962d=_0x20c68a;this[_0xae962d(0x106)](_0xae962d(0x132),{'index':_0x482707[_0xae962d(0x120)]});}),_0x11b791[_0x20c68a(0x125)](_0x2cfb13);}if(_0x4987d1[_0x20c68a(0x127)](_0x20c68a(0x124))){const _0xe5232c=new _0x17a635(_0x23fd22);_0xe5232c[_0x20c68a(0x102)]({'label':_0x544407(_0x23fd22,_0x20c68a(0x11c)),'tooltip':!0x0,'withText':!0x1,'icon':_0x16f7a3}),_0xe5232c[_0x20c68a(0xea)](_0x20c68a(0x12b))['to'](this),_0xe5232c['on'](_0x20c68a(0x11d),()=>{const _0x3605de=_0x20c68a;this[_0x3605de(0x106)](_0x3605de(0x124),{'index':_0x482707[_0x3605de(0x120)]});}),_0x11b791[_0x20c68a(0x125)](_0xe5232c);}const _0x13e4ab=new _0x17a635(_0x23fd22);_0x13e4ab[_0x20c68a(0x102)]({'label':_0x544407(_0x23fd22,_0x20c68a(0x128)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3a6f28}),_0x13e4ab[_0x20c68a(0xea)](_0x20c68a(0x12b))['to'](this),_0x13e4ab['on'](_0x20c68a(0x11d),()=>{const _0x181824=_0x20c68a;this[_0x181824(0x106)](_0x181824(0x111),{'index':_0x482707[_0x181824(0x120)]});}),_0x11b791[_0x20c68a(0x125)](_0x13e4ab),this[_0x20c68a(0x126)]=new _0x29ca81(_0x23fd22),this[_0x20c68a(0x126)][_0x20c68a(0x12f)][_0x20c68a(0x118)](_0x11b791),this[_0x20c68a(0xe9)]=new _0x107313(),this[_0x20c68a(0xe9)][_0x20c68a(0xf8)]=_0x503f75,this[_0x20c68a(0xe9)][_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x100)],'data-cke-tooltip-text':_0x544407(_0x23fd22,_0x20c68a(0x121)),'data-cke-tooltip-position':'n'}}),this[_0x20c68a(0xe8)]=new _0x107313(),this[_0x20c68a(0xe8)][_0x20c68a(0xf8)]=_0x44f936,this[_0x20c68a(0xe8)][_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x136)],'data-cke-tooltip-text':_0x544407(_0x23fd22,_0x20c68a(0x110)),'data-cke-tooltip-position':'n'}}),this[_0x20c68a(0xed)]=new _0x107313(),this[_0x20c68a(0xed)][_0x20c68a(0xf8)]=_0x44f936,this[_0x20c68a(0xed)][_0x20c68a(0x10d)]({'attributes':{'class':[_0x20c68a(0x134)],'data-cke-tooltip-text':_0x544407(_0x23fd22,_0x20c68a(0x103)),'data-cke-tooltip-position':'n'}});const _0x5d3e6f=new _0x14d4bf(_0x23fd22);_0x5d3e6f[_0x20c68a(0x123)]({'tag':_0x20c68a(0x131),'attributes':{'class':['ck',_0x20c68a(0x104)]},'children':[_0x544407(_0x23fd22,_0x20c68a(0x112),_0x410676[_0x20c68a(0x12e)]())]}),this[_0x20c68a(0x11b)]=this[_0x20c68a(0xff)](),this[_0x20c68a(0x11b)][_0x20c68a(0x118)]([_0x5c5627,_0x5d3e6f,this[_0x20c68a(0x126)]]),this[_0x20c68a(0x123)]({'tag':_0x20c68a(0xf7),'attributes':{'class':['ck',_0x20c68a(0xfa),_0x20c68a(0xe7)]},'children':this[_0x20c68a(0x11b)]}),this['on'](_0x20c68a(0x119),(_0x548e90,_0x1d8302,_0x1b988e,_0x427dd6)=>{const _0x2a77b4=_0x20c68a;switch(_0x427dd6){case _0x2a77b4(0xfd):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0x126)]);break;case _0x2a77b4(0x117):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0xe9)]);break;case _0x2a77b4(0xf2):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0xe8)]);break;case _0x2a77b4(0xee):this[_0x2a77b4(0x11b)][_0x2a77b4(0x109)](this[_0x2a77b4(0xed)]);}switch(_0x1b988e){case _0x2a77b4(0xfd):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0x126)]);break;case _0x2a77b4(0x117):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0xe9)]);break;case _0x2a77b4(0xf2):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0xe8)]);break;case _0x2a77b4(0xee):this[_0x2a77b4(0x11b)][_0x2a77b4(0x115)](this[_0x2a77b4(0xed)]);}});}}
|
|
23
|
+
const _0x556339=_0x23e7;(function(_0x5f0a2f,_0x447fff){const _0x2ee388=_0x23e7,_0x472e9f=_0x5f0a2f();while(!![]){try{const _0x25e6a7=-parseInt(_0x2ee388(0x1af))/0x1+parseInt(_0x2ee388(0x1c9))/0x2*(-parseInt(_0x2ee388(0x1b1))/0x3)+-parseInt(_0x2ee388(0x195))/0x4+-parseInt(_0x2ee388(0x1a2))/0x5*(parseInt(_0x2ee388(0x1be))/0x6)+-parseInt(_0x2ee388(0x191))/0x7+parseInt(_0x2ee388(0x18d))/0x8*(parseInt(_0x2ee388(0x1b2))/0x9)+parseInt(_0x2ee388(0x1ad))/0xa*(parseInt(_0x2ee388(0x199))/0xb);if(_0x25e6a7===_0x447fff)break;else _0x472e9f['push'](_0x472e9f['shift']());}catch(_0x30ba39){_0x472e9f['push'](_0x472e9f['shift']());}}}(_0x398c,0x1d71f));import{View as _0x15e7bf,IconView as _0x4b7e97,ToolbarView as _0x1913d3,ButtonView as _0x53bdf5}from'ckeditor5/src/ui.js';import{IconAddComment as _0x3c0436,IconDocumentWithLoupe as _0x238493,IconDocumentWithCheckmark as _0x5635cf,IconDocumentWithCross as _0x5993f9,IconRemove as _0x83133,IconThreeStars as _0x3d737c}from'ckeditor5/src/icons.js';function _0x398c(){const _0x562111=['992453ImRtWd','ck-ai-suggestion__body__content-part__content','stream','bind','548040mFjmbX','toString','rejected','ck-ai-suggestion__body__content-part__icon-outdated','314919kEgWZX','toggleHeader','state','includes','showChangeInText','ck-ai-suggestion__body__content-part__title','ck-ai-suggestion__body__content-part__title__label','add','content','7335uhzwTh','delegate','extendTemplate','updateContent','_iconStateRejected','hasChanges','ck-ai-suggestion__body__content-part__icon-accepted','AI_SUGGESTION_CONTENT_PART_REJECTED','setTemplate','element','remove','190jxtZxj','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','121843FKoWJm','outdated','83289EqPdrl','9NAKlUc','_iconStateOutdated','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-ai-suggestion__body__content-part__icon-title','ck-ai-suggestion__body__content-part_active','addMany','set','_toolbarView','push','AI_SUGGESTION_CONTENT_PART_TITLE','bindTemplate','isVisible','654UNHDCh','accepted','partDefinition','pending','ck-ai-suggestion__body__content-part','streaming','span','insertSuggestion','change:state','mouseLeaveSuggestion','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','6WmhNdM','has','createCollection','innerHTML','mouseOverSuggestion','execute','children','index','AI_SUGGESTION_CONTENT_PART_OUTDATED','headerView','contentView','AI_SUGGESTION_CONTENT_PART_DELETE','rejectSuggestion','fire','isEnabled','ck-hidden','ck-reset_all-excluded','ck-ai-suggestion__body__content-part_','htmlStreamer','ck-ai-suggestion__body__content-part__icon-rejected','div','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','1763840kFGFoq','items','ck-content','_iconStateAccepted'];_0x398c=function(){return _0x562111;};return _0x398c();}import{HTMLStreamer as _0x1debe5}from'../../utils/htmlstreamer.js';import{getTranslation as _0x4f586c}from'../../utils/common-translations.js';import{serialize as _0x214ee0}from'../../utils/htmlparser.js';function _0x23e7(_0x311648,_0x5f3b65){const _0x398c5f=_0x398c();return _0x23e7=function(_0x23e709,_0x45e45c){_0x23e709=_0x23e709-0x18d;let _0x5e8569=_0x398c5f[_0x23e709];return _0x5e8569;},_0x23e7(_0x311648,_0x5f3b65);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0xacb148}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x15e7bf{[_0x556339(0x1db)];[_0x556339(0x1cf)];[_0x556339(0x1d2)];[_0x556339(0x1d3)];constructor(_0x308f41,{part:_0x371e4b,uiIndex:_0x397714,areActionsDisabled:_0x208bd0,availableActions:_0x4f3379}){const _0x251d26=_0x556339;super(_0x308f41),this[_0x251d26(0x1b8)](_0x251d26(0x1c0),_0x371e4b),this[_0x251d26(0x1b8)](_0x251d26(0x19b),_0x251d26(0x1c1)),this[_0x251d26(0x1b8)](_0x251d26(0x1bd),!0x1),this[_0x251d26(0x194)](_0x251d26(0x1d7))['to'](this,_0x251d26(0x19b),_0x255a78=>_0x251d26(0x1c1)==_0x255a78&&!_0x208bd0),this[_0x251d26(0x1cf)]=this[_0x251d26(0x1cb)](),this[_0x251d26(0x1db)]=new _0x1debe5({'textNodeStyle':_0x251d26(0x1b4),'delay':0x14}),this[_0x251d26(0x1d2)]=new Un(_0x308f41,{'part':_0x371e4b,'uiIndex':_0x397714,'availableActions':_0x4f3379}),this[_0x251d26(0x1d2)][_0x251d26(0x194)](_0x251d26(0x1c0))['to'](this),this[_0x251d26(0x1d2)][_0x251d26(0x194)](_0x251d26(0x1d7))['to'](this),this[_0x251d26(0x1d2)][_0x251d26(0x194)](_0x251d26(0x19b))['to'](this),this[_0x251d26(0x1d2)][_0x251d26(0x1a3)](..._0xacb148)['to'](this);const _0xa6444a=this[_0x251d26(0x1bc)];this[_0x251d26(0x1d3)]=new _0x15e7bf(),this[_0x251d26(0x1d3)][_0x251d26(0x1aa)]({'tag':_0x251d26(0x1dd),'attributes':{'class':['ck',_0x251d26(0x18f),_0x251d26(0x1d9),_0x251d26(0x192)]}}),this[_0x251d26(0x1cf)][_0x251d26(0x1b7)]([this[_0x251d26(0x1d3)]]),this[_0x251d26(0x1aa)]({'tag':_0x251d26(0x1dd),'attributes':{'class':['ck',_0x251d26(0x1c2),_0xa6444a['to'](_0x251d26(0x19b),_0x15eb90=>_0x251d26(0x1da)+_0x15eb90),_0xa6444a['to'](_0x251d26(0x1d7),_0x572af4=>_0x572af4?_0x251d26(0x1b6):void 0x0),_0xa6444a['if'](_0x251d26(0x1bd),_0x251d26(0x1d8),_0x510117=>!_0x510117)]},'children':this[_0x251d26(0x1cf)],'on':{'mouseenter':_0xa6444a['to'](()=>{const _0x1310cb=_0x251d26;this[_0x1310cb(0x1d7)]&&this[_0x1310cb(0x1d6)](_0x1310cb(0x1cd),{'index':_0x371e4b[_0x1310cb(0x1d0)]});}),'mouseleave':_0xa6444a['to'](()=>{const _0x282a4f=_0x251d26;this[_0x282a4f(0x1d7)]&&this[_0x282a4f(0x1d6)](_0x282a4f(0x1c7),{'index':_0x371e4b[_0x282a4f(0x1d0)]});})}});}async[_0x556339(0x1a5)]({part:_0x1e1011,renderingStrategy:_0x5aba41,showUnchangedParts:_0x213545=!0x1,abortSignal:_0x40c027}){const _0x38cf14=_0x556339;this[_0x38cf14(0x1c0)]=_0x1e1011,this[_0x38cf14(0x1bd)]=this[_0x38cf14(0x1c0)][_0x38cf14(0x1a7)]||_0x213545,this[_0x38cf14(0x1bd)]&&(_0x38cf14(0x1c3)===_0x5aba41?await this[_0x38cf14(0x1db)][_0x38cf14(0x193)]({'document':this[_0x38cf14(0x1c0)][_0x38cf14(0x1a1)],'targetElement':this[_0x38cf14(0x1d3)][_0x38cf14(0x1ab)],'abortSignal':_0x40c027}):this[_0x38cf14(0x1d3)][_0x38cf14(0x1ab)][_0x38cf14(0x1cc)]=_0x214ee0(this[_0x38cf14(0x1c0)][_0x38cf14(0x1a1)]));}[_0x556339(0x19a)](_0x312327){const _0x19644b=_0x556339;_0x312327?this[_0x19644b(0x1cf)][_0x19644b(0x1ca)](this[_0x19644b(0x1d2)])||this[_0x19644b(0x1cf)][_0x19644b(0x1a0)](this[_0x19644b(0x1d2)],0x0):this[_0x19644b(0x1cf)][_0x19644b(0x1ca)](this[_0x19644b(0x1d2)])&&this[_0x19644b(0x1cf)][_0x19644b(0x1ac)](this[_0x19644b(0x1d2)]);}}class Un extends _0x15e7bf{[_0x556339(0x1cf)];[_0x556339(0x1b9)];[_0x556339(0x190)];[_0x556339(0x1a6)];[_0x556339(0x1b3)];constructor(_0x23d25b,{part:_0xa50941,uiIndex:_0x442b84,availableActions:_0x1f8d6d}){const _0x6152c7=_0x556339;super(_0x23d25b),this[_0x6152c7(0x1b8)](_0x6152c7(0x1c0),_0xa50941),this[_0x6152c7(0x1b8)](_0x6152c7(0x1d7),!0x0),this[_0x6152c7(0x1b8)](_0x6152c7(0x19b),_0x6152c7(0x1c1));const _0x22b748=new _0x4b7e97();_0x22b748[_0x6152c7(0x1a1)]=_0x3d737c,_0x22b748[_0x6152c7(0x1a4)]({'attributes':{'class':[_0x6152c7(0x1b5)]}});const _0x219579=[];if(_0x1f8d6d[_0x6152c7(0x19c)](_0x6152c7(0x19d))){const _0x38138c=new _0x53bdf5(_0x23d25b);_0x38138c[_0x6152c7(0x1b8)]({'label':_0x4f586c(_0x23d25b,_0x6152c7(0x1c8)),'tooltip':!0x0,'withText':!0x1,'icon':_0x238493}),_0x38138c[_0x6152c7(0x194)](_0x6152c7(0x1d7))['to'](this),_0x38138c['on'](_0x6152c7(0x1ce),()=>{const _0x5ecd0a=_0x6152c7;this[_0x5ecd0a(0x1d6)](_0x5ecd0a(0x19d),{'index':_0xa50941[_0x5ecd0a(0x1d0)]});}),_0x219579[_0x6152c7(0x1ba)](_0x38138c);}if(_0x1f8d6d[_0x6152c7(0x19c)](_0x6152c7(0x1c5))){const _0x764007=new _0x53bdf5(_0x23d25b);_0x764007[_0x6152c7(0x1b8)]({'label':_0x4f586c(_0x23d25b,_0x6152c7(0x1de)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3c0436}),_0x764007[_0x6152c7(0x194)](_0x6152c7(0x1d7))['to'](this),_0x764007['on'](_0x6152c7(0x1ce),()=>{const _0x140c25=_0x6152c7;this[_0x140c25(0x1d6)](_0x140c25(0x1c5),{'index':_0xa50941[_0x140c25(0x1d0)]});}),_0x219579[_0x6152c7(0x1ba)](_0x764007);}const _0x16f74f=new _0x53bdf5(_0x23d25b);_0x16f74f[_0x6152c7(0x1b8)]({'label':_0x4f586c(_0x23d25b,_0x6152c7(0x1d4)),'tooltip':!0x0,'withText':!0x1,'icon':_0x83133}),_0x16f74f[_0x6152c7(0x194)](_0x6152c7(0x1d7))['to'](this),_0x16f74f['on'](_0x6152c7(0x1ce),()=>{const _0x413606=_0x6152c7;this[_0x413606(0x1d6)](_0x413606(0x1d5),{'index':_0xa50941[_0x413606(0x1d0)]});}),_0x219579[_0x6152c7(0x1ba)](_0x16f74f),this[_0x6152c7(0x1b9)]=new _0x1913d3(_0x23d25b),this[_0x6152c7(0x1b9)][_0x6152c7(0x18e)][_0x6152c7(0x1b7)](_0x219579),this[_0x6152c7(0x190)]=new _0x4b7e97(),this[_0x6152c7(0x190)][_0x6152c7(0x1a1)]=_0x5635cf,this[_0x6152c7(0x190)][_0x6152c7(0x1a4)]({'attributes':{'class':[_0x6152c7(0x1a8)],'data-cke-tooltip-text':_0x4f586c(_0x23d25b,_0x6152c7(0x1ae)),'data-cke-tooltip-position':'n'}}),this[_0x6152c7(0x1a6)]=new _0x4b7e97(),this[_0x6152c7(0x1a6)][_0x6152c7(0x1a1)]=_0x5993f9,this[_0x6152c7(0x1a6)][_0x6152c7(0x1a4)]({'attributes':{'class':[_0x6152c7(0x1dc)],'data-cke-tooltip-text':_0x4f586c(_0x23d25b,_0x6152c7(0x1a9)),'data-cke-tooltip-position':'n'}}),this[_0x6152c7(0x1b3)]=new _0x4b7e97(),this[_0x6152c7(0x1b3)][_0x6152c7(0x1a1)]=_0x5993f9,this[_0x6152c7(0x1b3)][_0x6152c7(0x1a4)]({'attributes':{'class':[_0x6152c7(0x198)],'data-cke-tooltip-text':_0x4f586c(_0x23d25b,_0x6152c7(0x1d1)),'data-cke-tooltip-position':'n'}});const _0x690404=new _0x15e7bf(_0x23d25b);_0x690404[_0x6152c7(0x1aa)]({'tag':_0x6152c7(0x1c4),'attributes':{'class':['ck',_0x6152c7(0x19f)]},'children':[_0x4f586c(_0x23d25b,_0x6152c7(0x1bb),_0x442b84[_0x6152c7(0x196)]())]}),this[_0x6152c7(0x1cf)]=this[_0x6152c7(0x1cb)](),this[_0x6152c7(0x1cf)][_0x6152c7(0x1b7)]([_0x22b748,_0x690404,this[_0x6152c7(0x1b9)]]),this[_0x6152c7(0x1aa)]({'tag':_0x6152c7(0x1dd),'attributes':{'class':['ck',_0x6152c7(0x1d9),_0x6152c7(0x19e)]},'children':this[_0x6152c7(0x1cf)]}),this['on'](_0x6152c7(0x1c6),(_0x7ee45,_0x4ea0ca,_0x3b8084,_0x38e022)=>{const _0x60439d=_0x6152c7;switch(_0x38e022){case _0x60439d(0x1c1):this[_0x60439d(0x1cf)][_0x60439d(0x1ac)](this[_0x60439d(0x1b9)]);break;case _0x60439d(0x1bf):this[_0x60439d(0x1cf)][_0x60439d(0x1ac)](this[_0x60439d(0x190)]);break;case _0x60439d(0x197):this[_0x60439d(0x1cf)][_0x60439d(0x1ac)](this[_0x60439d(0x1a6)]);break;case _0x60439d(0x1b0):this[_0x60439d(0x1cf)][_0x60439d(0x1ac)](this[_0x60439d(0x1b3)]);}switch(_0x3b8084){case _0x60439d(0x1c1):this[_0x60439d(0x1cf)][_0x60439d(0x1a0)](this[_0x60439d(0x1b9)]);break;case _0x60439d(0x1bf):this[_0x60439d(0x1cf)][_0x60439d(0x1a0)](this[_0x60439d(0x190)]);break;case _0x60439d(0x197):this[_0x60439d(0x1cf)][_0x60439d(0x1a0)](this[_0x60439d(0x1a6)]);break;case _0x60439d(0x1b0):this[_0x60439d(0x1cf)][_0x60439d(0x1a0)](this[_0x60439d(0x1b3)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x248c(){const _0x18e778=['3365395VkMFlC','showChangesToggleView','6893703UnyRAw','AI_SUGGESTION_BUTTON_SHOW_CHANGES','icon','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','4qcTmcG','render','add','set','isShowChangesToggleVisible','toggleShowChanges','ck-ai-suggestion__header','remove','ck-hidden','iconView','isOn','29390339MjOzrY','bind','div','content','isVisible','children','filter','1jbYKpC','span','showDiff','fire','2740377xWDnto','showHeader','32sPLIay','637448iqvZuF','4709010EbbSGC','execute','setTemplate','AI_SUGGESTION_HEADER_TITLE','1561810nxCTCa','10wfMaHa'];_0x248c=function(){return _0x18e778;};return _0x248c();}const _0x34e34b=_0x1ffe;(function(_0x4bec03,_0x19a866){const _0x2cf6b4=_0x1ffe,_0x90fdae=_0x4bec03();while(!![]){try{const _0x3df171=parseInt(_0x2cf6b4(0x200))/0x1*(-parseInt(_0x2cf6b4(0x20c))/0x2)+-parseInt(_0x2cf6b4(0x204))/0x3+-parseInt(_0x2cf6b4(0x214))/0x4*(-parseInt(_0x2cf6b4(0x20e))/0x5)+-parseInt(_0x2cf6b4(0x208))/0x6+-parseInt(_0x2cf6b4(0x207))/0x7*(-parseInt(_0x2cf6b4(0x206))/0x8)+-parseInt(_0x2cf6b4(0x210))/0x9+-parseInt(_0x2cf6b4(0x20d))/0xa*(-parseInt(_0x2cf6b4(0x1f9))/0xb);if(_0x3df171===_0x19a866)break;else _0x90fdae['push'](_0x90fdae['shift']());}catch(_0x11b78d){_0x90fdae['push'](_0x90fdae['shift']());}}}(_0x248c,0x71492));import{getTranslation as _0x401435}from'../../utils/common-translations.js';import{ButtonView as _0x174413,IconView as _0x3c9225,View as _0xfa5020}from'ckeditor5/src/ui.js';function _0x1ffe(_0x17d1c1,_0x376078){const _0x248c04=_0x248c();return _0x1ffe=function(_0x1ffe95,_0x1181b9){_0x1ffe95=_0x1ffe95-0x1f3;let _0x5f7440=_0x248c04[_0x1ffe95];return _0x5f7440;},_0x1ffe(_0x17d1c1,_0x376078);}import{IconDocument as _0x38b90c,IconShowChangesOff as _0x21ae97,IconShowChangesOn as _0x1928dd}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0xfa5020{[_0x34e34b(0x20f)];constructor(_0x10cfa3,_0xb36767){const _0x4028cd=_0x34e34b;super(_0x10cfa3),this[_0x4028cd(0x217)](_0x4028cd(0x218),!0x0),this[_0x4028cd(0x20f)]=new ShowChangesToggleView(_0x10cfa3),this[_0x4028cd(0x20f)][_0x4028cd(0x217)]({'class':_0x4028cd(0x213),'label':_0x401435(_0x10cfa3,_0x4028cd(0x211)),'withText':!0x0}),this[_0x4028cd(0x20f)][_0x4028cd(0x1f8)]=_0xb36767[_0x4028cd(0x202)],this[_0x4028cd(0x20f)][_0x4028cd(0x1fa)](_0x4028cd(0x1fd))['to'](this,_0x4028cd(0x218)),this[_0x4028cd(0x20f)][_0x4028cd(0x1fa)](_0x4028cd(0x212))['to'](this[_0x4028cd(0x20f)],_0x4028cd(0x1f8),_0x548789=>_0x548789?_0x1928dd:_0x21ae97),this[_0x4028cd(0x20f)]['on'](_0x4028cd(0x209),()=>{const _0x5c18c9=_0x4028cd;this[_0x5c18c9(0x20f)][_0x5c18c9(0x1f8)]=!this[_0x5c18c9(0x20f)][_0x5c18c9(0x1f8)],this[_0x5c18c9(0x203)](_0x5c18c9(0x1f3),{'isOn':this[_0x5c18c9(0x20f)][_0x5c18c9(0x1f8)]});});const _0x42230d=new _0x3c9225();_0x42230d[_0x4028cd(0x1fc)]=_0x38b90c,this[_0x4028cd(0x20a)]({'tag':_0x4028cd(0x1fb),'attributes':{'class':['ck',_0x4028cd(0x1f4),!0x1===_0xb36767[_0x4028cd(0x205)]?_0x4028cd(0x1f6):null][_0x4028cd(0x1ff)](Boolean)},'children':[_0x42230d,{'tag':_0x4028cd(0x201),'children':[_0x401435(_0x10cfa3,_0x4028cd(0x20b))]},this[_0x4028cd(0x20f)]]});}}export class ShowChangesToggleView extends _0x174413{[_0x34e34b(0x215)](){const _0x363959=_0x34e34b;super[_0x363959(0x215)](),this[_0x363959(0x1fe)][_0x363959(0x1f5)](this[_0x363959(0x1f7)]),this[_0x363959(0x1fe)][_0x363959(0x216)](this[_0x363959(0x1f7)]);}}
|