@ckeditor/ckeditor5-ai 47.3.0-alpha.3 → 47.3.0-alpha.4
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/aiassistantediting.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/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.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/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/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/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.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/aichathistoryview.js +1 -1
- package/src/aicore/aiediting.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/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/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.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/tabpanelview.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0xd4eb35=_0x16cc;function _0x16cc(_0x5b22ef,_0x202a60){const _0x272259=_0x2722();return _0x16cc=function(_0x16cc42,_0x4f329b){_0x16cc42=_0x16cc42-0xc3;let _0x4fb710=_0x272259[_0x16cc42];return _0x4fb710;},_0x16cc(_0x5b22ef,_0x202a60);}(function(_0x420786,_0x4a06db){const _0x349011=_0x16cc,_0x2ed72e=_0x420786();while(!![]){try{const _0x26b46f=parseInt(_0x349011(0xcc))/0x1+-parseInt(_0x349011(0xc9))/0x2*(parseInt(_0x349011(0xc8))/0x3)+-parseInt(_0x349011(0xd4))/0x4*(parseInt(_0x349011(0xc5))/0x5)+-parseInt(_0x349011(0xd3))/0x6*(-parseInt(_0x349011(0xd2))/0x7)+parseInt(_0x349011(0xc3))/0x8*(parseInt(_0x349011(0xce))/0x9)+parseInt(_0x349011(0xc7))/0xa+-parseInt(_0x349011(0xcd))/0xb*(parseInt(_0x349011(0xca))/0xc);if(_0x26b46f===_0x4a06db)break;else _0x2ed72e['push'](_0x2ed72e['shift']());}catch(_0x2aa008){_0x2ed72e['push'](_0x2ed72e['shift']());}}}(_0x2722,0x59981));import{ObservableMixin as _0x2fa048}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x9faa5a}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x145248}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2fa048(){[_0xd4eb35(0xd5)];constructor(){const _0x1c8148=_0xd4eb35;super(),this[_0x1c8148(0xd5)]=new _0x9faa5a();}[_0xd4eb35(0xc6)](_0x4024ed){const _0x1b3178=_0xd4eb35,_0x19a8ed=this[_0x1b3178(0xd5)][_0x1b3178(0xd7)](_0x4024ed);return this[_0x1b3178(0xc4)](_0x19a8ed);}[_0xd4eb35(0xc4)](_0x3ca1bf){const _0x3611f7=_0xd4eb35;return this[_0x3611f7(0xd6)](_0x3ca1bf);}[_0xd4eb35(0xd6)](_0x56003b){const _0x10cc35=_0xd4eb35,_0x836bef=_0x56003b[_0x10cc35(0xcb)](/^\t+/gm,'\x20')[_0x10cc35(0xcb)](/\n*/g,'')[_0x10cc35(0xcb)](/\s+/g,'\x20')[_0x10cc35(0xcb)](/<[^>]*?$/g,''),_0x33f853=_0x145248(_0x10cc35(0xd0)+_0x836bef+_0x10cc35(0xcf));return _0x33f853[_0x10cc35(0xd1)]=_0x33f853[_0x10cc35(0xd1)][0x0][_0x10cc35(0xd1)],_0x33f853;}}function _0x2722(){const _0x31c7df=['replace','413924KHMRQB','77jUZWAs','972JCVOvQ','</dummy>','<dummy>','children','14QmaBNx','232608ipxRYC','50108hBXKmj','_m2html','_parseHTML','parse','21656MslCeP','parseAndNormalizeHTML','55ffygHS','convertMarkdownToHTML','1182220jVeWYD','38598gTxscO','2WTXorX','658968tSCJVu'];_0x2722=function(){return _0x31c7df;};return _0x2722();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5d2377,_0xac72ed){var _0x3a70dc=_0xf15c,_0x28c32c=_0x5d2377();while(!![]){try{var _0x536f69=parseInt(_0x3a70dc(0x186))/0x1+parseInt(_0x3a70dc(0x185))/0x2*(-parseInt(_0x3a70dc(0x181))/0x3)+parseInt(_0x3a70dc(0x17e))/0x4+parseInt(_0x3a70dc(0x182))/0x5*(-parseInt(_0x3a70dc(0x187))/0x6)+-parseInt(_0x3a70dc(0x17d))/0x7*(-parseInt(_0x3a70dc(0x17a))/0x8)+parseInt(_0x3a70dc(0x184))/0x9*(parseInt(_0x3a70dc(0x180))/0xa)+parseInt(_0x3a70dc(0x188))/0xb*(parseInt(_0x3a70dc(0x17f))/0xc);if(_0x536f69===_0xac72ed)break;else _0x28c32c['push'](_0x28c32c['shift']());}catch(_0x1c0695){_0x28c32c['push'](_0x28c32c['shift']());}}}(_0x4188,0xcab02));function _0x4188(){var _0x57b0b7=['1133124honpyU','236863aAYXYZ','div','AI_DISCLAIMER_TEXT','24jjgrSs','setTemplate','ck-ai-disclaimer','881461ByRUaJ','538956lzsCMs','396lIeLqw','20vMMtPu','216063ylpXxf','35aYwTNw','ck-ai-disclaimer__content','5179959pvqdQe','22pWsKHF','570220pqSXgI'];_0x4188=function(){return _0x57b0b7;};return _0x4188();}function _0xf15c(_0x3e23d5,_0x53ebfa){var _0x4188fd=_0x4188();return _0xf15c=function(_0xf15cd7,_0x6e912f){_0xf15cd7=_0xf15cd7-0x17a;var _0x5147cc=_0x4188fd[_0xf15cd7];return _0x5147cc;},_0xf15c(_0x3e23d5,_0x53ebfa);}import{View as _0x33a73d}from'ckeditor5/src/ui.js';import{getTranslation as _0x357647}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x33a73d{constructor(_0x50ff4f){var _0x298e76=_0xf15c;super(_0x50ff4f),this[_0x298e76(0x17b)]({'tag':_0x298e76(0x189),'attributes':{'class':['ck',_0x298e76(0x17c)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x298e76(0x183)]},'children':[{'text':_0x357647(_0x50ff4f,_0x298e76(0x18a))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11ad6b=_0x358f;(function(_0x204c12,_0x5f11f3){const _0x39f7d1=_0x358f,_0x335ef1=_0x204c12();while(!![]){try{const _0x36bf0a=-parseInt(_0x39f7d1(0x95))/0x1*(-parseInt(_0x39f7d1(0x7d))/0x2)+parseInt(_0x39f7d1(0x81))/0x3+-parseInt(_0x39f7d1(0x92))/0x4*(parseInt(_0x39f7d1(0x9c))/0x5)+parseInt(_0x39f7d1(0x8f))/0x6+parseInt(_0x39f7d1(0x87))/0x7*(parseInt(_0x39f7d1(0x85))/0x8)+-parseInt(_0x39f7d1(0x94))/0x9+-parseInt(_0x39f7d1(0x8e))/0xa;if(_0x36bf0a===_0x5f11f3)break;else _0x335ef1['push'](_0x335ef1['shift']());}catch(_0x7379ef){_0x335ef1['push'](_0x335ef1['shift']());}}}(_0x3f70,0xd2930));import{View as _0x21872f}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x21872f{constructor(_0x4f9f22,_0x255204){const _0x4e4bbd=_0x358f;super(_0x4f9f22),this[_0x4e4bbd(0x7b)]({'tag':_0x4e4bbd(0x8b),'attributes':{'class':['ck',_0x4e4bbd(0x98)]},'children':this[_0x4e4bbd(0xa2)](_0x255204)});}[_0x11ad6b(0xa2)](_0x4e31f2){const _0x38ca57=_0x11ad6b,_0x151429=['ck',_0x38ca57(0x7c)];return _0x4e31f2[_0x38ca57(0xa0)](_0x471101=>{const _0x253ea6=_0x38ca57;let _0x4cab54='';switch(_0x471101[_0x253ea6(0x88)][_0x253ea6(0x86)]){case _0x253ea6(0x9b):_0x4cab54=_0x253ea6(0x7e);break;case _0x253ea6(0x99):_0x4cab54=_0x253ea6(0x8a);break;case _0x253ea6(0x93):_0x4cab54=_0x253ea6(0x8d);}return{'tag':_0x471101[_0x253ea6(0x84)],'attributes':{'class':[..._0x151429,_0x471101[_0x253ea6(0x88)][_0x253ea6(0x9d)]?_0x471101[_0x253ea6(0x88)][_0x253ea6(0x9d)]:''],'style':_0x253ea6(0x9f)+_0x471101[_0x253ea6(0x88)][_0x253ea6(0x7f)]+_0x253ea6(0x90)+_0x471101[_0x253ea6(0x88)][_0x253ea6(0x8c)]+';'+_0x4cab54}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x96),'height':_0x11ad6b(0x82),'align':_0x11ad6b(0x9b)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0xa1),'height':_0x11ad6b(0x7a),'align':_0x11ad6b(0x9b)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x96),'height':_0x11ad6b(0x80),'align':_0x11ad6b(0x9b)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x9e),'height':_0x11ad6b(0x7a),'align':_0x11ad6b(0x9b)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x96),'height':_0x11ad6b(0x83),'align':_0x11ad6b(0x9b)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0xa1),'height':_0x11ad6b(0x7a),'align':_0x11ad6b(0x9b)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x96),'height':_0x11ad6b(0x80),'align':_0x11ad6b(0x9b)}}],'aiHistory':ta(0x5,_0x11ad6b(0x96),_0x11ad6b(0x89),_0x11ad6b(0x9b)),'aiChatResources':ta(0x8,_0x11ad6b(0x96),_0x11ad6b(0x9a),_0x11ad6b(0x9b)),'aiReviewChecks':[{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x91),'height':_0x11ad6b(0x9a),'align':_0x11ad6b(0x93)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x96),'height':_0x11ad6b(0x9a),'align':_0x11ad6b(0x93)}},{'tag':_0x11ad6b(0x8b),'attributes':{'width':_0x11ad6b(0x91),'height':_0x11ad6b(0x9a),'align':_0x11ad6b(0x93)}}]};function _0x358f(_0x168d72,_0x461d03){const _0x3f70bd=_0x3f70();return _0x358f=function(_0x358f8f,_0x5bc109){_0x358f8f=_0x358f8f-0x7a;let _0x1246f4=_0x3f70bd[_0x358f8f];return _0x1246f4;},_0x358f(_0x168d72,_0x461d03);}function ta(_0x253c31,_0x48f573,_0x5d3090,_0x4bb7ab){const _0x347403=_0x11ad6b;return new Array(_0x253c31)[_0x347403(0x97)](null)[_0x347403(0xa0)](()=>({'tag':_0x347403(0x8b),'attributes':{'width':_0x48f573,'height':_0x5d3090,'align':_0x4bb7ab}}));}function _0x3f70(){const _0x42a7e9=['width','88px','1097685nmkCBj','72px','140px','tag','40ifcLpe','align','2288510xPRoLy','attributes','44px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','div','height','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','9188870LDMWPS','3639744FZTevW',';\x20height:\x20','128px','2900DaOCEH','left','7645320uqkQtt','55569fhiSID','100%','fill','ck-ai-skeleton','center','24px','right','5585JRoQZT','class','150px','width:\x20','map','250px','_createSkeletonItems','40px','setTemplate','ck-ai-skeleton__item','30iInDwP','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;'];_0x3f70=function(){return _0x42a7e9;};return _0x3f70();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cedcf=_0x4864;function _0x2b29(){const _0x2018b6=['execute','fire','AI_MINI_TOOLBAR_DISLIKE','5793910UIILrS','showChangesButton','children','132dvVoWl','_setupCopyButton','length','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','likeButton','1269688xGtHgx','full','toggleShowChanges','460KrCBph','163867hmKvWc','copyButton','ck-ai-mini-toolbar\x20ck-hidden','add','2304756qerbYe','AI_MINI_TOOLBAR_COPY','bind','like','_setupRatingButtons','40061URmJzc','showChanges','isOn','ck-ai-mini-toolbar','ck-ai-mini-toolbar-copy-button','showDislike','locale','showCopy','isLoading','16ixVkuE','isEnabled','ck-ai-mini-toolbar-copy-button__check-mark','dislikeButton','extendTemplate','AI_SUGGESTION_BUTTON_SHOW_CHANGES','_setupShowChangesButton','class','showLike','AI_MINI_TOOLBAR_LIKE','dislike','_config','items','426249ZlENer','customView','7686ndReus','set','2136nUtfaQ','addMany'];_0x2b29=function(){return _0x2018b6;};return _0x2b29();}(function(_0x5d95f0,_0x27aaf8){const _0xcaa5bf=_0x4864,_0x376a00=_0x5d95f0();while(!![]){try{const _0x1529e1=-parseInt(_0xcaa5bf(0xd9))/0x1+parseInt(_0xcaa5bf(0xe1))/0x2+parseInt(_0xcaa5bf(0xca))/0x3*(parseInt(_0xcaa5bf(0xcc))/0x4)+-parseInt(_0xcaa5bf(0xd1))/0x5+parseInt(_0xcaa5bf(0xd4))/0x6*(-parseInt(_0xcaa5bf(0xe6))/0x7)+parseInt(_0xcaa5bf(0xbb))/0x8*(parseInt(_0xcaa5bf(0xc8))/0x9)+-parseInt(_0xcaa5bf(0xdc))/0xa*(-parseInt(_0xcaa5bf(0xdd))/0xb);if(_0x1529e1===_0x27aaf8)break;else _0x376a00['push'](_0x376a00['shift']());}catch(_0x496c18){_0x376a00['push'](_0x376a00['shift']());}}}(_0x2b29,0xb626e));import{ButtonView as _0x1a36ce,IconView as _0x78d9ab,ToolbarView as _0x34a89c}from'ckeditor5/src/ui.js';import{IconCheck as _0x4ef08f,IconCopy as _0x5ea8ec,IconShowChangesOff as _0x4769d5,IconShowChangesOn as _0x4f322c,IconThumbDown as _0x4f9bb7,IconThumbUp as _0x39b32c}from'@ckeditor/ckeditor5-icons';function _0x4864(_0x2a0a0f,_0x1c92e4){const _0x2b29f1=_0x2b29();return _0x4864=function(_0x486485,_0x29c8c6){_0x486485=_0x486485-0xb3;let _0x54e222=_0x2b29f1[_0x486485];return _0x54e222;},_0x4864(_0x2a0a0f,_0x1c92e4);}import{getTranslation as _0x3a8fc9}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x34a89c{[_0x1cedcf(0xde)];[_0x1cedcf(0xd8)];[_0x1cedcf(0xbe)];[_0x1cedcf(0xd2)];[_0x1cedcf(0xc6)];constructor(_0x56ca4d,_0x506ca3={},_0x34abb9){const _0x193bdf=_0x1cedcf;super(_0x56ca4d),this[_0x193bdf(0xcb)](_0x193bdf(0xba),!0x1),this[_0x193bdf(0xc6)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x506ca3};const _0x5690b8=!(this[_0x193bdf(0xc6)][_0x193bdf(0xb9)]||this[_0x193bdf(0xc6)][_0x193bdf(0xb3)]||this[_0x193bdf(0xc6)][_0x193bdf(0xc3)]||this[_0x193bdf(0xc6)][_0x193bdf(0xb7)]||this[_0x193bdf(0xc6)][_0x193bdf(0xc9)]?.[_0x193bdf(0xd6)]);this[_0x193bdf(0xc2)]=_0x5690b8?_0x193bdf(0xdf):_0x193bdf(0xb5),this[_0x193bdf(0xc6)][_0x193bdf(0xb9)]&&(this[_0x193bdf(0xd5)](),this[_0x193bdf(0xc7)][_0x193bdf(0xe0)](this[_0x193bdf(0xde)])),this[_0x193bdf(0xc6)][_0x193bdf(0xb3)]&&(this[_0x193bdf(0xc1)](_0x34abb9),this[_0x193bdf(0xc7)][_0x193bdf(0xe0)](this[_0x193bdf(0xd2)])),this[_0x193bdf(0xe5)](),this[_0x193bdf(0xc6)][_0x193bdf(0xc3)]&&this[_0x193bdf(0xc7)][_0x193bdf(0xe0)](this[_0x193bdf(0xd8)]),this[_0x193bdf(0xc6)][_0x193bdf(0xb7)]&&this[_0x193bdf(0xc7)][_0x193bdf(0xe0)](this[_0x193bdf(0xbe)]),this[_0x193bdf(0xc6)][_0x193bdf(0xc9)]&&this[_0x193bdf(0xc7)][_0x193bdf(0xcd)](this[_0x193bdf(0xc6)][_0x193bdf(0xc9)]);}[_0x1cedcf(0xe5)](){const _0x481309=_0x1cedcf;this[_0x481309(0xd8)]=new _0x1a36ce(this[_0x481309(0xb8)]),this[_0x481309(0xd8)][_0x481309(0xcb)]({'icon':_0x39b32c,'label':_0x3a8fc9(this[_0x481309(0xb8)],_0x481309(0xc4)),'tooltip':!0x0}),this[_0x481309(0xd8)][_0x481309(0xe3)](_0x481309(0xbc))['to'](this,_0x481309(0xba),_0x15998c=>!_0x15998c),this[_0x481309(0xd8)]['on'](_0x481309(0xce),()=>{const _0x3f8d07=_0x481309;this[_0x3f8d07(0xcf)](_0x3f8d07(0xe4));}),this[_0x481309(0xbe)]=new _0x1a36ce(this[_0x481309(0xb8)]),this[_0x481309(0xbe)][_0x481309(0xcb)]({'icon':_0x4f9bb7,'label':_0x3a8fc9(this[_0x481309(0xb8)],_0x481309(0xd0)),'tooltip':!0x0}),this[_0x481309(0xbe)][_0x481309(0xe3)](_0x481309(0xbc))['to'](this,_0x481309(0xba),_0x1f82f1=>!_0x1f82f1),this[_0x481309(0xbe)]['on'](_0x481309(0xce),()=>{const _0x209781=_0x481309;this[_0x209781(0xcf)](_0x209781(0xc5));});}[_0x1cedcf(0xd5)](){const _0x26363c=_0x1cedcf;this[_0x26363c(0xde)]=new _0x1a36ce(this[_0x26363c(0xb8)]),this[_0x26363c(0xde)][_0x26363c(0xcb)]({'icon':_0x5ea8ec,'label':_0x3a8fc9(this[_0x26363c(0xb8)],_0x26363c(0xe2)),'class':_0x26363c(0xb6),'tooltip':!0x0}),this[_0x26363c(0xde)][_0x26363c(0xe3)](_0x26363c(0xbc))['to'](this,_0x26363c(0xba),_0x5719c5=>!_0x5719c5);const _0x43dfdc=new _0x78d9ab();_0x43dfdc[_0x26363c(0xcb)]({'content':_0x4ef08f}),_0x43dfdc[_0x26363c(0xbf)]({'attributes':{'class':[_0x26363c(0xbd)]}}),this[_0x26363c(0xde)]['on'](_0x26363c(0xce),()=>{const _0x5391d1=_0x26363c;this[_0x5391d1(0xde)][_0x5391d1(0xc2)]=_0x5391d1(0xd7),setTimeout(()=>{const _0x17390e=_0x5391d1;this[_0x17390e(0xde)][_0x17390e(0xc2)]=_0x17390e(0xb6);},0x7d0);}),this[_0x26363c(0xde)][_0x26363c(0xd3)][_0x26363c(0xe0)](_0x43dfdc);}[_0x1cedcf(0xc1)](_0x2a2b40){const _0x320e7d=_0x1cedcf;this[_0x320e7d(0xd2)]=new _0x1a36ce(this[_0x320e7d(0xb8)]),this[_0x320e7d(0xd2)][_0x320e7d(0xcb)]({'icon':_0x4769d5,'label':_0x3a8fc9(this[_0x320e7d(0xb8)],_0x320e7d(0xc0)),'withText':_0x320e7d(0xda)==this[_0x320e7d(0xc6)][_0x320e7d(0xb3)],'tooltip':_0x320e7d(0xda)!=this[_0x320e7d(0xc6)][_0x320e7d(0xb3)],'isOn':_0x2a2b40}),this[_0x320e7d(0xd2)][_0x320e7d(0xe3)](_0x320e7d(0xbc))['to'](this,_0x320e7d(0xba),_0x34d5be=>!_0x34d5be),this[_0x320e7d(0xd2)]['on'](_0x320e7d(0xce),()=>{const _0x28075b=_0x320e7d,_0x47ce6b=!this[_0x28075b(0xd2)][_0x28075b(0xb4)];this[_0x28075b(0xd2)][_0x28075b(0xcb)]({'isOn':_0x47ce6b,'icon':_0x47ce6b?_0x4f322c:_0x4769d5}),this[_0x28075b(0xcf)](_0x28075b(0xdb),_0x47ce6b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1901b7=_0xc46f;function _0xc46f(_0x29fb97,_0x1cb91b){const _0x1cb1d8=_0x1cb1();return _0xc46f=function(_0xc46f2,_0x5e3d80){_0xc46f2=_0xc46f2-0x18a;let _0x279575=_0x1cb1d8[_0xc46f2];return _0x279575;},_0xc46f(_0x29fb97,_0x1cb91b);}(function(_0x1033ac,_0xb59b70){const _0x115ba8=_0xc46f,_0xae1a3c=_0x1033ac();while(!![]){try{const _0x6df2e1=-parseInt(_0x115ba8(0x1b5))/0x1+-parseInt(_0x115ba8(0x1a3))/0x2*(parseInt(_0x115ba8(0x1a8))/0x3)+parseInt(_0x115ba8(0x198))/0x4*(-parseInt(_0x115ba8(0x1a7))/0x5)+parseInt(_0x115ba8(0x18d))/0x6+-parseInt(_0x115ba8(0x18f))/0x7*(-parseInt(_0x115ba8(0x190))/0x8)+-parseInt(_0x115ba8(0x1b6))/0x9+parseInt(_0x115ba8(0x1ba))/0xa;if(_0x6df2e1===_0xb59b70)break;else _0xae1a3c['push'](_0xae1a3c['shift']());}catch(_0x3fd2af){_0xae1a3c['push'](_0xae1a3c['shift']());}}}(_0x1cb1,0x92fc2));function _0x1cb1(){const _0x56e85d=['index','addEventListener','isVisible','_updateContentPartsPromiseQueue','hasChanges','hasNonEmptyParts','setTemplate','ck-ai-suggestion__body','add','246kroakY','locale','updateContent','abort','2917025hYOSLZ','774IWaemt','some','pending','length','state','updatePartState','ck-ai-suggestion__body__content-parts','first','findIndex','empty-parts-warning','push','toggleHeader','from','723036WoKYhj','6996645Kgpvid','_cachedContentParts','div','updateContentParts','21279250EviAzC','filter','partDefinition','AI_SUGGESTION_EMPTY_PART_WARNING','set','enqueue','markAsDone','AI_SUGGESTION_NO_PARTS_WARNING','warning','forEach','_availableActions','_emptyPartsWarningView','_areActionsDisabled','setContent','1201398ihfkqr','partsCount','908768craaOG','24AYweYu','queueEmptyPromise','_showUnchangedParts','delegate','hasPendingParts','_children','createCollection','find','4wBMZCq','getPartView'];_0x1cb1=function(){return _0x56e85d;};return _0x1cb1();}import{View as _0x12ffda}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x17833f}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3d61a3}from'../../utils/eventnames.js';import{PromiseQueue as _0x57cd2d}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x2a9c59}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x245820}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x12ffda{[_0x1901b7(0x195)];[_0x1901b7(0x18b)];[_0x1901b7(0x192)];[_0x1901b7(0x19d)];[_0x1901b7(0x18a)];[_0x1901b7(0x1c4)];[_0x1901b7(0x1b7)]=[];constructor(_0xd7a913,_0x5eb324){const _0x229e75=_0x1901b7;super(_0xd7a913);const {areActionsDisabled:_0x3bde68,showUnchangedParts:_0x31bf87,availableActions:_0x213bfe}=_0x5eb324;this[_0x229e75(0x18b)]=_0x3bde68,this[_0x229e75(0x192)]=_0x31bf87,this[_0x229e75(0x1c4)]=_0x213bfe,this[_0x229e75(0x1be)](_0x229e75(0x194),!0x1),this[_0x229e75(0x195)]=this[_0x229e75(0x196)](),this[_0x229e75(0x19d)]=new _0x57cd2d(),this[_0x229e75(0x18a)]=new _0x2a9c59({'id':_0x229e75(0x1b1),'initialContent':_0x245820(_0xd7a913,_0x229e75(0x1bd)),'level':_0x229e75(0x1c2)}),this[_0x229e75(0x18a)][_0x229e75(0x19c)]=!0x1,this[_0x229e75(0x1a0)]({'tag':_0x229e75(0x1b8),'attributes':{'class':['ck',_0x229e75(0x1a1)]},'children':[{'tag':_0x229e75(0x1b8),'attributes':{'class':['ck',_0x229e75(0x1ae)]},'children':this[_0x229e75(0x195)]},this[_0x229e75(0x18a)]]});}get[_0x1901b7(0x18e)](){const _0x21a043=_0x1901b7;return this[_0x21a043(0x195)][_0x21a043(0x1ab)];}async[_0x1901b7(0x1b9)]({parts:_0x489745,renderingStrategy:_0x10120c,abortSignal:_0x10a0b0}){const _0x1ff672=_0x1901b7;this[_0x1ff672(0x195)][_0x1ff672(0x1ab)]?_0x489745[_0x1ff672(0x1c3)](_0x40fea9=>{const _0x382775=_0x1ff672,_0x46de80=this[_0x382775(0x1b7)][_0x382775(0x1b0)](_0x1c7cc8=>_0x1c7cc8[_0x382775(0x19a)]==_0x40fea9[_0x382775(0x19a)]);-0x1===_0x46de80?this[_0x382775(0x1b7)][_0x382775(0x1b2)](_0x40fea9):this[_0x382775(0x1b7)][_0x46de80]=_0x40fea9;}):this[_0x1ff672(0x1b7)]=_0x489745;for(const _0x2edddf of _0x489745[_0x1ff672(0x1bb)](_0xaa7b44=>_0xaa7b44[_0x1ff672(0x19e)]))this[_0x1ff672(0x19d)][_0x1ff672(0x1bf)](async _0x16d8e9=>{const _0x231eee=_0x1ff672;let _0x18b63b=this[_0x231eee(0x199)](_0x2edddf[_0x231eee(0x19a)]);_0x18b63b||(_0x18b63b=new _0x17833f(this[_0x231eee(0x1a4)],{'part':_0x2edddf,'uiIndex':this[_0x231eee(0x195)][_0x231eee(0x1ab)]+0x1,'areActionsDisabled':this[_0x231eee(0x18b)],'availableActions':this[_0x231eee(0x1c4)]}),_0x18b63b[_0x231eee(0x193)](..._0x3d61a3)['to'](this),this[_0x231eee(0x195)][_0x231eee(0x1a2)](_0x18b63b),this[_0x231eee(0x194)]=!0x0),0x2===this[_0x231eee(0x195)][_0x231eee(0x1ab)]&&this[_0x231eee(0x195)][_0x231eee(0x1af)][_0x231eee(0x1b3)](!0x0),_0x18b63b[_0x231eee(0x1b3)](this[_0x231eee(0x195)][_0x231eee(0x1ab)]>0x1),await _0x18b63b[_0x231eee(0x1a5)]({'part':_0x2edddf,'renderingStrategy':_0x10120c,'showUnchangedParts':this[_0x231eee(0x192)],'abortSignal':_0x16d8e9});});return _0x10a0b0?.[_0x1ff672(0x19b)](_0x1ff672(0x1a6),()=>{const _0x5a76c1=_0x1ff672;this[_0x5a76c1(0x19d)][_0x5a76c1(0x1a6)]();}),this[_0x1ff672(0x19d)][_0x1ff672(0x191)];}[_0x1901b7(0x1ad)](_0x32f55b,_0x4e8b40){const _0x24e06b=_0x1901b7,_0x114f61=this[_0x24e06b(0x199)](_0x32f55b);_0x114f61&&(_0x114f61[_0x24e06b(0x1ac)]=_0x4e8b40),this[_0x24e06b(0x194)]=_0x24e06b(0x1aa)==_0x4e8b40||Array[_0x24e06b(0x1b4)](this[_0x24e06b(0x195)])[_0x24e06b(0x1a9)](_0x449233=>_0x24e06b(0x1aa)==_0x449233[_0x24e06b(0x1ac)]);}[_0x1901b7(0x199)](_0x76ddde){const _0x38a597=_0x1901b7;return this[_0x38a597(0x195)][_0x38a597(0x197)](_0x3fbe75=>_0x3fbe75[_0x38a597(0x1bc)][_0x38a597(0x19a)]==_0x76ddde)??null;}[_0x1901b7(0x1c0)](){const _0xc3918=_0x1901b7;if(!this[_0xc3918(0x192)]){const _0x155db0=!this[_0xc3918(0x1b7)][_0xc3918(0x197)](({hasChanges:_0x1985b8})=>_0x1985b8),_0xe85edf=!!this[_0xc3918(0x1b7)][_0xc3918(0x197)](({hasChanges:_0x4a8924})=>!_0x4a8924);this[_0xc3918(0x18a)][_0xc3918(0x19c)]=0x0==this[_0xc3918(0x195)][_0xc3918(0x1ab)]||_0xe85edf,_0x155db0?this[_0xc3918(0x18a)][_0xc3918(0x18c)](_0x245820(this[_0xc3918(0x1a4)],_0xc3918(0x1c1))):this[_0xc3918(0x18a)][_0xc3918(0x18c)](_0x245820(this[_0xc3918(0x1a4)],_0xc3918(0x1bd)));}}get[_0x1901b7(0x19f)](){const _0x1bc94d=_0x1901b7;return!!this[_0x1bc94d(0x195)][_0x1bc94d(0x197)](_0x434fc5=>_0x434fc5[_0x1bc94d(0x1bc)][_0x1bc94d(0x19e)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4071f9=_0x4839;(function(_0x11386d,_0x214170){const _0x47c260=_0x4839,_0x2db73a=_0x11386d();while(!![]){try{const _0x521be1=-parseInt(_0x47c260(0x157))/0x1+parseInt(_0x47c260(0x148))/0x2+-parseInt(_0x47c260(0x131))/0x3*(-parseInt(_0x47c260(0x11a))/0x4)+parseInt(_0x47c260(0x166))/0x5*(parseInt(_0x47c260(0x15e))/0x6)+-parseInt(_0x47c260(0x14d))/0x7*(-parseInt(_0x47c260(0x152))/0x8)+-parseInt(_0x47c260(0x16a))/0x9*(parseInt(_0x47c260(0x12b))/0xa)+-parseInt(_0x47c260(0x153))/0xb*(parseInt(_0x47c260(0x12e))/0xc);if(_0x521be1===_0x214170)break;else _0x2db73a['push'](_0x2db73a['shift']());}catch(_0x26c58f){_0x2db73a['push'](_0x2db73a['shift']());}}}(_0x4862,0x68a57));import{IconWeb as _0xb5a263}from'@ckeditor/ckeditor5-icons';import{View as _0x3498cc,ButtonView as _0x219da6,IconView as _0x42f31c}from'ckeditor5/src/ui.js';function _0x4862(){const _0x22c3fa=['headerView','remove','ck-ai-web-sources','updateContent','showChangesToggleView','ck-ai-suggestion__error-text','extendTemplate','createCollection','_blank','removeNavigationItem','ck-rounded-corners','ck-hidden','1165122YXpFDu','children','isOn','_createErrorView','clearLoading','469DKAsyB','open','ck-ai-web-sources__header','toggleShowChanges','ck\x20ck-ai-web-source','22640hoizoD','145387xVWOZC','updateContentParts','isLoaderVisible','bodyView','743499XGMbbB','title','clearErrorState','ck-ai-web-source__image','updateSources','ck-ai-suggestion__loader','markAsDone','6TAnrjJ','bindTemplate','isVisible','querySelector','set','small','addNavigationItem','AI_CHAT_IS_WRITING','2919690VSLAON','content','favicon','showLoader','801SCbmjt','element','setTemplate','isShowChangesToggleVisible','errorView','map','isErrorVisible','setErrorState','areChangesVisible','div','4GMfvsr','icon','url','ck-ai-suggestion__loader-text','ck-ai-suggestion__error','isEnabled','hasNonEmptyParts','AI_CHAT_GENERIC_ERROR','loaderView','_createLoaderView','AI_CHAT_SOURCES_HEADER','bind','ck-ai-suggestion__container','img','add','fire','hideError','36430srLSnZ','miniToolbarView','isLoading','132FuOqZB','setLoading','delegate','856905sDmola','hideLoader','textContent','addMany','.ck-ai-suggestion__error-text','sourcesView','showError','toggleSuggestionDisplayMode','items','locale','span'];_0x4862=function(){return _0x22c3fa;};return _0x4862();}import{AIMiniToolbarView as _0x9cbb60}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x547703}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5b4f26}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x587088}from'../../utils/eventnames.js';import{AISpinnerView as _0x24088d}from'../aispinner.js';import{getTranslation as _0x435a2f}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x3498cc{[_0x4071f9(0x156)];[_0x4071f9(0x12c)];[_0x4071f9(0x149)];[_0x4071f9(0x13c)];[_0x4071f9(0x122)];[_0x4071f9(0x16e)];[_0x4071f9(0x136)];constructor(_0xbd9c11,_0x2f120b){const _0x185f0c=_0x4071f9;super(_0xbd9c11);const {showDiff:_0x301573,areActionsDisabled:_0x176bf8,miniToolbarConfig:_0x40ee7b,hideHeader:_0x479d9b,showLoader:_0x169749,showUnchangedParts:_0x2701e8,availableActions:_0x188740}=_0x2f120b;this[_0x185f0c(0x162)](_0x185f0c(0x118),!0x1),this[_0x185f0c(0x162)](_0x185f0c(0x155),!!_0x169749),this[_0x185f0c(0x162)](_0x185f0c(0x170),!0x1),this[_0x185f0c(0x162)](_0x185f0c(0x12d),!0x1),this[_0x185f0c(0x149)]=this[_0x185f0c(0x143)](),_0x479d9b||(this[_0x185f0c(0x13c)]=new _0x547703(_0xbd9c11,{'showDiff':_0x301573}),this[_0x185f0c(0x13c)]['on'](_0x185f0c(0x150),(_0x36b872,_0x45dcb8)=>{const _0x48580d=_0x185f0c;this[_0x48580d(0x118)]=_0x45dcb8[_0x48580d(0x14a)],this[_0x48580d(0x129)](_0x48580d(0x138),{'showDiff':_0x45dcb8[_0x48580d(0x14a)]});}),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x13c)])),this[_0x185f0c(0x156)]=new _0x5b4f26(_0xbd9c11,{'areActionsDisabled':_0x176bf8,'showUnchangedParts':!!_0x2701e8,'availableActions':_0x188740}),this[_0x185f0c(0x156)][_0x185f0c(0x130)](..._0x587088)['to'](this),this[_0x185f0c(0x156)][_0x185f0c(0x142)]({'attributes':{'class':[this[_0x185f0c(0x15f)]['if'](_0x185f0c(0x155),_0x185f0c(0x147)),this[_0x185f0c(0x15f)]['if'](_0x185f0c(0x170),_0x185f0c(0x147))]}}),this[_0x185f0c(0x12c)]=new _0x9cbb60(_0xbd9c11,_0x40ee7b,_0x301573),this[_0x185f0c(0x12c)][_0x185f0c(0x130)](..._0x587088)['to'](this),this[_0x185f0c(0x12c)]['on'](_0x185f0c(0x150),(_0x1dfe92,_0x49258e)=>{const _0x29f310=_0x185f0c;this[_0x29f310(0x118)]=_0x49258e,this[_0x29f310(0x129)](_0x29f310(0x138),{'showDiff':_0x49258e});}),this[_0x185f0c(0x12c)][_0x185f0c(0x125)](_0x185f0c(0x12d))['to'](this),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x156)]),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x12c)]),this[_0x185f0c(0x136)]=new AIWebSourcesView(this[_0x185f0c(0x13a)]),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x136)]),_0x169749&&(this[_0x185f0c(0x122)]=this[_0x185f0c(0x123)](),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x122)])),this[_0x185f0c(0x16e)]=this[_0x185f0c(0x14b)](),this[_0x185f0c(0x149)][_0x185f0c(0x128)](this[_0x185f0c(0x16e)]),this[_0x185f0c(0x16c)]({'tag':_0x185f0c(0x119),'attributes':{'class':['ck',_0x185f0c(0x126),_0x185f0c(0x146)]},'children':this[_0x185f0c(0x149)]});}async[_0x4071f9(0x13f)](_0x5c981f){const _0x36bbda=_0x4071f9;await this[_0x36bbda(0x156)][_0x36bbda(0x154)](_0x5c981f);}[_0x4071f9(0x15b)](_0x1e0e88){const _0x5a80c9=_0x4071f9;this[_0x5a80c9(0x136)][_0x5a80c9(0x149)][_0x5a80c9(0x134)](_0x1e0e88[_0x5a80c9(0x16f)](_0x29d9f7=>new AIWebSourceView(this[_0x5a80c9(0x13a)],_0x29d9f7))),this[_0x5a80c9(0x136)][_0x5a80c9(0x160)]=!0x0;}[_0x4071f9(0x169)](){const _0x2af136=_0x4071f9;this[_0x2af136(0x122)]&&(this[_0x2af136(0x155)]=!0x0);}[_0x4071f9(0x132)](){const _0x5cefeb=_0x4071f9;this[_0x5cefeb(0x122)]&&(this[_0x5cefeb(0x155)]=!0x1);}[_0x4071f9(0x137)](_0x17934a){const _0x2540ff=_0x4071f9;if(this[_0x2540ff(0x16e)]){const _0x407118=this[_0x2540ff(0x16e)][_0x2540ff(0x16b)]?.[_0x2540ff(0x161)](_0x2540ff(0x135));_0x407118&&(_0x407118[_0x2540ff(0x133)]=_0x17934a),this[_0x2540ff(0x170)]=!0x0;}}[_0x4071f9(0x12a)](){const _0x2aa42c=_0x4071f9;this[_0x2aa42c(0x16e)]&&(this[_0x2aa42c(0x170)]=!0x1);}[_0x4071f9(0x15d)](){const _0x2e4af5=_0x4071f9;this[_0x2e4af5(0x156)][_0x2e4af5(0x15d)](),this[_0x2e4af5(0x13c)]&&(this[_0x2e4af5(0x13c)][_0x2e4af5(0x16d)]=this[_0x2e4af5(0x156)][_0x2e4af5(0x120)]);}[_0x4071f9(0x12f)](){const _0x206251=_0x4071f9;this[_0x206251(0x12d)]=!0x0;}[_0x4071f9(0x14c)](){const _0x240375=_0x4071f9;this[_0x240375(0x12d)]=!0x1;}[_0x4071f9(0x171)](){const _0x57402c=_0x4071f9;this[_0x57402c(0x12c)]&&(this[_0x57402c(0x12c)][_0x57402c(0x12d)]=!0x0),this[_0x57402c(0x13c)]?.[_0x57402c(0x140)]&&(this[_0x57402c(0x13c)][_0x57402c(0x140)][_0x57402c(0x11f)]=!0x1);}[_0x4071f9(0x159)](){const _0x185948=_0x4071f9;this[_0x185948(0x12c)]&&(this[_0x185948(0x12c)][_0x185948(0x12d)]=!0x1),this[_0x185948(0x13c)]?.[_0x185948(0x140)]&&(this[_0x185948(0x13c)][_0x185948(0x140)][_0x185948(0x11f)]=!0x0);}[_0x4071f9(0x164)](_0x5e12c9){const _0x901d04=_0x4071f9;this[_0x901d04(0x12c)][_0x901d04(0x139)][_0x901d04(0x128)](_0x5e12c9);}[_0x4071f9(0x145)](_0x11142f){const _0x4feb8f=_0x4071f9;this[_0x4feb8f(0x12c)][_0x4feb8f(0x139)][_0x4feb8f(0x13d)](_0x11142f);}[_0x4071f9(0x123)](){const _0x21bd12=_0x4071f9,_0x3310b8=new _0x3498cc(this[_0x21bd12(0x13a)]),_0x385bcb=new _0x24088d(_0x21bd12(0x163));_0x385bcb[_0x21bd12(0x160)]=!0x0;const _0x593f50=new _0x3498cc(this[_0x21bd12(0x13a)]);return _0x593f50[_0x21bd12(0x16c)]({'tag':_0x21bd12(0x13b),'attributes':{'class':['ck',_0x21bd12(0x11d)]},'children':[_0x435a2f(this[_0x21bd12(0x13a)],_0x21bd12(0x165))]}),_0x3310b8[_0x21bd12(0x16c)]({'tag':_0x21bd12(0x119),'attributes':{'class':['ck',_0x21bd12(0x15c),this[_0x21bd12(0x15f)]['if'](_0x21bd12(0x155),_0x21bd12(0x147),_0x1d4652=>!_0x1d4652)]},'children':[_0x385bcb,_0x593f50]}),_0x3310b8;}[_0x4071f9(0x14b)](){const _0x4eee88=_0x4071f9,_0x1ff441=new _0x3498cc(this[_0x4eee88(0x13a)]),_0x2f1c86=new _0x3498cc(this[_0x4eee88(0x13a)]);return _0x2f1c86[_0x4eee88(0x16c)]({'tag':_0x4eee88(0x13b),'attributes':{'class':['ck',_0x4eee88(0x141)]},'children':[_0x435a2f(this[_0x4eee88(0x13a)],_0x4eee88(0x121))]}),_0x1ff441[_0x4eee88(0x16c)]({'tag':_0x4eee88(0x119),'attributes':{'class':['ck',_0x4eee88(0x11e),this[_0x4eee88(0x15f)]['if'](_0x4eee88(0x170),_0x4eee88(0x147),_0x174ae6=>!_0x174ae6)]},'children':[_0x2f1c86]}),_0x1ff441;}}function _0x4839(_0x5e973a,_0x1b63c7){const _0x486206=_0x4862();return _0x4839=function(_0x4839e7,_0x426cb6){_0x4839e7=_0x4839e7-0x118;let _0x244ca0=_0x486206[_0x4839e7];return _0x244ca0;},_0x4839(_0x5e973a,_0x1b63c7);}export class AIWebSourcesView extends _0x3498cc{[_0x4071f9(0x149)];constructor(_0x43938c){const _0x353087=_0x4071f9;super(_0x43938c),this[_0x353087(0x149)]=this[_0x353087(0x143)](),this[_0x353087(0x162)](_0x353087(0x160),!0x1),this[_0x353087(0x16c)]({'tag':_0x353087(0x119),'attributes':{'class':['ck',_0x353087(0x13e),this[_0x353087(0x15f)]['if'](_0x353087(0x160),_0x353087(0x147),_0x59239e=>!_0x59239e)]},'children':this[_0x353087(0x149)]});const _0xf67208=new _0x3498cc(this[_0x353087(0x13a)]),_0x324516=new _0x42f31c();_0x324516[_0x353087(0x167)]=_0xb5a263,_0xf67208[_0x353087(0x16c)]({'tag':_0x353087(0x119),'attributes':{'class':['ck',_0x353087(0x14f)]},'children':[_0x324516,{'tag':_0x353087(0x13b),'children':[{'text':_0x435a2f(this[_0x353087(0x13a)],_0x353087(0x124))}]}]}),this[_0x353087(0x149)][_0x353087(0x128)](_0xf67208);}}export class AIWebSourceView extends _0x219da6{constructor(_0x3b5d43,_0x18c5a9){const _0x2b515b=_0x4071f9;super(_0x3b5d43),this[_0x2b515b(0x162)]({'label':_0x18c5a9[_0x2b515b(0x158)],'tooltip':_0x18c5a9[_0x2b515b(0x158)],'class':[_0x2b515b(0x151)],'withText':!0x0});const _0x54094b=this[_0x2b515b(0x15f)];if(this[_0x2b515b(0x142)]({'on':{'click':_0x54094b['to'](()=>{const _0x131700=_0x2b515b;window[_0x131700(0x14e)](_0x18c5a9[_0x131700(0x11c)],_0x131700(0x144));})}}),_0x18c5a9[_0x2b515b(0x168)]){const _0x256350=new _0x3498cc(_0x3b5d43);_0x256350[_0x2b515b(0x16c)]({'tag':_0x2b515b(0x127),'attributes':{'src':_0x18c5a9[_0x2b515b(0x168)]||_0xb5a263,'alt':_0x18c5a9[_0x2b515b(0x158)],'class':[_0x2b515b(0x15a)]}}),this[_0x2b515b(0x149)][_0x2b515b(0x128)](_0x256350);}else this[_0x2b515b(0x162)](_0x2b515b(0x11b),_0xb5a263);}}
|
|
23
|
+
const _0x46f562=_0x1350;(function(_0x3713f5,_0xde0409){const _0x484a5b=_0x1350,_0x1429ac=_0x3713f5();while(!![]){try{const _0x1d1f84=parseInt(_0x484a5b(0xc5))/0x1*(-parseInt(_0x484a5b(0xaf))/0x2)+parseInt(_0x484a5b(0xf7))/0x3*(-parseInt(_0x484a5b(0xb8))/0x4)+parseInt(_0x484a5b(0xe0))/0x5+parseInt(_0x484a5b(0xc4))/0x6*(-parseInt(_0x484a5b(0xdf))/0x7)+parseInt(_0x484a5b(0xd9))/0x8+parseInt(_0x484a5b(0xdb))/0x9+-parseInt(_0x484a5b(0xcb))/0xa;if(_0x1d1f84===_0xde0409)break;else _0x1429ac['push'](_0x1429ac['shift']());}catch(_0x414990){_0x1429ac['push'](_0x1429ac['shift']());}}}(_0x518f,0xbeaeb));import{IconWeb as _0x2504ae}from'@ckeditor/ckeditor5-icons';import{View as _0x361c0a,ButtonView as _0x34b59f,IconView as _0x4be8ed}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x1226ca}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x16062b}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x529352}from'./aisuggestionbodyview.js';function _0x518f(){const _0x49c5f5=['setTemplate','toggleSuggestionDisplayMode','errorView','img','span','set','title','isLoading','isVisible','textContent','hasNonEmptyParts','38974wxbSvv','_createLoaderView','isErrorVisible','addNavigationItem','hideLoader','open','createCollection','fire','bind','8xhniub','ck-ai-suggestion__error-text','isEnabled','icon','remove','querySelector','removeNavigationItem','clearErrorState','isShowChangesToggleVisible','toggleShowChanges','addMany','ck-ai-web-source__image','906MQBgbB','55UtrLZp','showLoader','ck-ai-suggestion__loader','ck-ai-suggestion__error','updateContent','showChangesToggleView','16259910jTqIRN','hideError','small','ck-ai-web-sources__header','element','ck\x20ck-ai-web-source','div','ck-ai-suggestion__loader-text','loaderView','url','clearLoading','favicon','isLoaderVisible','setErrorState','9787808gIoBRo','ck-ai-web-sources','11553507PwUtPH','ck-rounded-corners','children','bodyView','14833ALfLMk','6692785wNetld','content','updateContentParts','map','_blank','delegate','_createErrorView','AI_CHAT_SOURCES_HEADER','miniToolbarView','headerView','AI_CHAT_IS_WRITING','bindTemplate','AI_CHAT_GENERIC_ERROR','add','extendTemplate','markAsDone','ck-ai-suggestion__container','setLoading','updateSources','showError','items','.ck-ai-suggestion__error-text','locale','70464umxLcL','isOn','areChangesVisible','ck-hidden','sourcesView'];_0x518f=function(){return _0x49c5f5;};return _0x518f();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4802fa}from'../../utils/eventnames.js';import{AISpinnerView as _0x1807fe}from'../aispinner.js';function _0x1350(_0x5d4087,_0x401e21){const _0x518f66=_0x518f();return _0x1350=function(_0x135027,_0xdc692){_0x135027=_0x135027-0xa5;let _0x4e5f8a=_0x518f66[_0x135027];return _0x4e5f8a;},_0x1350(_0x5d4087,_0x401e21);}import{getTranslation as _0x42a13e}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x361c0a{[_0x46f562(0xde)];[_0x46f562(0xe8)];[_0x46f562(0xdd)];[_0x46f562(0xe9)];[_0x46f562(0xd3)];[_0x46f562(0xa6)];[_0x46f562(0xfb)];constructor(_0x5ed5d3,_0x47176e){const _0x3f12f1=_0x46f562;super(_0x5ed5d3);const {showDiff:_0x5cf953,areActionsDisabled:_0xce51a8,miniToolbarConfig:_0x537063,hideHeader:_0x4fd7f0,showLoader:_0x40900b,showUnchangedParts:_0x5ca830,availableActions:_0x534ba4}=_0x47176e;this[_0x3f12f1(0xa9)](_0x3f12f1(0xf9),!0x1),this[_0x3f12f1(0xa9)](_0x3f12f1(0xd7),!!_0x40900b),this[_0x3f12f1(0xa9)](_0x3f12f1(0xb1),!0x1),this[_0x3f12f1(0xa9)](_0x3f12f1(0xab),!0x1),this[_0x3f12f1(0xdd)]=this[_0x3f12f1(0xb5)](),_0x4fd7f0||(this[_0x3f12f1(0xe9)]=new _0x16062b(_0x5ed5d3,{'showDiff':_0x5cf953}),this[_0x3f12f1(0xe9)]['on'](_0x3f12f1(0xc1),(_0xf9eb03,_0x1beea5)=>{const _0x47ce3f=_0x3f12f1;this[_0x47ce3f(0xf9)]=_0x1beea5[_0x47ce3f(0xf8)],this[_0x47ce3f(0xb6)](_0x47ce3f(0xa5),{'showDiff':_0x1beea5[_0x47ce3f(0xf8)]});}),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xe9)])),this[_0x3f12f1(0xde)]=new _0x529352(_0x5ed5d3,{'areActionsDisabled':_0xce51a8,'showUnchangedParts':!!_0x5ca830,'availableActions':_0x534ba4}),this[_0x3f12f1(0xde)][_0x3f12f1(0xe5)](..._0x4802fa)['to'](this),this[_0x3f12f1(0xde)][_0x3f12f1(0xee)]({'attributes':{'class':[this[_0x3f12f1(0xeb)]['if'](_0x3f12f1(0xd7),_0x3f12f1(0xfa)),this[_0x3f12f1(0xeb)]['if'](_0x3f12f1(0xb1),_0x3f12f1(0xfa))]}}),this[_0x3f12f1(0xe8)]=new _0x1226ca(_0x5ed5d3,_0x537063,_0x5cf953),this[_0x3f12f1(0xe8)][_0x3f12f1(0xe5)](..._0x4802fa)['to'](this),this[_0x3f12f1(0xe8)]['on'](_0x3f12f1(0xc1),(_0x510d58,_0xb4024b)=>{const _0x2f3b1b=_0x3f12f1;this[_0x2f3b1b(0xf9)]=_0xb4024b,this[_0x2f3b1b(0xb6)](_0x2f3b1b(0xa5),{'showDiff':_0xb4024b});}),this[_0x3f12f1(0xe8)][_0x3f12f1(0xb7)](_0x3f12f1(0xab))['to'](this),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xde)]),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xe8)]),this[_0x3f12f1(0xfb)]=new AIWebSourcesView(this[_0x3f12f1(0xf6)]),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xfb)]),_0x40900b&&(this[_0x3f12f1(0xd3)]=this[_0x3f12f1(0xb0)](),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xd3)])),this[_0x3f12f1(0xa6)]=this[_0x3f12f1(0xe6)](),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xa6)]),this[_0x3f12f1(0xfc)]({'tag':_0x3f12f1(0xd1),'attributes':{'class':['ck',_0x3f12f1(0xf0),_0x3f12f1(0xdc)]},'children':this[_0x3f12f1(0xdd)]});}async[_0x46f562(0xc9)](_0x4cc995){const _0x36a633=_0x46f562;await this[_0x36a633(0xde)][_0x36a633(0xe2)](_0x4cc995);}[_0x46f562(0xf2)](_0x1949b5){const _0x3f4488=_0x46f562;this[_0x3f4488(0xfb)][_0x3f4488(0xdd)][_0x3f4488(0xc2)](_0x1949b5[_0x3f4488(0xe3)](_0x28323b=>new AIWebSourceView(this[_0x3f4488(0xf6)],_0x28323b))),this[_0x3f4488(0xfb)][_0x3f4488(0xac)]=!0x0;}[_0x46f562(0xc6)](){const _0x5482d5=_0x46f562;this[_0x5482d5(0xd3)]&&(this[_0x5482d5(0xd7)]=!0x0);}[_0x46f562(0xb3)](){const _0x2dc164=_0x46f562;this[_0x2dc164(0xd3)]&&(this[_0x2dc164(0xd7)]=!0x1);}[_0x46f562(0xf3)](_0x557cfc){const _0x302d3f=_0x46f562;if(this[_0x302d3f(0xa6)]){const _0x591c47=this[_0x302d3f(0xa6)][_0x302d3f(0xcf)]?.[_0x302d3f(0xbd)](_0x302d3f(0xf5));_0x591c47&&(_0x591c47[_0x302d3f(0xad)]=_0x557cfc),this[_0x302d3f(0xb1)]=!0x0;}}[_0x46f562(0xcc)](){const _0x319c48=_0x46f562;this[_0x319c48(0xa6)]&&(this[_0x319c48(0xb1)]=!0x1);}[_0x46f562(0xef)](){const _0x3723c7=_0x46f562;this[_0x3723c7(0xde)][_0x3723c7(0xef)](),this[_0x3723c7(0xe9)]&&(this[_0x3723c7(0xe9)][_0x3723c7(0xc0)]=this[_0x3723c7(0xde)][_0x3723c7(0xae)]);}[_0x46f562(0xf1)](){const _0x5cc767=_0x46f562;this[_0x5cc767(0xab)]=!0x0;}[_0x46f562(0xd5)](){const _0x431fc4=_0x46f562;this[_0x431fc4(0xab)]=!0x1;}[_0x46f562(0xd8)](){const _0x2d8acf=_0x46f562;this[_0x2d8acf(0xe8)]&&(this[_0x2d8acf(0xe8)][_0x2d8acf(0xab)]=!0x0),this[_0x2d8acf(0xe9)]?.[_0x2d8acf(0xca)]&&(this[_0x2d8acf(0xe9)][_0x2d8acf(0xca)][_0x2d8acf(0xba)]=!0x1);}[_0x46f562(0xbf)](){const _0x4f2411=_0x46f562;this[_0x4f2411(0xe8)]&&(this[_0x4f2411(0xe8)][_0x4f2411(0xab)]=!0x1),this[_0x4f2411(0xe9)]?.[_0x4f2411(0xca)]&&(this[_0x4f2411(0xe9)][_0x4f2411(0xca)][_0x4f2411(0xba)]=!0x0);}[_0x46f562(0xb2)](_0x2729a7){const _0x3333fd=_0x46f562;this[_0x3333fd(0xe8)][_0x3333fd(0xf4)][_0x3333fd(0xed)](_0x2729a7);}[_0x46f562(0xbe)](_0x5ea1b9){const _0x2c10d1=_0x46f562;this[_0x2c10d1(0xe8)][_0x2c10d1(0xf4)][_0x2c10d1(0xbc)](_0x5ea1b9);}[_0x46f562(0xb0)](){const _0x4c877a=_0x46f562,_0x312b3d=new _0x361c0a(this[_0x4c877a(0xf6)]),_0x2630f9=new _0x1807fe(_0x4c877a(0xcd));_0x2630f9[_0x4c877a(0xac)]=!0x0;const _0x4a81df=new _0x361c0a(this[_0x4c877a(0xf6)]);return _0x4a81df[_0x4c877a(0xfc)]({'tag':_0x4c877a(0xa8),'attributes':{'class':['ck',_0x4c877a(0xd2)]},'children':[_0x42a13e(this[_0x4c877a(0xf6)],_0x4c877a(0xea))]}),_0x312b3d[_0x4c877a(0xfc)]({'tag':_0x4c877a(0xd1),'attributes':{'class':['ck',_0x4c877a(0xc7),this[_0x4c877a(0xeb)]['if'](_0x4c877a(0xd7),_0x4c877a(0xfa),_0x1628e9=>!_0x1628e9)]},'children':[_0x2630f9,_0x4a81df]}),_0x312b3d;}[_0x46f562(0xe6)](){const _0x372b7e=_0x46f562,_0x3c40bf=new _0x361c0a(this[_0x372b7e(0xf6)]),_0x8027a2=new _0x361c0a(this[_0x372b7e(0xf6)]);return _0x8027a2[_0x372b7e(0xfc)]({'tag':_0x372b7e(0xa8),'attributes':{'class':['ck',_0x372b7e(0xb9)]},'children':[_0x42a13e(this[_0x372b7e(0xf6)],_0x372b7e(0xec))]}),_0x3c40bf[_0x372b7e(0xfc)]({'tag':_0x372b7e(0xd1),'attributes':{'class':['ck',_0x372b7e(0xc8),this[_0x372b7e(0xeb)]['if'](_0x372b7e(0xb1),_0x372b7e(0xfa),_0x738744=>!_0x738744)]},'children':[_0x8027a2]}),_0x3c40bf;}}export class AIWebSourcesView extends _0x361c0a{[_0x46f562(0xdd)];constructor(_0x589669){const _0x34b320=_0x46f562;super(_0x589669),this[_0x34b320(0xdd)]=this[_0x34b320(0xb5)](),this[_0x34b320(0xa9)](_0x34b320(0xac),!0x1),this[_0x34b320(0xfc)]({'tag':_0x34b320(0xd1),'attributes':{'class':['ck',_0x34b320(0xda),this[_0x34b320(0xeb)]['if'](_0x34b320(0xac),_0x34b320(0xfa),_0x3ca816=>!_0x3ca816)]},'children':this[_0x34b320(0xdd)]});const _0x3a9a95=new _0x361c0a(this[_0x34b320(0xf6)]),_0x67aaaa=new _0x4be8ed();_0x67aaaa[_0x34b320(0xe1)]=_0x2504ae,_0x3a9a95[_0x34b320(0xfc)]({'tag':_0x34b320(0xd1),'attributes':{'class':['ck',_0x34b320(0xce)]},'children':[_0x67aaaa,{'tag':_0x34b320(0xa8),'children':[{'text':_0x42a13e(this[_0x34b320(0xf6)],_0x34b320(0xe7))}]}]}),this[_0x34b320(0xdd)][_0x34b320(0xed)](_0x3a9a95);}}export class AIWebSourceView extends _0x34b59f{constructor(_0x2ffa1e,_0x228bc1){const _0x513636=_0x46f562;super(_0x2ffa1e),this[_0x513636(0xa9)]({'label':_0x228bc1[_0x513636(0xaa)],'tooltip':_0x228bc1[_0x513636(0xaa)],'class':[_0x513636(0xd0)],'withText':!0x0});const _0x2343f7=this[_0x513636(0xeb)];if(this[_0x513636(0xee)]({'on':{'click':_0x2343f7['to'](()=>{const _0x592b40=_0x513636;window[_0x592b40(0xb4)](_0x228bc1[_0x592b40(0xd4)],_0x592b40(0xe4));})}}),_0x228bc1[_0x513636(0xd6)]){const _0x33c23d=new _0x361c0a(_0x2ffa1e);_0x33c23d[_0x513636(0xfc)]({'tag':_0x513636(0xa7),'attributes':{'src':_0x228bc1[_0x513636(0xd6)]||_0x2504ae,'alt':_0x228bc1[_0x513636(0xaa)],'class':[_0x513636(0xc3)]}}),this[_0x513636(0xdd)][_0x513636(0xed)](_0x33c23d);}else this[_0x513636(0xa9)](_0x513636(0xbb),_0x2504ae);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x532247=_0x609e;(function(_0x1e918e,_0x1ea3bd){const _0x312e46=_0x609e,_0x15f12e=_0x1e918e();while(!![]){try{const _0x564233=-parseInt(_0x312e46(0xa5))/0x1*(parseInt(_0x312e46(0x85))/0x2)+-parseInt(_0x312e46(0xd2))/0x3*(parseInt(_0x312e46(0x83))/0x4)+parseInt(_0x312e46(0xae))/0x5+-parseInt(_0x312e46(0x9a))/0x6*(-parseInt(_0x312e46(0xb6))/0x7)+-parseInt(_0x312e46(0xcc))/0x8+-parseInt(_0x312e46(0x8d))/0x9*(parseInt(_0x312e46(0x8f))/0xa)+parseInt(_0x312e46(0x91))/0xb;if(_0x564233===_0x1ea3bd)break;else _0x15f12e['push'](_0x15f12e['shift']());}catch(_0x39e7f4){_0x15f12e['push'](_0x15f12e['shift']());}}}(_0x5d95,0x1c234));import{View as _0x16e8a3,IconView as _0x14bdc4,ToolbarView as _0xabb058,ButtonView as _0x152df8}from'ckeditor5/src/ui.js';import{IconAddComment as _0x292784,IconDocumentWithLoupe as _0x10b5cf,IconDocumentWithCheckmark as _0x42a932,IconDocumentWithCross as _0x104d55,IconRemove as _0x599cee,IconThreeStars as _0x371835}from'ckeditor5/src/icons.js';function _0x609e(_0x3aba58,_0x20e0dd){const _0x5d95d9=_0x5d95();return _0x609e=function(_0x609eb8,_0x315ccb){_0x609eb8=_0x609eb8-0x81;let _0x15b15f=_0x5d95d9[_0x609eb8];return _0x15b15f;},_0x609e(_0x3aba58,_0x20e0dd);}function _0x5d95(){const _0x59faeb=['updateContent','ck-ai-suggestion__body__content-part__content','283508AqilHd','ck-ai-suggestion__body__content-part_active','42740pvmvIb','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','_iconStateRejected','rejected','state','AI_SUGGESTION_CONTENT_PART_REJECTED','createCollection','ck-ai-suggestion__body__content-part__icon-title','6867eSrmlP','setTemplate','1010vzcGdu','stream','1673837EGmjsG','toString','streaming','AI_SUGGESTION_CONTENT_PART_DELETE','_iconStateOutdated','children','ck-ai-suggestion__body__content-part_','accepted','animation:\x20ck-html-streamer-fade-in\x20.5s','1578EnndRq','pending','remove','innerHTML','AI_SUGGESTION_CONTENT_PART_TITLE','ck-hidden','includes','insertSuggestion','fire','rejectSuggestion','change:state','5QtescS','extendTemplate','headerView','ck-reset_all-excluded','ck-ai-suggestion__body__content-part','div','outdated','showChangeInText','isVisible','867135svILxE','hasChanges','push','element','ck-ai-suggestion__body__content-part__icon-accepted','_iconStateAccepted','_toolbarView','isEnabled','4501FyqxTF','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','execute','htmlStreamer','AI_SUGGESTION_CONTENT_PART_OUTDATED','toggleHeader','contentView','ck-content','delegate','bind','ck-ai-suggestion__body__content-part__icon-outdated','mouseLeaveSuggestion','content','items','mouseOverSuggestion','span','ck-ai-suggestion__body__content-part__title','ck-ai-suggestion__body__content-part__icon-rejected','partDefinition','bindTemplate','index','set','997288feotQP','add','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','ck-ai-suggestion__body__content-part__title__label','has','addMany','3grquJe'];_0x5d95=function(){return _0x59faeb;};return _0x5d95();}import{HTMLStreamer as _0x14229e}from'../../utils/htmlstreamer.js';import{getTranslation as _0x44310e}from'../../utils/common-translations.js';import{serialize as _0x465646}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x35e375}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x16e8a3{[_0x532247(0xb9)];[_0x532247(0x96)];[_0x532247(0xa7)];[_0x532247(0xbc)];constructor(_0x50fc1e,{part:_0x3a7d98,uiIndex:_0x2b0ecb,areActionsDisabled:_0x333631,availableActions:_0x43bd31}){const _0x3c315f=_0x532247;super(_0x50fc1e),this[_0x3c315f(0xcb)](_0x3c315f(0xc8),_0x3a7d98),this[_0x3c315f(0xcb)](_0x3c315f(0x89),_0x3c315f(0x9b)),this[_0x3c315f(0xcb)](_0x3c315f(0xad),!0x1),this[_0x3c315f(0xbf)](_0x3c315f(0xb5))['to'](this,_0x3c315f(0x89),_0x52debf=>_0x3c315f(0x9b)==_0x52debf&&!_0x333631),this[_0x3c315f(0x96)]=this[_0x3c315f(0x8b)](),this[_0x3c315f(0xb9)]=new _0x14229e({'textNodeStyle':_0x3c315f(0x99),'delay':0x14}),this[_0x3c315f(0xa7)]=new Un(_0x50fc1e,{'part':_0x3a7d98,'uiIndex':_0x2b0ecb,'availableActions':_0x43bd31}),this[_0x3c315f(0xa7)][_0x3c315f(0xbf)](_0x3c315f(0xc8))['to'](this),this[_0x3c315f(0xa7)][_0x3c315f(0xbf)](_0x3c315f(0xb5))['to'](this),this[_0x3c315f(0xa7)][_0x3c315f(0xbf)](_0x3c315f(0x89))['to'](this),this[_0x3c315f(0xa7)][_0x3c315f(0xbe)](..._0x35e375)['to'](this);const _0x4f17b9=this[_0x3c315f(0xc9)];this[_0x3c315f(0xbc)]=new _0x16e8a3(),this[_0x3c315f(0xbc)][_0x3c315f(0x8e)]({'tag':_0x3c315f(0xaa),'attributes':{'class':['ck',_0x3c315f(0xbd),_0x3c315f(0xa8),_0x3c315f(0x82)]}}),this[_0x3c315f(0x96)][_0x3c315f(0xd1)]([this[_0x3c315f(0xbc)]]),this[_0x3c315f(0x8e)]({'tag':_0x3c315f(0xaa),'attributes':{'class':['ck',_0x3c315f(0xa9),_0x4f17b9['to'](_0x3c315f(0x89),_0x327a96=>_0x3c315f(0x97)+_0x327a96),_0x4f17b9['to'](_0x3c315f(0xb5),_0x8b61b4=>_0x8b61b4?_0x3c315f(0x84):void 0x0),_0x4f17b9['if'](_0x3c315f(0xad),_0x3c315f(0x9f),_0x5928ca=>!_0x5928ca)]},'children':this[_0x3c315f(0x96)],'on':{'mouseenter':_0x4f17b9['to'](()=>{const _0xfdb93b=_0x3c315f;this[_0xfdb93b(0xb5)]&&this[_0xfdb93b(0xa2)](_0xfdb93b(0xc4),{'index':_0x3a7d98[_0xfdb93b(0xca)]});}),'mouseleave':_0x4f17b9['to'](()=>{const _0x5828d4=_0x3c315f;this[_0x5828d4(0xb5)]&&this[_0x5828d4(0xa2)](_0x5828d4(0xc1),{'index':_0x3a7d98[_0x5828d4(0xca)]});})}});}async[_0x532247(0x81)]({part:_0x533779,renderingStrategy:_0x29930f,showUnchangedParts:_0x4c93bf=!0x1,abortSignal:_0x7545f1}){const _0x1d4b44=_0x532247;this[_0x1d4b44(0xc8)]=_0x533779,this[_0x1d4b44(0xad)]=this[_0x1d4b44(0xc8)][_0x1d4b44(0xaf)]||_0x4c93bf,this[_0x1d4b44(0xad)]&&(_0x1d4b44(0x93)===_0x29930f?await this[_0x1d4b44(0xb9)][_0x1d4b44(0x90)]({'document':this[_0x1d4b44(0xc8)][_0x1d4b44(0xc2)],'targetElement':this[_0x1d4b44(0xbc)][_0x1d4b44(0xb1)],'abortSignal':_0x7545f1}):this[_0x1d4b44(0xbc)][_0x1d4b44(0xb1)][_0x1d4b44(0x9d)]=_0x465646(this[_0x1d4b44(0xc8)][_0x1d4b44(0xc2)]));}[_0x532247(0xbb)](_0x21ac7c){const _0x452aa7=_0x532247;_0x21ac7c?this[_0x452aa7(0x96)][_0x452aa7(0xd0)](this[_0x452aa7(0xa7)])||this[_0x452aa7(0x96)][_0x452aa7(0xcd)](this[_0x452aa7(0xa7)],0x0):this[_0x452aa7(0x96)][_0x452aa7(0xd0)](this[_0x452aa7(0xa7)])&&this[_0x452aa7(0x96)][_0x452aa7(0x9c)](this[_0x452aa7(0xa7)]);}}class Un extends _0x16e8a3{[_0x532247(0x96)];[_0x532247(0xb4)];[_0x532247(0xb3)];[_0x532247(0x87)];[_0x532247(0x95)];constructor(_0x853343,{part:_0x39204a,uiIndex:_0x37de63,availableActions:_0x1fcd37}){const _0x4e47f9=_0x532247;super(_0x853343),this[_0x4e47f9(0xcb)](_0x4e47f9(0xc8),_0x39204a),this[_0x4e47f9(0xcb)](_0x4e47f9(0xb5),!0x0),this[_0x4e47f9(0xcb)](_0x4e47f9(0x89),_0x4e47f9(0x9b));const _0x1f2413=new _0x14bdc4();_0x1f2413[_0x4e47f9(0xc2)]=_0x371835,_0x1f2413[_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0x8c)]}});const _0x311d6d=[];if(_0x1fcd37[_0x4e47f9(0xa0)](_0x4e47f9(0xac))){const _0x2efe95=new _0x152df8(_0x853343);_0x2efe95[_0x4e47f9(0xcb)]({'label':_0x44310e(_0x853343,_0x4e47f9(0xce)),'tooltip':!0x0,'withText':!0x1,'icon':_0x10b5cf}),_0x2efe95[_0x4e47f9(0xbf)](_0x4e47f9(0xb5))['to'](this),_0x2efe95['on'](_0x4e47f9(0xb8),()=>{const _0x4f5b52=_0x4e47f9;this[_0x4f5b52(0xa2)](_0x4f5b52(0xac),{'index':_0x39204a[_0x4f5b52(0xca)]});}),_0x311d6d[_0x4e47f9(0xb0)](_0x2efe95);}if(_0x1fcd37[_0x4e47f9(0xa0)](_0x4e47f9(0xa1))){const _0x107056=new _0x152df8(_0x853343);_0x107056[_0x4e47f9(0xcb)]({'label':_0x44310e(_0x853343,_0x4e47f9(0xb7)),'tooltip':!0x0,'withText':!0x1,'icon':_0x292784}),_0x107056[_0x4e47f9(0xbf)](_0x4e47f9(0xb5))['to'](this),_0x107056['on'](_0x4e47f9(0xb8),()=>{const _0x23d225=_0x4e47f9;this[_0x23d225(0xa2)](_0x23d225(0xa1),{'index':_0x39204a[_0x23d225(0xca)]});}),_0x311d6d[_0x4e47f9(0xb0)](_0x107056);}const _0x1267bf=new _0x152df8(_0x853343);_0x1267bf[_0x4e47f9(0xcb)]({'label':_0x44310e(_0x853343,_0x4e47f9(0x94)),'tooltip':!0x0,'withText':!0x1,'icon':_0x599cee}),_0x1267bf[_0x4e47f9(0xbf)](_0x4e47f9(0xb5))['to'](this),_0x1267bf['on'](_0x4e47f9(0xb8),()=>{const _0x4e9649=_0x4e47f9;this[_0x4e9649(0xa2)](_0x4e9649(0xa3),{'index':_0x39204a[_0x4e9649(0xca)]});}),_0x311d6d[_0x4e47f9(0xb0)](_0x1267bf),this[_0x4e47f9(0xb4)]=new _0xabb058(_0x853343),this[_0x4e47f9(0xb4)][_0x4e47f9(0xc3)][_0x4e47f9(0xd1)](_0x311d6d),this[_0x4e47f9(0xb3)]=new _0x14bdc4(),this[_0x4e47f9(0xb3)][_0x4e47f9(0xc2)]=_0x42a932,this[_0x4e47f9(0xb3)][_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0xb2)],'data-cke-tooltip-text':_0x44310e(_0x853343,_0x4e47f9(0x86)),'data-cke-tooltip-position':'n'}}),this[_0x4e47f9(0x87)]=new _0x14bdc4(),this[_0x4e47f9(0x87)][_0x4e47f9(0xc2)]=_0x104d55,this[_0x4e47f9(0x87)][_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0xc7)],'data-cke-tooltip-text':_0x44310e(_0x853343,_0x4e47f9(0x8a)),'data-cke-tooltip-position':'n'}}),this[_0x4e47f9(0x95)]=new _0x14bdc4(),this[_0x4e47f9(0x95)][_0x4e47f9(0xc2)]=_0x104d55,this[_0x4e47f9(0x95)][_0x4e47f9(0xa6)]({'attributes':{'class':[_0x4e47f9(0xc0)],'data-cke-tooltip-text':_0x44310e(_0x853343,_0x4e47f9(0xba)),'data-cke-tooltip-position':'n'}});const _0x38bf82=new _0x16e8a3(_0x853343);_0x38bf82[_0x4e47f9(0x8e)]({'tag':_0x4e47f9(0xc5),'attributes':{'class':['ck',_0x4e47f9(0xcf)]},'children':[_0x44310e(_0x853343,_0x4e47f9(0x9e),_0x37de63[_0x4e47f9(0x92)]())]}),this[_0x4e47f9(0x96)]=this[_0x4e47f9(0x8b)](),this[_0x4e47f9(0x96)][_0x4e47f9(0xd1)]([_0x1f2413,_0x38bf82,this[_0x4e47f9(0xb4)]]),this[_0x4e47f9(0x8e)]({'tag':_0x4e47f9(0xaa),'attributes':{'class':['ck',_0x4e47f9(0xa8),_0x4e47f9(0xc6)]},'children':this[_0x4e47f9(0x96)]}),this['on'](_0x4e47f9(0xa4),(_0x196f38,_0x19754a,_0x2373ad,_0x34e6b8)=>{const _0x3031db=_0x4e47f9;switch(_0x34e6b8){case _0x3031db(0x9b):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0xb4)]);break;case _0x3031db(0x98):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0xb3)]);break;case _0x3031db(0x88):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0x87)]);break;case _0x3031db(0xab):this[_0x3031db(0x96)][_0x3031db(0x9c)](this[_0x3031db(0x95)]);}switch(_0x2373ad){case _0x3031db(0x9b):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0xb4)]);break;case _0x3031db(0x98):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0xb3)]);break;case _0x3031db(0x88):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0x87)]);break;case _0x3031db(0xab):this[_0x3031db(0x96)][_0x3031db(0xcd)](this[_0x3031db(0x95)]);}});}}
|
|
23
|
+
const _0x5d0056=_0xeae3;(function(_0x3f1165,_0x5c128d){const _0x2ac84f=_0xeae3,_0x4a69f2=_0x3f1165();while(!![]){try{const _0x5e3461=parseInt(_0x2ac84f(0x201))/0x1+parseInt(_0x2ac84f(0x1fb))/0x2+parseInt(_0x2ac84f(0x1d9))/0x3*(parseInt(_0x2ac84f(0x1e8))/0x4)+parseInt(_0x2ac84f(0x1d2))/0x5*(-parseInt(_0x2ac84f(0x1ed))/0x6)+-parseInt(_0x2ac84f(0x1ec))/0x7*(parseInt(_0x2ac84f(0x1d8))/0x8)+parseInt(_0x2ac84f(0x1e6))/0x9+parseInt(_0x2ac84f(0x1be))/0xa*(-parseInt(_0x2ac84f(0x1d0))/0xb);if(_0x5e3461===_0x5c128d)break;else _0x4a69f2['push'](_0x4a69f2['shift']());}catch(_0xe940e6){_0x4a69f2['push'](_0x4a69f2['shift']());}}}(_0xfbda,0x2f3be));function _0xfbda(){const _0x4100cb=['toString','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','AI_SUGGESTION_CONTENT_PART_OUTDATED','element','createCollection','div','ck-ai-suggestion__body__content-part__icon-title','ck-reset_all-excluded','stream','ck-hidden','ck-ai-suggestion__body__content-part__title__label','11GsYyXb','toggleHeader','5tqHsYj','has','_iconStateAccepted','set','addMany','animation:\x20ck-html-streamer-fade-in\x20.5s','14464ZgPRSH','356364VfwSWE','state','ck-ai-suggestion__body__content-part__title','push','ck-ai-suggestion__body__content-part_active','extendTemplate','index','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','bind','updateContent','streaming','items','isVisible','258552XgcYNw','ck-ai-suggestion__body__content-part__icon-accepted','8JQXKLQ','rejected','_toolbarView','ck-ai-suggestion__body__content-part__content','245FKGDzB','1125510BcDWVJ','isEnabled','execute','_iconStateOutdated','children','add','contentView','mouseLeaveSuggestion','setTemplate','ck-ai-suggestion__body__content-part__icon-rejected','outdated','accepted','insertSuggestion','ck-ai-suggestion__body__content-part_','94546rVHLOU','mouseOverSuggestion','AI_SUGGESTION_CONTENT_PART_REJECTED','hasChanges','htmlStreamer','_iconStateRejected','361240XNkISD','change:state','AI_SUGGESTION_CONTENT_PART_TITLE','partDefinition','delegate','content','fire','span','includes','ck-content','headerView','showChangeInText','ck-ai-suggestion__body__content-part__icon-outdated','innerHTML','AI_SUGGESTION_CONTENT_PART_DELETE','2304820itrUQa','remove','bindTemplate','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','rejectSuggestion','pending','ck-ai-suggestion__body__content-part'];_0xfbda=function(){return _0x4100cb;};return _0xfbda();}import{View as _0x3da864,IconView as _0x28d3cc,ToolbarView as _0x4cc149,ButtonView as _0x10bf02}from'ckeditor5/src/ui.js';import{IconAddComment as _0x4c393,IconDocumentWithLoupe as _0x372ed2,IconDocumentWithCheckmark as _0x888892,IconDocumentWithCross as _0x4e3ee1,IconRemove as _0x2b5fb4,IconThreeStars as _0x1b4519}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x3f7026}from'../../utils/htmlstreamer.js';import{getTranslation as _0xb1d47d}from'../../utils/common-translations.js';function _0xeae3(_0x27c204,_0x1d37c){const _0xfbda54=_0xfbda();return _0xeae3=function(_0xeae3cb,_0x4bf282){_0xeae3cb=_0xeae3cb-0x1bd;let _0x2becb6=_0xfbda54[_0xeae3cb];return _0x2becb6;},_0xeae3(_0x27c204,_0x1d37c);}import{serialize as _0x29b06d}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x497cd3}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x3da864{[_0x5d0056(0x1ff)];[_0x5d0056(0x1f1)];[_0x5d0056(0x20b)];[_0x5d0056(0x1f3)];constructor(_0x3617ef,{part:_0x310127,uiIndex:_0x331081,areActionsDisabled:_0x614d5d,availableActions:_0x104d0c}){const _0x11fe69=_0x5d0056;super(_0x3617ef),this[_0x11fe69(0x1d5)](_0x11fe69(0x204),_0x310127),this[_0x11fe69(0x1d5)](_0x11fe69(0x1da),_0x11fe69(0x1c3)),this[_0x11fe69(0x1d5)](_0x11fe69(0x1e5),!0x1),this[_0x11fe69(0x1e1)](_0x11fe69(0x1ee))['to'](this,_0x11fe69(0x1da),_0x47dca6=>_0x11fe69(0x1c3)==_0x47dca6&&!_0x614d5d),this[_0x11fe69(0x1f1)]=this[_0x11fe69(0x1c9)](),this[_0x11fe69(0x1ff)]=new _0x3f7026({'textNodeStyle':_0x11fe69(0x1d7),'delay':0x14}),this[_0x11fe69(0x20b)]=new Vn(_0x3617ef,{'part':_0x310127,'uiIndex':_0x331081,'availableActions':_0x104d0c}),this[_0x11fe69(0x20b)][_0x11fe69(0x1e1)](_0x11fe69(0x204))['to'](this),this[_0x11fe69(0x20b)][_0x11fe69(0x1e1)](_0x11fe69(0x1ee))['to'](this),this[_0x11fe69(0x20b)][_0x11fe69(0x1e1)](_0x11fe69(0x1da))['to'](this),this[_0x11fe69(0x20b)][_0x11fe69(0x205)](..._0x497cd3)['to'](this);const _0x446334=this[_0x11fe69(0x1c0)];this[_0x11fe69(0x1f3)]=new _0x3da864(),this[_0x11fe69(0x1f3)][_0x11fe69(0x1f5)]({'tag':_0x11fe69(0x1ca),'attributes':{'class':['ck',_0x11fe69(0x20a),_0x11fe69(0x1cc),_0x11fe69(0x1eb)]}}),this[_0x11fe69(0x1f1)][_0x11fe69(0x1d6)]([this[_0x11fe69(0x1f3)]]),this[_0x11fe69(0x1f5)]({'tag':_0x11fe69(0x1ca),'attributes':{'class':['ck',_0x11fe69(0x1c4),_0x446334['to'](_0x11fe69(0x1da),_0x47c82b=>_0x11fe69(0x1fa)+_0x47c82b),_0x446334['to'](_0x11fe69(0x1ee),_0x13579e=>_0x13579e?_0x11fe69(0x1dd):void 0x0),_0x446334['if'](_0x11fe69(0x1e5),_0x11fe69(0x1ce),_0x4a1f0c=>!_0x4a1f0c)]},'children':this[_0x11fe69(0x1f1)],'on':{'mouseenter':_0x446334['to'](()=>{const _0x197503=_0x11fe69;this[_0x197503(0x1ee)]&&this[_0x197503(0x207)](_0x197503(0x1fc),{'index':_0x310127[_0x197503(0x1df)]});}),'mouseleave':_0x446334['to'](()=>{const _0x5cec0f=_0x11fe69;this[_0x5cec0f(0x1ee)]&&this[_0x5cec0f(0x207)](_0x5cec0f(0x1f4),{'index':_0x310127[_0x5cec0f(0x1df)]});})}});}async[_0x5d0056(0x1e2)]({part:_0x285513,renderingStrategy:_0x42dc28,showUnchangedParts:_0x473ea7=!0x1,abortSignal:_0x236417}){const _0x4fc40f=_0x5d0056;this[_0x4fc40f(0x204)]=_0x285513,this[_0x4fc40f(0x1e5)]=this[_0x4fc40f(0x204)][_0x4fc40f(0x1fe)]||_0x473ea7,this[_0x4fc40f(0x1e5)]&&(_0x4fc40f(0x1e3)===_0x42dc28?await this[_0x4fc40f(0x1ff)][_0x4fc40f(0x1cd)]({'document':this[_0x4fc40f(0x204)][_0x4fc40f(0x206)],'targetElement':this[_0x4fc40f(0x1f3)][_0x4fc40f(0x1c8)],'abortSignal':_0x236417}):this[_0x4fc40f(0x1f3)][_0x4fc40f(0x1c8)][_0x4fc40f(0x20e)]=_0x29b06d(this[_0x4fc40f(0x204)][_0x4fc40f(0x206)]));}[_0x5d0056(0x1d1)](_0x362965){const _0x5a6035=_0x5d0056;_0x362965?this[_0x5a6035(0x1f1)][_0x5a6035(0x1d3)](this[_0x5a6035(0x20b)])||this[_0x5a6035(0x1f1)][_0x5a6035(0x1f2)](this[_0x5a6035(0x20b)],0x0):this[_0x5a6035(0x1f1)][_0x5a6035(0x1d3)](this[_0x5a6035(0x20b)])&&this[_0x5a6035(0x1f1)][_0x5a6035(0x1bf)](this[_0x5a6035(0x20b)]);}}class Vn extends _0x3da864{[_0x5d0056(0x1f1)];[_0x5d0056(0x1ea)];[_0x5d0056(0x1d4)];[_0x5d0056(0x200)];[_0x5d0056(0x1f0)];constructor(_0x1fc96a,{part:_0x220b22,uiIndex:_0x1d2a10,availableActions:_0x3b45ce}){const _0x219d05=_0x5d0056;super(_0x1fc96a),this[_0x219d05(0x1d5)](_0x219d05(0x204),_0x220b22),this[_0x219d05(0x1d5)](_0x219d05(0x1ee),!0x0),this[_0x219d05(0x1d5)](_0x219d05(0x1da),_0x219d05(0x1c3));const _0x193fbd=new _0x28d3cc();_0x193fbd[_0x219d05(0x206)]=_0x1b4519,_0x193fbd[_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x1cb)]}});const _0xe8cbab=[];if(_0x3b45ce[_0x219d05(0x209)](_0x219d05(0x20c))){const _0x13228f=new _0x10bf02(_0x1fc96a);_0x13228f[_0x219d05(0x1d5)]({'label':_0xb1d47d(_0x1fc96a,_0x219d05(0x1c1)),'tooltip':!0x0,'withText':!0x1,'icon':_0x372ed2}),_0x13228f[_0x219d05(0x1e1)](_0x219d05(0x1ee))['to'](this),_0x13228f['on'](_0x219d05(0x1ef),()=>{const _0x26bc6f=_0x219d05;this[_0x26bc6f(0x207)](_0x26bc6f(0x20c),{'index':_0x220b22[_0x26bc6f(0x1df)]});}),_0xe8cbab[_0x219d05(0x1dc)](_0x13228f);}if(_0x3b45ce[_0x219d05(0x209)](_0x219d05(0x1f9))){const _0x106682=new _0x10bf02(_0x1fc96a);_0x106682[_0x219d05(0x1d5)]({'label':_0xb1d47d(_0x1fc96a,_0x219d05(0x1c6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4c393}),_0x106682[_0x219d05(0x1e1)](_0x219d05(0x1ee))['to'](this),_0x106682['on'](_0x219d05(0x1ef),()=>{const _0x229064=_0x219d05;this[_0x229064(0x207)](_0x229064(0x1f9),{'index':_0x220b22[_0x229064(0x1df)]});}),_0xe8cbab[_0x219d05(0x1dc)](_0x106682);}const _0x47c453=new _0x10bf02(_0x1fc96a);_0x47c453[_0x219d05(0x1d5)]({'label':_0xb1d47d(_0x1fc96a,_0x219d05(0x1bd)),'tooltip':!0x0,'withText':!0x1,'icon':_0x2b5fb4}),_0x47c453[_0x219d05(0x1e1)](_0x219d05(0x1ee))['to'](this),_0x47c453['on'](_0x219d05(0x1ef),()=>{const _0x11d5f4=_0x219d05;this[_0x11d5f4(0x207)](_0x11d5f4(0x1c2),{'index':_0x220b22[_0x11d5f4(0x1df)]});}),_0xe8cbab[_0x219d05(0x1dc)](_0x47c453),this[_0x219d05(0x1ea)]=new _0x4cc149(_0x1fc96a),this[_0x219d05(0x1ea)][_0x219d05(0x1e4)][_0x219d05(0x1d6)](_0xe8cbab),this[_0x219d05(0x1d4)]=new _0x28d3cc(),this[_0x219d05(0x1d4)][_0x219d05(0x206)]=_0x888892,this[_0x219d05(0x1d4)][_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x1e7)],'data-cke-tooltip-text':_0xb1d47d(_0x1fc96a,_0x219d05(0x1e0)),'data-cke-tooltip-position':'n'}}),this[_0x219d05(0x200)]=new _0x28d3cc(),this[_0x219d05(0x200)][_0x219d05(0x206)]=_0x4e3ee1,this[_0x219d05(0x200)][_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x1f6)],'data-cke-tooltip-text':_0xb1d47d(_0x1fc96a,_0x219d05(0x1fd)),'data-cke-tooltip-position':'n'}}),this[_0x219d05(0x1f0)]=new _0x28d3cc(),this[_0x219d05(0x1f0)][_0x219d05(0x206)]=_0x4e3ee1,this[_0x219d05(0x1f0)][_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x20d)],'data-cke-tooltip-text':_0xb1d47d(_0x1fc96a,_0x219d05(0x1c7)),'data-cke-tooltip-position':'n'}});const _0x9fdbe2=new _0x3da864(_0x1fc96a);_0x9fdbe2[_0x219d05(0x1f5)]({'tag':_0x219d05(0x208),'attributes':{'class':['ck',_0x219d05(0x1cf)]},'children':[_0xb1d47d(_0x1fc96a,_0x219d05(0x203),_0x1d2a10[_0x219d05(0x1c5)]())]}),this[_0x219d05(0x1f1)]=this[_0x219d05(0x1c9)](),this[_0x219d05(0x1f1)][_0x219d05(0x1d6)]([_0x193fbd,_0x9fdbe2,this[_0x219d05(0x1ea)]]),this[_0x219d05(0x1f5)]({'tag':_0x219d05(0x1ca),'attributes':{'class':['ck',_0x219d05(0x1cc),_0x219d05(0x1db)]},'children':this[_0x219d05(0x1f1)]}),this['on'](_0x219d05(0x202),(_0x229489,_0x52564c,_0x4ec740,_0x53e6e6)=>{const _0x1ba2d4=_0x219d05;switch(_0x53e6e6){case _0x1ba2d4(0x1c3):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x1ea)]);break;case _0x1ba2d4(0x1f8):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x1d4)]);break;case _0x1ba2d4(0x1e9):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x200)]);break;case _0x1ba2d4(0x1f7):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x1f0)]);}switch(_0x4ec740){case _0x1ba2d4(0x1c3):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x1ea)]);break;case _0x1ba2d4(0x1f8):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x1d4)]);break;case _0x1ba2d4(0x1e9):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x200)]);break;case _0x1ba2d4(0x1f7):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x1f0)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a6212=_0x2288;(function(_0x268afe,_0xfaed09){const _0x1a2cef=_0x2288,_0xf95a71=_0x268afe();while(!![]){try{const _0x1e94dd=parseInt(_0x1a2cef(0x145))/0x1*(-parseInt(_0x1a2cef(0x154))/0x2)+-parseInt(_0x1a2cef(0x133))/0x3*(-parseInt(_0x1a2cef(0x135))/0x4)+parseInt(_0x1a2cef(0x155))/0x5*(parseInt(_0x1a2cef(0x13a))/0x6)+-parseInt(_0x1a2cef(0x14a))/0x7*(parseInt(_0x1a2cef(0x158))/0x8)+parseInt(_0x1a2cef(0x144))/0x9*(parseInt(_0x1a2cef(0x150))/0xa)+-parseInt(_0x1a2cef(0x14c))/0xb*(-parseInt(_0x1a2cef(0x134))/0xc)+parseInt(_0x1a2cef(0x139))/0xd*(-parseInt(_0x1a2cef(0x142))/0xe);if(_0x1e94dd===_0xfaed09)break;else _0xf95a71['push'](_0xf95a71['shift']());}catch(_0x34cf7e){_0xf95a71['push'](_0xf95a71['shift']());}}}(_0x39e3,0xe5fd0));import{getTranslation as _0x14fa9a}from'../../utils/common-translations.js';import{ButtonView as _0x444ca6,IconView as _0x2043ee,View as _0x50c11c}from'ckeditor5/src/ui.js';import{IconDocument as _0xba1952,IconShowChangesOff as _0x10f410,IconShowChangesOn as _0xe04c22}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x50c11c{[_0x3a6212(0x136)];constructor(_0x4c34dc,_0xc1c0a){const _0x451510=_0x3a6212;super(_0x4c34dc),this[_0x451510(0x157)](_0x451510(0x159),!0x0),this[_0x451510(0x136)]=new ShowChangesToggleView(_0x4c34dc),this[_0x451510(0x136)][_0x451510(0x157)]({'class':_0x451510(0x153),'label':_0x14fa9a(_0x4c34dc,_0x451510(0x140)),'withText':!0x0}),this[_0x451510(0x136)][_0x451510(0x143)]=_0xc1c0a[_0x451510(0x138)],this[_0x451510(0x136)][_0x451510(0x131)](_0x451510(0x152))['to'](this,_0x451510(0x159)),this[_0x451510(0x136)][_0x451510(0x131)](_0x451510(0x132))['to'](this[_0x451510(0x136)],_0x451510(0x143),_0x204328=>_0x204328?_0xe04c22:_0x10f410),this[_0x451510(0x136)]['on'](_0x451510(0x14f),()=>{const _0x58518e=_0x451510;this[_0x58518e(0x136)][_0x58518e(0x143)]=!this[_0x58518e(0x136)][_0x58518e(0x143)],this[_0x58518e(0x147)](_0x58518e(0x14e),{'isOn':this[_0x58518e(0x136)][_0x58518e(0x143)]});});const _0x4d5bd8=new _0x2043ee();_0x4d5bd8[_0x451510(0x146)]=_0xba1952,this[_0x451510(0x13e)]({'tag':_0x451510(0x137),'attributes':{'class':['ck',_0x451510(0x14d),!0x1===_0xc1c0a[_0x451510(0x141)]?_0x451510(0x13d):null][_0x451510(0x13c)](Boolean)},'children':[_0x4d5bd8,{'tag':_0x451510(0x148),'children':[_0x14fa9a(_0x4c34dc,_0x451510(0x14b))]},this[_0x451510(0x136)]]});}}function _0x39e3(){const _0x7a0007=['534NQtzLa','render','filter','ck-hidden','setTemplate','add','AI_SUGGESTION_BUTTON_SHOW_CHANGES','showHeader','1062404psCvZo','isOn','27198risduh','5vRCEZJ','content','fire','span','children','1179661eSmRrT','AI_SUGGESTION_HEADER_TITLE','20108572rRcumr','ck-ai-suggestion__header','toggleShowChanges','execute','4360lTlEsv','iconView','isVisible','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','622276uARPxL','60115kskbsM','remove','set','24EGqDKS','isShowChangesToggleVisible','bind','icon','1266KeiqDK','12HnVjjQ','17280FxBXBM','showChangesToggleView','div','showDiff','520kYATPK'];_0x39e3=function(){return _0x7a0007;};return _0x39e3();}function _0x2288(_0xd19053,_0x11ec39){const _0x39e3f1=_0x39e3();return _0x2288=function(_0x228862,_0x2ede28){_0x228862=_0x228862-0x131;let _0x55eed4=_0x39e3f1[_0x228862];return _0x55eed4;},_0x2288(_0xd19053,_0x11ec39);}export class ShowChangesToggleView extends _0x444ca6{[_0x3a6212(0x13b)](){const _0x4c6f20=_0x3a6212;super[_0x4c6f20(0x13b)](),this[_0x4c6f20(0x149)][_0x4c6f20(0x156)](this[_0x4c6f20(0x151)]),this[_0x4c6f20(0x149)][_0x4c6f20(0x13f)](this[_0x4c6f20(0x151)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b361d=_0x475b;function _0x475b(_0x4d8508,_0x3a1188){const _0x23a54c=_0x23a5();return _0x475b=function(_0x475b07,_0x2c4835){_0x475b07=_0x475b07-0xa4;let _0x2df870=_0x23a54c[_0x475b07];return _0x2df870;},_0x475b(_0x4d8508,_0x3a1188);}(function(_0x1d5801,_0x21b121){const _0xe5bf59=_0x475b,_0x6a32b3=_0x1d5801();while(!![]){try{const _0x1aff64=-parseInt(_0xe5bf59(0xbd))/0x1+-parseInt(_0xe5bf59(0xaa))/0x2*(parseInt(_0xe5bf59(0xab))/0x3)+-parseInt(_0xe5bf59(0xba))/0x4+-parseInt(_0xe5bf59(0xb0))/0x5*(parseInt(_0xe5bf59(0xb1))/0x6)+parseInt(_0xe5bf59(0xa4))/0x7+parseInt(_0xe5bf59(0xa9))/0x8*(parseInt(_0xe5bf59(0xa6))/0x9)+parseInt(_0xe5bf59(0xb3))/0xa;if(_0x1aff64===_0x21b121)break;else _0x6a32b3['push'](_0x6a32b3['shift']());}catch(_0x598144){_0x6a32b3['push'](_0x6a32b3['shift']());}}}(_0x23a5,0x85005));import{DocumentPosition as _0x1f9e2d}from'./documentposition.js';import{clone as _0x337466,getParents as _0x1f5037,Document as _0x512985,Text as _0x5f5cc4,isTag as _0x53ac45,isText as _0x5080cd,replaceElement as _0xc4241d,removeElement as _0x765504}from'./htmlparser.js';export class DocumentRange{[_0x1b361d(0xb5)];[_0x1b361d(0xb4)];constructor(_0x4afc76,_0x512cb8){const _0x427efe=_0x1b361d;this[_0x427efe(0xb5)]=_0x4afc76,this[_0x427efe(0xb4)]=_0x512cb8;}[_0x1b361d(0xac)](_0xa1b099){const _0x1f4b68=_0x1b361d;return this==_0xa1b099||this[_0x1f4b68(0xb5)][_0x1f4b68(0xac)](_0xa1b099[_0x1f4b68(0xb5)])&&this[_0x1f4b68(0xb4)][_0x1f4b68(0xac)](_0xa1b099[_0x1f4b68(0xb4)]);}[_0x1b361d(0xc2)](){const _0x51f6e8=_0x1b361d;return new DocumentRange(this[_0x51f6e8(0xb5)][_0x51f6e8(0xc2)](_0x51f6e8(0xb5)),this[_0x51f6e8(0xb4)][_0x51f6e8(0xc2)](_0x51f6e8(0xb4)));}[_0x1b361d(0xb8)](){const _0x3f6149=_0x1b361d,_0x224f45=_0x337466(this[_0x3f6149(0xb5)][_0x3f6149(0xbf)]),_0x588655=_0x1f9e2d[_0x3f6149(0xc4)](_0x224f45,this[_0x3f6149(0xb5)][_0x3f6149(0xb2)]),_0x1e996e=_0x1f9e2d[_0x3f6149(0xc4)](_0x224f45,this[_0x3f6149(0xb4)][_0x3f6149(0xb2)]);let _0x33eaeb,_0x4aec0c;if(_0x5080cd(_0x588655[_0x3f6149(0xc3)])){const _0x1e7b66=_0x588655[_0x3f6149(0xb2)][_0x588655[_0x3f6149(0xb2)][_0x3f6149(0xb6)]-0x1],_0x382eae=new _0x5f5cc4(_0x588655[_0x3f6149(0xc3)][_0x3f6149(0xbb)][_0x3f6149(0xbe)](_0x1e7b66));_0xc4241d(_0x588655[_0x3f6149(0xc3)],_0x382eae),_0x33eaeb=_0x382eae;}else _0x33eaeb=_0x588655[_0x3f6149(0xad)];if(_0x5080cd(_0x1e996e[_0x3f6149(0xc3)])){const _0x5d5368=_0x1e996e[_0x3f6149(0xb2)][_0x1e996e[_0x3f6149(0xb2)][_0x3f6149(0xb6)]-0x1],_0x22fa78=new _0x5f5cc4(_0x1e996e[_0x3f6149(0xc3)][_0x3f6149(0xbb)][_0x3f6149(0xbe)](0x0,_0x5d5368));_0xc4241d(_0x1e996e[_0x3f6149(0xc3)],_0x22fa78),_0x4aec0c=_0x22fa78;}else _0x4aec0c=_0x1e996e[_0x3f6149(0xaf)];if(!(_0x33eaeb&&_0x4aec0c&&_0x224f45[_0x3f6149(0xa8)]&&_0x224f45[_0x3f6149(0xb7)]))return new _0x512985([]);const _0x4be652=_0x1f5037(_0x33eaeb),_0x1c6d77=_0x1f5037(_0x4aec0c),_0x4f8078=[],_0x59a647=[];let _0x335469=_0x224f45[_0x3f6149(0xa8)];for(;_0x335469&&_0x335469!==_0x33eaeb;){let _0x4b6378;_0x4be652[_0x3f6149(0xbc)](_0x335469)||_0x4f8078[_0x3f6149(0xb9)](_0x335469),_0x4b6378=_0x53ac45(_0x335469)?_0x1f9e2d[_0x3f6149(0xa5)](_0x224f45,_0x335469,_0x3f6149(0xb5)):_0x1f9e2d[_0x3f6149(0xc0)](_0x224f45,_0x335469),_0x335469=_0x4b6378?_0x4b6378[_0x3f6149(0xad)]:null;}for(_0x335469=_0x224f45[_0x3f6149(0xb7)];_0x335469&&_0x335469!==_0x4aec0c;){let _0x272bc5;_0x1c6d77[_0x3f6149(0xbc)](_0x335469)||_0x59a647[_0x3f6149(0xb9)](_0x335469),_0x272bc5=_0x53ac45(_0x335469)?_0x1f9e2d[_0x3f6149(0xa5)](_0x224f45,_0x335469,_0x3f6149(0xb4)):_0x1f9e2d[_0x3f6149(0xc1)](_0x224f45,_0x335469),_0x335469=_0x272bc5?_0x272bc5[_0x3f6149(0xaf)]:null;}return _0x4f8078[_0x3f6149(0xae)](_0x3a400a=>{_0x765504(_0x3a400a);}),_0x59a647[_0x3f6149(0xa7)]()[_0x3f6149(0xae)](_0x5598c9=>{_0x765504(_0x5598c9);}),_0x224f45;}}function _0x23a5(){const _0x4405ee=['path','28376450AYrvMg','end','start','length','lastChild','getContent','push','4287908LJBIJH','data','includes','839366zpEKnK','slice','document','createAfter','createBefore','getNudgedToWordBoundary','parent','createFromPath','4298xXdBYY','createAt','9LvMCGI','reverse','firstChild','8248192cANxwe','72998DMiTXz','45hnCnAy','isEqual','nextNode','forEach','previousNode','2164205FTLAfv','12MrfSfB'];_0x23a5=function(){return _0x4405ee;};return _0x23a5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1b9098,_0x1d767b){var _0x471b64=_0x59d4,_0x28dceb=_0x1b9098();while(!![]){try{var _0x241fe6=-parseInt(_0x471b64(0x15c))/0x1+parseInt(_0x471b64(0x163))/0x2*(-parseInt(_0x471b64(0x166))/0x3)+parseInt(_0x471b64(0x16a))/0x4+parseInt(_0x471b64(0x168))/0x5*(-parseInt(_0x471b64(0x15b))/0x6)+parseInt(_0x471b64(0x165))/0x7*(parseInt(_0x471b64(0x164))/0x8)+-parseInt(_0x471b64(0x15f))/0x9+parseInt(_0x471b64(0x169))/0xa;if(_0x241fe6===_0x1d767b)break;else _0x28dceb['push'](_0x28dceb['shift']());}catch(_0xf6009f){_0x28dceb['push'](_0x28dceb['shift']());}}}(_0x2684,0x6cddb));function _0x2684(){var _0x4960c2=['29283rjcdSp','warn','35ydvpRP','14637470sWzsEC','57476UPUTpV','400134GzSWoe','620180LfKbkm','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.','ai-get-editor-from-context-no-editor','2215278qAEOJF','length','editors','get','98wVPiWQ','6233864ZPaTMZ','7QuhWQH'];_0x2684=function(){return _0x4960c2;};return _0x2684();}import{CKEditorError as _0x62c2c8}from'ckeditor5/src/utils.js';import{Editor as _0x4fa747}from'ckeditor5/src/core.js';function _0x59d4(_0x3fe9ac,_0x8033cd){var _0x268469=_0x2684();return _0x59d4=function(_0x59d4cf,_0x25f0d6){_0x59d4cf=_0x59d4cf-0x15b;var _0x5326e0=_0x268469[_0x59d4cf];return _0x5326e0;},_0x59d4(_0x3fe9ac,_0x8033cd);}export function getEditorFromContext(_0x2adf88){var _0x1072ff=_0x59d4;if(_0x2adf88 instanceof _0x4fa747)return _0x2adf88;if(_0x2adf88?.[_0x1072ff(0x161)]&&_0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x162)](0x0))return _0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x160)]>0x1&&console[_0x1072ff(0x167)](_0x1072ff(0x15d)),_0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x162)](0x0);throw new _0x62c2c8(_0x1072ff(0x15e));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5e5536,_0x2cdb02){const _0x2e82ed=_0x5a00,_0x485b85=_0x5e5536();while(!![]){try{const _0x3e5600=-parseInt(_0x2e82ed(0xc4))/0x1*(parseInt(_0x2e82ed(0xab))/0x2)+-parseInt(_0x2e82ed(0xc2))/0x3*(parseInt(_0x2e82ed(0xae))/0x4)+-parseInt(_0x2e82ed(0xa4))/0x5*(-parseInt(_0x2e82ed(0xac))/0x6)+-parseInt(_0x2e82ed(0xb9))/0x7*(parseInt(_0x2e82ed(0xc5))/0x8)+parseInt(_0x2e82ed(0xa5))/0x9+parseInt(_0x2e82ed(0xb8))/0xa+parseInt(_0x2e82ed(0xa6))/0xb;if(_0x3e5600===_0x2cdb02)break;else _0x485b85['push'](_0x485b85['shift']());}catch(_0x5a86a6){_0x485b85['push'](_0x485b85['shift']());}}}(_0x9672,0x93969));import{transformOperationSets as _0x40ca85}from'ckeditor5/src/engine.js';import{append as _0x44e37e,findByAttribute as _0x400902,prependChild as _0x3ca6f9,removeElement as _0x3e2a9d,serialize as _0x3fe645}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x347ed0,interaction:_0x5732e6,reply:_0x255f56,groups:_0x263006,transform:_0x3babea,documentCompare:_0x1adeba,documentCompareOptions:_0x10c057}){const _0x2eb8ba=_0x5a00,_0x56e700=_0x5732e6[_0x2eb8ba(0xb4)]();if(!_0x56e700)return[];const _0x133f54=_0x56e700[_0x2eb8ba(0xc1)],_0xd58f1a=_0x56e700[_0x2eb8ba(0xb3)],_0x14698b=_0x255f56[_0x2eb8ba(0x9f)][_0x2eb8ba(0xa7)](!0x0);for(const {changes:_0x59d594}of _0x263006){const _0x4ad929=_0x59d594[_0x2eb8ba(0xaf)](_0x45dba1=>_0x2eb8ba(0xb1)!=_0x45dba1[_0x2eb8ba(0xb7)])[_0x2eb8ba(0xa1)](_0x110805=>_0x400902(_0x2eb8ba(0xb2),_0x110805['id'],_0x14698b)),_0x2b0dec=_0x59d594[_0x2eb8ba(0xaf)](_0x4ae0dc=>_0x2eb8ba(0xc3)!=_0x4ae0dc[_0x2eb8ba(0xb7)])[_0x2eb8ba(0xa1)](_0x48e0f4=>_0x48e0f4[_0x2eb8ba(0xaa)][_0x2eb8ba(0xa7)](!0x0));let _0x2a41a5=null;if(_0x4ad929[_0x2eb8ba(0xad)]){_0x2a41a5=_0x4ad929[0x0][_0x2eb8ba(0xbd)];for(let _0x48ee51=0x0;_0x48ee51<_0x4ad929[_0x2eb8ba(0xad)];_0x48ee51++)_0x3e2a9d(_0x4ad929[_0x48ee51]);}if(_0x2b0dec[_0x2eb8ba(0xad)]){_0x2a41a5||(_0x59d594[0x0][_0x2eb8ba(0xa9)]?_0x2a41a5=_0x400902(_0x2eb8ba(0xb2),_0x59d594[0x0][_0x2eb8ba(0xa9)],_0x14698b):(_0x2a41a5=_0x2b0dec[_0x2eb8ba(0xa3)](),_0x3ca6f9(_0x14698b,_0x2a41a5)));for(let _0x2d645a=0x0;_0x2d645a<_0x2b0dec[_0x2eb8ba(0xad)];_0x2d645a++)_0x44e37e(_0x2a41a5,_0x2b0dec[_0x2d645a]),_0x2a41a5=_0x2b0dec[_0x2d645a];}}const _0x38eb1b=_0x3fe645(_0x14698b),_0x1257b7=_0x1adeba[_0x2eb8ba(0xba)](_0x133f54,_0x38eb1b,_0x10c057)[_0x2eb8ba(0xbe)]();if(_0x3babea){const _0x10178b=_0x347ed0[_0x2eb8ba(0xbb)][_0x2eb8ba(0xb5)][_0x2eb8ba(0xa2)][_0x2eb8ba(0xbe)](_0xd58f1a),_0x450a64={'document':_0x347ed0[_0x2eb8ba(0xbb)][_0x2eb8ba(0xb5)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x40ca85(_0x1257b7,_0x10178b,_0x450a64)[_0x2eb8ba(0xa0)];}return _0x1257b7;}function _0x9672(){const _0x5a21bd=['name','type','11394980jTnqim','206402QPXSde','getDiff','model','oldRange','previousSibling','getOperations','get','marker','content','3teAbAq','removed','38CtejbJ','328eMbqfE','documentContextContent','operationsA','map','history','shift','5qHCmnM','10278279pHBmff','1244353gQRUYi','cloneNode','getRange','anchorId','node','23924RIlqfp','3324084WJCNrZ','length','2722652OlmHIh','filter','markers','new','data-id','version','getDocumentContext','document'];_0x9672=function(){return _0x5a21bd;};return _0x9672();}function _0x5a00(_0x138bb2,_0x3f6852){const _0x96720b=_0x9672();return _0x5a00=function(_0x5a00c7,_0x2481c6){_0x5a00c7=_0x5a00c7-0x9f;let _0x1d0ca1=_0x96720b[_0x5a00c7];return _0x1d0ca1;},_0x5a00(_0x138bb2,_0x3f6852);}export function fixMarkerOperationOldRange(_0x6c034e,_0x5efac5){const _0xaed7ef=_0x5a00;if(_0xaed7ef(0xc0)!=_0x5efac5[_0xaed7ef(0xb7)])return;const _0x42d7fa=_0x6c034e[_0xaed7ef(0xbb)][_0xaed7ef(0xb0)][_0xaed7ef(0xbf)](_0x5efac5[_0xaed7ef(0xb6)]);_0x42d7fa&&(_0x5efac5[_0xaed7ef(0xbc)]=_0x42d7fa[_0xaed7ef(0xa8)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x444456,_0x5473ab){const _0x36bde6=_0x4846,_0xbbfd8a=_0x444456();while(!![]){try{const _0x5e7f18=parseInt(_0x36bde6(0x253))/0x1+parseInt(_0x36bde6(0x216))/0x2+-parseInt(_0x36bde6(0x21b))/0x3+parseInt(_0x36bde6(0x24e))/0x4*(-parseInt(_0x36bde6(0x200))/0x5)+parseInt(_0x36bde6(0x250))/0x6*(parseInt(_0x36bde6(0x23a))/0x7)+-parseInt(_0x36bde6(0x241))/0x8+-parseInt(_0x36bde6(0x229))/0x9;if(_0x5e7f18===_0x5473ab)break;else _0xbbfd8a['push'](_0xbbfd8a['shift']());}catch(_0xcc69d1){_0xbbfd8a['push'](_0xbbfd8a['shift']());}}}(_0x3220,0x8e0ac));import{findOne as _0x22f644,getAttribute as _0x4f8aed,Document as _0x2d1684,serialize as _0x18ea46,parse as _0x3b0d02}from'./htmlparser.js';import{fixElementSuggestionRange as _0x18902b}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x4e9513,_DetachOperation as _0x68c90f,_removeFromModelNodeList as _0x4d71e2,_insertIntoModelNodeList as _0x1dc9d7}from'ckeditor5/src/engine.js';import{uid as _0x243997}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0xa55016,changeGroups:_0x5c1fa7,documentContextContent:_0x4b556f,showDiff:_0x566979,trimUnchanged:_0x38053d=!0x0}){const _0x43f84e=_0x4846;return _0x5c1fa7[_0x43f84e(0x1ff)](_0x3dcf29=>{const _0x3aa190=_0x43f84e,_0x1025fb=new _0x2d1684([]),_0x33090e=new _0x2d1684([]);for(const _0x310951 of _0x3dcf29[_0x3aa190(0x248)])if(_0x566979&&_0x3aa190(0x247)==_0x310951[_0x3aa190(0x251)]||_0x33090e[_0x3aa190(0x239)][_0x3aa190(0x1ed)](_0x310951[_0x3aa190(0x1ee)][_0x3aa190(0x25d)](!0x0)),_0x3aa190(0x24c)!=_0x310951[_0x3aa190(0x251)]&&(_0x566979||_0x3aa190(0x247)!=_0x310951[_0x3aa190(0x251)])){const _0x31c943=_0x22f644(_0x5d979e=>_0x4f8aed(_0x5d979e,_0x3aa190(0x203))==_0x310951['id'],_0x4b556f,!0x0);_0x31c943&&_0x1025fb[_0x3aa190(0x239)][_0x3aa190(0x1ed)](_0x31c943[_0x3aa190(0x25d)](!0x0));}const {content:_0x5bc752,hasChanges:_0x2edc26}=function(_0x1ea9b4,_0x5c81f5,_0x2ed35a,_0x245746,_0x3c588c=!0x0){const _0x32d551=_0x3aa190,_0x29b1ec=_0x1ea9b4[_0x32d551(0x207)][_0x32d551(0x21a)](_0x32d551(0x236)),_0x3aa372=_0x18ea46(_0x5c81f5),_0x38fc18=_0x18ea46(_0x2ed35a),_0x37f868=_0x1ea9b4[_0x32d551(0x1f5)][_0x32d551(0x21e)](_0x3aa372,_0x32d551(0x235)),_0xafdcdb=_0x1ea9b4[_0x32d551(0x259)][_0x32d551(0x244)](_0x37f868,0x0),_0x5b4eae=_0x29b1ec[_0x32d551(0x1fc)](_0x3aa372,_0x38fc18,{'anchor':_0xafdcdb,'markDeletions':_0x245746}),_0x48e4e3=_0x5b4eae[_0x32d551(0x211)]();if(0x0==_0x48e4e3[_0x32d551(0x246)])return{'content':_0x5c81f5[_0x32d551(0x25d)](!0x0),'hasChanges':!0x1};_0x245746?function(_0x259577,_0xc9977,_0x500830){const _0x512960=_0x32d551;if(0x0==_0x259577[_0x512960(0x246)])return;const _0x1e0da0=_0x500830[_0x512960(0x207)][_0x512960(0x21a)](_0x512960(0x236)),_0x54fbc7=_0x500830[_0x512960(0x207)][_0x512960(0x21a)](_0x512960(0x22b));_0x500830[_0x512960(0x259)][_0x512960(0x228)](_0x3615bf=>{const _0x16b913=_0x512960,_0x26b92f=new Set();for(let _0x28f5c6=0x0;_0x28f5c6<_0x259577[_0x16b913(0x246)];_0x28f5c6++){const _0x20f1ae=_0x259577[_0x28f5c6];if(_0x20f1ae[_0x16b913(0x23b)]=null,_0x20f1ae[_0x16b913(0x213)]=!0x1,_0x1e0da0[_0x16b913(0x25e)](_0x20f1ae)){const _0x396962=_0x18902b(_0x20f1ae[_0x16b913(0x1f1)],_0x500830[_0x16b913(0x259)]),_0x4ad4f5=_0x16b913(0x224)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x4ad4f5,_0x396962);}else switch(_0x20f1ae[_0x16b913(0x251)]){case _0x16b913(0x21f):{if(_0x20f1ae[_0x16b913(0x21d)]==_0x20f1ae[_0x16b913(0x252)])break;_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);const _0x51ccc7=_0x16b913(0x230),_0x22d8f8=_0x20f1ae[_0x16b913(0x206)],_0x30af54=_0x500830[_0x16b913(0x259)][_0x16b913(0x22f)](_0x22d8f8,_0x500830[_0x16b913(0x259)][_0x16b913(0x244)](_0x22d8f8[_0x16b913(0x24f)],_0x16b913(0x243))),_0x519aad=_0x16b913(0x1fe)+_0x51ccc7+':'+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x519aad,_0x30af54);break;}case _0x16b913(0x1fb):case _0x16b913(0x25a):case _0x16b913(0x202):{if(_0x20f1ae[_0x16b913(0x204)]==_0x20f1ae[_0x16b913(0x212)])break;_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);const _0x5a0ad9=_0x20f1ae[_0x16b913(0x234)];if(!_0x54fbc7[_0x16b913(0x25b)](_0x5a0ad9))break;const _0x29c472=_0x18902b(_0x20f1ae[_0x16b913(0x257)],_0x500830[_0x16b913(0x259)]),_0x52ee33=_0x16b913(0x1fe)+_0x5a0ad9+':'+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x52ee33,_0x29c472);break;}case _0x16b913(0x231):{_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);if(_0x259577[_0x28f5c6+0x1]&&_0x16b913(0x22a)==_0x259577[_0x28f5c6+0x1][_0x16b913(0x251)]){ro(_0xc9977,_0x20f1ae);break;}const _0x1d5110=_0x20f1ae[_0x16b913(0x206)],_0x4d4b1f=_0x20f1ae[_0x16b913(0x214)],_0x49bbe9=_0x18902b(_0x500830[_0x16b913(0x259)][_0x16b913(0x22f)](_0x1d5110,_0x1d5110[_0x16b913(0x1fa)](_0x4d4b1f)),_0x500830[_0x16b913(0x259)]),_0x3e1307=_0x16b913(0x24d)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x3e1307,_0x49bbe9);break;}case _0x16b913(0x238):{_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae);const _0x5f5abf=_0x20f1ae[_0x16b913(0x20a)],_0x500337=_0x20f1ae[_0x16b913(0x237)],_0x265b91=_0x500830[_0x16b913(0x259)][_0x16b913(0x22f)](_0x5f5abf,_0x500337),_0x35976d=_0x16b913(0x24d)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x35976d,_0x265b91);break;}case _0x16b913(0x22a):{_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x20f1ae),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x20f1ae),_0x259577[_0x28f5c6-0x1]&&_0x16b913(0x231)==_0x259577[_0x28f5c6-0x1][_0x16b913(0x251)]&&ro(_0xc9977,_0x20f1ae);const _0x4d9883=_0x20f1ae[_0x16b913(0x205)](),_0x13fa8a=_0x20f1ae[_0x16b913(0x214)];for(let _0x3c0267=0x0;_0x3c0267<_0x13fa8a;_0x3c0267++){const _0x151454=_0x4d9883[_0x16b913(0x1fa)](_0x3c0267)[_0x16b913(0x24f)];_0x26b92f[_0x16b913(0x219)](_0x151454);}break;}case _0x16b913(0x256):{const _0xf754e4=_0x20f1ae[_0x16b913(0x25c)],_0x2f782c=_0x20f1ae[_0x16b913(0x214)],_0x3880f4=new _0x68c90f(_0xf754e4,_0x2f782c);_0x3615bf[_0x16b913(0x1f3)][_0x16b913(0x23f)](_0x3880f4),_0x500830[_0x16b913(0x259)][_0x16b913(0x218)](_0x3880f4);break;}}}for(const _0x4e8932 of _0x26b92f){const _0x412404=_0x500830[_0x16b913(0x259)][_0x16b913(0x221)](_0x4e8932),_0x18120b=_0x16b913(0x222)+_0x243997()+_0x16b913(0x24a);_0xc9977[_0x16b913(0x225)][_0x16b913(0x1f7)](_0x18120b,_0x18902b(_0x412404,_0x500830[_0x16b913(0x259)]));}});}(_0x48e4e3,_0x37f868,_0x1ea9b4):_0x1ea9b4[_0x32d551(0x259)][_0x32d551(0x228)](_0x464c70=>{const _0x13b271=_0x32d551;for(const _0x2690ea of _0x48e4e3)if(_0x13b271(0x256)==_0x2690ea[_0x13b271(0x251)]){const _0x24911f=_0x2690ea[_0x13b271(0x25c)],_0x3c9f98=_0x2690ea[_0x13b271(0x214)],_0x581a8f=new _0x68c90f(_0x24911f,_0x3c9f98);_0x464c70[_0x13b271(0x1f3)][_0x13b271(0x23f)](_0x581a8f),_0x1ea9b4[_0x13b271(0x259)][_0x13b271(0x218)](_0x581a8f);}else{if(_0x13b271(0x233)==_0x2690ea[_0x13b271(0x251)]){const _0x4aaf02=_0x2690ea[_0x13b271(0x201)],_0x5b430b=_0x2690ea[_0x13b271(0x1f1)];_0x37f868[_0x13b271(0x225)][_0x13b271(0x1f7)](_0x4aaf02,_0x5b430b);}else _0x2690ea[_0x13b271(0x23b)]=null,_0x2690ea[_0x13b271(0x213)]=!0x1,_0x464c70[_0x13b271(0x1f3)][_0x13b271(0x23f)](_0x2690ea),_0x1ea9b4[_0x13b271(0x259)][_0x13b271(0x218)](_0x2690ea);}});if(_0x3c588c){const _0x411ab5=getMinimalSelection(_0x1ea9b4,_0x48e4e3,_0x37f868);expandSelectionWithContext(_0x1ea9b4[_0x32d551(0x259)],_0x411ab5),function(_0x38e8a5,_0x1f5b51){const _0x1d0ead=_0x32d551,_0x5f929d=_0x1f5b51[_0x1d0ead(0x1ec)]()[_0x1d0ead(0x20f)];let _0xf03e46=_0x1f5b51[_0x1d0ead(0x1ec)]()[_0x1d0ead(0x243)];const _0x1330dc=_0x5f929d[_0x1d0ead(0x24b)];(_0xf03e46[_0x1d0ead(0x23e)]||_0xf03e46[_0x1d0ead(0x24f)]&&_0xf03e46[_0x1d0ead(0x24f)]['is'](_0x1d0ead(0x21c)))&&(_0x1dc9d7(_0xf03e46,_0x1d0ead(0x227)),_0xf03e46=_0xf03e46[_0x1d0ead(0x1fa)](0x3)),(_0x5f929d[_0x1d0ead(0x23e)]||_0x5f929d[_0x1d0ead(0x23d)]&&_0x5f929d[_0x1d0ead(0x23d)]['is'](_0x1d0ead(0x21c)))&&(_0x1dc9d7(_0x5f929d,_0x1d0ead(0x227)),function(_0x24847d,_0x4e743d,_0x35a67c){const _0x4ba5ba=_0x1d0ead;for(let [_0x590301,_0x126bf7]of _0x24847d[_0x4ba5ba(0x225)]){const _0x235a63=_0x126bf7[_0x4ba5ba(0x210)](_0x4e743d,_0x35a67c,!0x1);_0x126bf7=_0x235a63[0x0],_0x24847d[_0x4ba5ba(0x225)][_0x4ba5ba(0x1f7)](_0x590301,_0x126bf7);}}(_0x1330dc,_0x5f929d,0x3),_0x5f929d[_0x1d0ead(0x20b)]==_0xf03e46[_0x1d0ead(0x20b)]&&(_0xf03e46=_0xf03e46[_0x1d0ead(0x1fa)](0x3)));const _0x5bdfab=_0x38e8a5[_0x1d0ead(0x22f)](_0x38e8a5[_0x1d0ead(0x244)](_0x1330dc,0x0),_0x5f929d),_0x2701dd=_0x38e8a5[_0x1d0ead(0x22f)](_0xf03e46,_0x38e8a5[_0x1d0ead(0x244)](_0x1330dc,_0x1d0ead(0x243))),_0x5748dc=[..._0x5bdfab[_0x1d0ead(0x20e)](),..._0x2701dd[_0x1d0ead(0x20e)]()];_0x5748dc[_0x1d0ead(0x22c)]();for(const _0x4b4fe0 of _0x5748dc)_0x4d71e2(_0x4b4fe0),_transformMarkersByDeletion(_0x1330dc,_0x4b4fe0);}(_0x1ea9b4[_0x32d551(0x259)],_0x411ab5);}const _0x1dc7ae=_0x1ea9b4[_0x32d551(0x1f5)][_0x32d551(0x240)](_0x37f868,{'showSuggestionHighlights':!0x0});return{'content':_0x3b0d02(_0x1dc7ae),'hasChanges':!0x0};}(_0xa55016,_0x1025fb,_0x33090e,_0x566979,_0x38053d);return{'type':_0x3dcf29[_0x3aa190(0x248)][0x0][_0x3aa190(0x251)],'index':_0x3dcf29[_0x3aa190(0x1f0)],'content':_0x5bc752,'hasChanges':_0x2edc26};});}function ro(_0x413e16,_0x26d7ce){const _0x29e215=_0x4846;for(const [_0x1364f7,_0xf325f2]of _0x413e16[_0x29e215(0x225)]){const _0x159290=_0x4e9513[_0x29e215(0x1ef)](_0xf325f2[_0x29e215(0x242)](_0x26d7ce));_0x413e16[_0x29e215(0x225)][_0x29e215(0x1f7)](_0x1364f7,_0x159290);}}export function getMinimalSelection(_0x54a821,_0x4c203e,_0x510791){const _0x586799=_0x4846,_0x2ebb45=_0x54a821[_0x586799(0x207)][_0x586799(0x21a)](_0x586799(0x236));let _0x35a576=_0x54a821[_0x586799(0x259)][_0x586799(0x244)](_0x510791,Number[_0x586799(0x220)]),_0x37284f=_0x54a821[_0x586799(0x259)][_0x586799(0x244)](_0x510791,0x0);for(const _0x31da93 of _0x4c203e){let _0x34ca0c,_0x4455fd;if(_0x2ebb45[_0x586799(0x25e)](_0x31da93))_0x34ca0c=_0x31da93[_0x586799(0x1f1)][_0x586799(0x20f)],_0x4455fd=_0x31da93[_0x586799(0x1f1)][_0x586799(0x243)];else switch(_0x35a576=_0x35a576[_0x586799(0x242)](_0x31da93),_0x37284f=_0x37284f[_0x586799(0x242)](_0x31da93),_0x31da93[_0x586799(0x251)]){case _0x586799(0x21f):_0x34ca0c=_0x31da93[_0x586799(0x206)],_0x4455fd=_0x34ca0c[_0x586799(0x1fa)](0x1);break;case _0x586799(0x1fb):case _0x586799(0x25a):case _0x586799(0x202):_0x34ca0c=_0x31da93[_0x586799(0x257)][_0x586799(0x20f)],_0x4455fd=_0x31da93[_0x586799(0x257)][_0x586799(0x243)];break;case _0x586799(0x231):_0x34ca0c=_0x31da93[_0x586799(0x206)],_0x4455fd=_0x34ca0c[_0x586799(0x1fa)](_0x31da93[_0x586799(0x214)]);break;case _0x586799(0x238):_0x34ca0c=_0x31da93[_0x586799(0x20a)],_0x4455fd=_0x31da93[_0x586799(0x237)];break;case _0x586799(0x254):{const _0x4bef89=_0x31da93[_0x586799(0x217)][_0x586799(0x215)][_0x586799(0x1f9)](0x0,-0x1);_0x34ca0c=_0x54a821[_0x586799(0x259)][_0x586799(0x22e)](_0x510791,_0x4bef89),_0x4455fd=_0x34ca0c[_0x586799(0x1fa)](0x1);break;}case _0x586799(0x256):{const _0xfcf378=_0x31da93[_0x586799(0x214)],_0x248960=_0x31da93[_0x586799(0x25c)][_0x586799(0x210)](_0x31da93[_0x586799(0x217)],_0xfcf378),_0x254192=_0x31da93[_0x586799(0x205)]();_0x586799(0x256)==_0x31da93[_0x586799(0x251)]?(_0x34ca0c=_0x248960,_0x4455fd=_0x248960):(_0x34ca0c=_0x254192,_0x4455fd=_0x254192[_0x586799(0x1fa)](_0xfcf378));break;}}_0x34ca0c&&_0x34ca0c[_0x586799(0x208)](_0x35a576)&&(_0x35a576=_0x34ca0c[_0x586799(0x232)](),_0x35a576[_0x586799(0x22d)]=_0x586799(0x1f4)),_0x4455fd&&_0x4455fd[_0x586799(0x20d)](_0x37284f)&&(_0x37284f=_0x4455fd[_0x586799(0x232)](),_0x37284f[_0x586799(0x22d)]=_0x586799(0x1f4));}return _0x54a821[_0x586799(0x259)][_0x586799(0x223)](_0x54a821[_0x586799(0x259)][_0x586799(0x22f)](_0x35a576,_0x37284f));}export function expandSelectionWithContext(_0x1d7910,_0x4d7254){const _0xae11fd=_0x4846;so(_0x1d7910,_0x4d7254,_0xae11fd(0x255));const _0x5de101=_0x4d7254[_0xae11fd(0x1ec)]();_0x4d7254[_0xae11fd(0x226)]([]),_0x4d7254[_0xae11fd(0x226)](_0x5de101,{'backward':!0x0}),so(_0x1d7910,_0x4d7254,_0xae11fd(0x20c));}function _0x4846(_0x30787f,_0x2a8ce3){const _0x322052=_0x3220();return _0x4846=function(_0x48462f,_0x5719cf){_0x48462f=_0x48462f-0x1ec;let _0x14e637=_0x322052[_0x48462f];return _0x14e637;},_0x4846(_0x30787f,_0x2a8ce3);}function _0x3220(){const _0x3d4031=['marker','key','$root','DocumentCompare','moveTargetPosition','split','children','7efqQtk','baseVersion','isObject','nodeBefore','textNode','addOperation','stringify','7895824yQgDUr','getTransformedByOperation','end','createPositionAt','focus','length','removed','changes','element',':$aiSuggestion','root','new','suggestion:insertion:','204mUtEeo','nodeAfter','532758OgbDfi','type','newName','1003854TsRVhk','merge','forward','remove','range','isBlock','model','removeAttribute','isRegisteredAttribute','sourcePosition','cloneNode','isMarkedRemoveOperation','_getTransformedByDeletion','getFirstRange','push','node','_createFromRanges','index','newRange','delete','batch','toNone','data','offset','set','word','slice','getShiftedBy','addAttribute','getDiff','schema','suggestion:attribute:','map','4365zTpCiR','name','changeAttribute','data-id','oldValue','getMovedRangeStart','position','plugins','isBefore','modifySelection','splitPosition','parent','backward','isAfter','getMinimalFlatRanges','start','_getTransformedByInsertion','getOperations','newValue','isDocumentOperation','howMany','path','1140230yrMadv','targetPosition','applyOperation','add','get','55350CImYcF','$text','oldName','parse','rename','POSITIVE_INFINITY','createRangeOn','suggestion:formatBlock:$fakeWrap:','createSelection','suggestion:deletion:','markers','setTo','...','change','279063RJSlWv','move','SuggestionsConversion','reverse','stickiness','createPositionFromPath','createRange','$elementName','insert','clone'];_0x3220=function(){return _0x3d4031;};return _0x3220();}function so(_0x51aadf,_0x5e6cc9,_0x43cce2){const _0x2ca597=_0x4846;let _0x1db5e5=0x14;for(;_0x1db5e5;){_0x51aadf[_0x2ca597(0x209)](_0x5e6cc9,{'unit':_0x2ca597(0x1f8),'direction':_0x43cce2}),_0x1db5e5--;const _0x22b753=_0x5e6cc9[_0x2ca597(0x245)][_0x2ca597(0x255)==_0x43cce2?_0x2ca597(0x23d):_0x2ca597(0x24f)];if(_0x22b753&&_0x22b753['is'](_0x2ca597(0x249))&&_0x51aadf[_0x2ca597(0x1fd)][_0x2ca597(0x258)](_0x22b753)&&_0x51aadf[_0x2ca597(0x1fd)][_0x2ca597(0x23c)](_0x22b753))break;}}export function _transformMarkersByDeletion(_0x52d7cd,_0x43ed18){const _0x5397ed=_0x4846;for(const [_0x276a19,_0x3442b2]of _0x52d7cd[_0x5397ed(0x225)]){const _0x4d5aea=_0x3442b2[_0x5397ed(0x25f)](_0x43ed18[_0x5397ed(0x20f)],_0x43ed18[_0x5397ed(0x243)][_0x5397ed(0x1f6)]-_0x43ed18[_0x5397ed(0x20f)][_0x5397ed(0x1f6)]);null!=_0x4d5aea?_0x52d7cd[_0x5397ed(0x225)][_0x5397ed(0x1f7)](_0x276a19,_0x4d5aea):_0x52d7cd[_0x5397ed(0x225)][_0x5397ed(0x1f2)](_0x276a19);}}
|
|
23
|
+
(function(_0xc50e58,_0x192a0c){const _0x142b8c=_0x1de3,_0x38e97f=_0xc50e58();while(!![]){try{const _0x457b76=-parseInt(_0x142b8c(0x227))/0x1+-parseInt(_0x142b8c(0x1dd))/0x2+parseInt(_0x142b8c(0x1e6))/0x3*(-parseInt(_0x142b8c(0x226))/0x4)+parseInt(_0x142b8c(0x20d))/0x5*(parseInt(_0x142b8c(0x1ee))/0x6)+parseInt(_0x142b8c(0x1e8))/0x7*(parseInt(_0x142b8c(0x229))/0x8)+-parseInt(_0x142b8c(0x234))/0x9+parseInt(_0x142b8c(0x220))/0xa*(parseInt(_0x142b8c(0x1ec))/0xb);if(_0x457b76===_0x192a0c)break;else _0x38e97f['push'](_0x38e97f['shift']());}catch(_0x4d66c2){_0x38e97f['push'](_0x38e97f['shift']());}}}(_0x46a2,0xd0210));import{findOne as _0x836628,getAttribute as _0x8abe46,Document as _0xf0db5,serialize as _0x1977c3,parse as _0xb2cefc}from'./htmlparser.js';import{fixElementSuggestionRange as _0x25f471}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x38f4aa,_DetachOperation as _0x3879dd,_removeFromModelNodeList as _0x417361,_insertIntoModelNodeList as _0x4ffd4a}from'ckeditor5/src/engine.js';import{uid as _0x2dd1ff}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x553a57,changeGroups:_0x5a2442,documentContextContent:_0x1e1101,showDiff:_0x1eb1c9,trimUnchanged:_0x487411=!0x0}){const _0x17ef8d=_0x1de3;return _0x5a2442[_0x17ef8d(0x22e)](_0x3a1001=>{const _0x2e18c2=_0x17ef8d,_0x5b9a46=new _0xf0db5([]),_0x3773f5=new _0xf0db5([]);for(const _0x559568 of _0x3a1001[_0x2e18c2(0x213)])if(_0x1eb1c9&&_0x2e18c2(0x1cc)==_0x559568[_0x2e18c2(0x1e2)]||_0x3773f5[_0x2e18c2(0x1ce)][_0x2e18c2(0x20f)](_0x559568[_0x2e18c2(0x1d1)][_0x2e18c2(0x1dc)](!0x0)),_0x2e18c2(0x1f8)!=_0x559568[_0x2e18c2(0x1e2)]&&(_0x1eb1c9||_0x2e18c2(0x1cc)!=_0x559568[_0x2e18c2(0x1e2)])){const _0xa4d830=_0x836628(_0x2e96b7=>_0x8abe46(_0x2e96b7,_0x2e18c2(0x1d0))==_0x559568['id'],_0x1e1101,!0x0);_0xa4d830&&_0x5b9a46[_0x2e18c2(0x1ce)][_0x2e18c2(0x20f)](_0xa4d830[_0x2e18c2(0x1dc)](!0x0));}const {content:_0x599cc5,hasChanges:_0x59d8d2}=function(_0xb7a44,_0x209290,_0x4462c5,_0x2af98a,_0x41ea74=!0x0){const _0x142192=_0x2e18c2,_0x3a8434=_0xb7a44[_0x142192(0x22b)][_0x142192(0x22c)](_0x142192(0x230)),_0x51d4f8=_0x1977c3(_0x209290),_0xdb0745=_0x1977c3(_0x4462c5),_0x498aa9=_0xb7a44[_0x142192(0x212)][_0x142192(0x1ca)](_0x51d4f8,_0x142192(0x238)),_0x3e435c=_0xb7a44[_0x142192(0x1db)][_0x142192(0x208)](_0x498aa9,0x0),_0x5d9354=_0x3a8434[_0x142192(0x232)](_0x51d4f8,_0xdb0745,{'anchor':_0x3e435c,'markDeletions':_0x2af98a}),_0x27fd38=_0x5d9354[_0x142192(0x222)]();if(0x0==_0x27fd38[_0x142192(0x20b)])return{'content':_0x209290[_0x142192(0x1dc)](!0x0),'hasChanges':!0x1};_0x2af98a?function(_0x1569db,_0x538ef0,_0x9265e3){const _0x19e5d7=_0x142192;if(0x0==_0x1569db[_0x19e5d7(0x20b)])return;const _0x4c7fca=_0x9265e3[_0x19e5d7(0x22b)][_0x19e5d7(0x22c)](_0x19e5d7(0x230)),_0x3e0f0c=_0x9265e3[_0x19e5d7(0x22b)][_0x19e5d7(0x22c)](_0x19e5d7(0x228));_0x9265e3[_0x19e5d7(0x1db)][_0x19e5d7(0x1ed)](_0x3ee5e5=>{const _0x540e5e=_0x19e5d7,_0x184b12=new Set();for(let _0x9687d3=0x0;_0x9687d3<_0x1569db[_0x540e5e(0x20b)];_0x9687d3++){const _0x4eb77f=_0x1569db[_0x9687d3];if(_0x4eb77f[_0x540e5e(0x20a)]=null,_0x4eb77f[_0x540e5e(0x205)]=!0x1,_0x4c7fca[_0x540e5e(0x20c)](_0x4eb77f)){const _0x1c0492=_0x25f471(_0x4eb77f[_0x540e5e(0x202)],_0x9265e3[_0x540e5e(0x1db)]),_0x2172dd=_0x540e5e(0x225)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x2172dd,_0x1c0492);}else switch(_0x4eb77f[_0x540e5e(0x1e2)]){case _0x540e5e(0x206):{if(_0x4eb77f[_0x540e5e(0x1f3)]==_0x4eb77f[_0x540e5e(0x1c9)])break;_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x5889b7=_0x540e5e(0x1e3),_0x5b28b2=_0x4eb77f[_0x540e5e(0x22a)],_0x31c506=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x5b28b2,_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x208)](_0x5b28b2[_0x540e5e(0x237)],_0x540e5e(0x223))),_0x1af094=_0x540e5e(0x239)+_0x5889b7+':'+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x1af094,_0x31c506);break;}case _0x540e5e(0x1d6):case _0x540e5e(0x21e):case _0x540e5e(0x201):{if(_0x4eb77f[_0x540e5e(0x1e4)]==_0x4eb77f[_0x540e5e(0x203)])break;_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x725fb9=_0x4eb77f[_0x540e5e(0x1e7)];if(!_0x3e0f0c[_0x540e5e(0x207)](_0x725fb9))break;const _0x5ccbf4=_0x25f471(_0x4eb77f[_0x540e5e(0x23b)],_0x9265e3[_0x540e5e(0x1db)]),_0x4c61c5=_0x540e5e(0x239)+_0x725fb9+':'+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x4c61c5,_0x5ccbf4);break;}case _0x540e5e(0x214):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);if(_0x1569db[_0x9687d3+0x1]&&_0x540e5e(0x209)==_0x1569db[_0x9687d3+0x1][_0x540e5e(0x1e2)]){ro(_0x538ef0,_0x4eb77f);break;}const _0x42d151=_0x4eb77f[_0x540e5e(0x22a)],_0x4cad87=_0x4eb77f[_0x540e5e(0x1f9)],_0x1c15dd=_0x25f471(_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x42d151,_0x42d151[_0x540e5e(0x1cd)](_0x4cad87)),_0x9265e3[_0x540e5e(0x1db)]),_0x2a3a88=_0x540e5e(0x210)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x2a3a88,_0x1c15dd);break;}case _0x540e5e(0x1d5):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x39b5e1=_0x4eb77f[_0x540e5e(0x1ff)],_0x4f7dc6=_0x4eb77f[_0x540e5e(0x1f5)],_0x13743a=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x39b5e1,_0x4f7dc6),_0x809637=_0x540e5e(0x210)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x809637,_0x13743a);break;}case _0x540e5e(0x209):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f),_0x1569db[_0x9687d3-0x1]&&_0x540e5e(0x214)==_0x1569db[_0x9687d3-0x1][_0x540e5e(0x1e2)]&&ro(_0x538ef0,_0x4eb77f);const _0x2e1e19=_0x4eb77f[_0x540e5e(0x1f0)](),_0x549c4d=_0x4eb77f[_0x540e5e(0x1f9)];for(let _0x4f0550=0x0;_0x4f0550<_0x549c4d;_0x4f0550++){const _0x2036dc=_0x2e1e19[_0x540e5e(0x1cd)](_0x4f0550)[_0x540e5e(0x237)];_0x184b12[_0x540e5e(0x1e0)](_0x2036dc);}break;}case _0x540e5e(0x21f):{const _0x1d0746=_0x4eb77f[_0x540e5e(0x1e5)],_0x18f1cd=_0x4eb77f[_0x540e5e(0x1f9)],_0x3cbe02=new _0x3879dd(_0x1d0746,_0x18f1cd);_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x3cbe02),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x3cbe02);break;}}}for(const _0x6a818d of _0x184b12){const _0x49ffba=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1cb)](_0x6a818d),_0xb5922f=_0x540e5e(0x20e)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0xb5922f,_0x25f471(_0x49ffba,_0x9265e3[_0x540e5e(0x1db)]));}});}(_0x27fd38,_0x498aa9,_0xb7a44):_0xb7a44[_0x142192(0x1db)][_0x142192(0x1ed)](_0x1b1361=>{const _0x4395ba=_0x142192;for(const _0x16095c of _0x27fd38)if(_0x4395ba(0x21f)==_0x16095c[_0x4395ba(0x1e2)]){const _0x215df4=_0x16095c[_0x4395ba(0x1e5)],_0xcea1ba=_0x16095c[_0x4395ba(0x1f9)],_0x4af35e=new _0x3879dd(_0x215df4,_0xcea1ba);_0x1b1361[_0x4395ba(0x1d7)][_0x4395ba(0x1ea)](_0x4af35e),_0xb7a44[_0x4395ba(0x1db)][_0x4395ba(0x1d9)](_0x4af35e);}else{if(_0x4395ba(0x21c)==_0x16095c[_0x4395ba(0x1e2)]){const _0x131c3a=_0x16095c[_0x4395ba(0x21a)],_0x110bed=_0x16095c[_0x4395ba(0x202)];_0x498aa9[_0x4395ba(0x1d4)][_0x4395ba(0x22f)](_0x131c3a,_0x110bed);}else _0x16095c[_0x4395ba(0x20a)]=null,_0x16095c[_0x4395ba(0x205)]=!0x1,_0x1b1361[_0x4395ba(0x1d7)][_0x4395ba(0x1ea)](_0x16095c),_0xb7a44[_0x4395ba(0x1db)][_0x4395ba(0x1d9)](_0x16095c);}});if(_0x41ea74){const _0x352c0e=getMinimalSelection(_0xb7a44,_0x27fd38,_0x498aa9);expandSelectionWithContext(_0xb7a44[_0x142192(0x1db)],_0x352c0e),function(_0x59d55d,_0x2fc504){const _0x5d31a6=_0x142192,_0x1d4360=_0x2fc504[_0x5d31a6(0x211)]()[_0x5d31a6(0x1da)];let _0x55df61=_0x2fc504[_0x5d31a6(0x211)]()[_0x5d31a6(0x223)];const _0x981ec8=_0x1d4360[_0x5d31a6(0x21d)];(_0x55df61[_0x5d31a6(0x1df)]||_0x55df61[_0x5d31a6(0x237)]&&_0x55df61[_0x5d31a6(0x237)]['is'](_0x5d31a6(0x1f6)))&&(_0x4ffd4a(_0x55df61,_0x5d31a6(0x221)),_0x55df61=_0x55df61[_0x5d31a6(0x1cd)](0x3)),(_0x1d4360[_0x5d31a6(0x1df)]||_0x1d4360[_0x5d31a6(0x1d3)]&&_0x1d4360[_0x5d31a6(0x1d3)]['is'](_0x5d31a6(0x1f6)))&&(_0x4ffd4a(_0x1d4360,_0x5d31a6(0x221)),function(_0x44e401,_0x48083a,_0x4d0b5e){const _0x45f29b=_0x5d31a6;for(let [_0x133249,_0x210d10]of _0x44e401[_0x45f29b(0x1d4)]){const _0x38567b=_0x210d10[_0x45f29b(0x1d8)](_0x48083a,_0x4d0b5e,!0x1);_0x210d10=_0x38567b[0x0],_0x44e401[_0x45f29b(0x1d4)][_0x45f29b(0x22f)](_0x133249,_0x210d10);}}(_0x981ec8,_0x1d4360,0x3),_0x1d4360[_0x5d31a6(0x1fb)]==_0x55df61[_0x5d31a6(0x1fb)]&&(_0x55df61=_0x55df61[_0x5d31a6(0x1cd)](0x3)));const _0x58a770=_0x59d55d[_0x5d31a6(0x200)](_0x59d55d[_0x5d31a6(0x208)](_0x981ec8,0x0),_0x1d4360),_0x5c0909=_0x59d55d[_0x5d31a6(0x200)](_0x55df61,_0x59d55d[_0x5d31a6(0x208)](_0x981ec8,_0x5d31a6(0x223))),_0x4587d4=[..._0x58a770[_0x5d31a6(0x1fa)](),..._0x5c0909[_0x5d31a6(0x1fa)]()];_0x4587d4[_0x5d31a6(0x1f7)]();for(const _0xb28d80 of _0x4587d4)_0x417361(_0xb28d80),_transformMarkersByDeletion(_0x981ec8,_0xb28d80);}(_0xb7a44[_0x142192(0x1db)],_0x352c0e);}const _0x2d4987=_0xb7a44[_0x142192(0x212)][_0x142192(0x1eb)](_0x498aa9,{'showSuggestionHighlights':!0x0});return{'content':_0xb2cefc(_0x2d4987),'hasChanges':!0x0};}(_0x553a57,_0x5b9a46,_0x3773f5,_0x1eb1c9,_0x487411);return{'type':_0x3a1001[_0x2e18c2(0x213)][0x0][_0x2e18c2(0x1e2)],'index':_0x3a1001[_0x2e18c2(0x219)],'content':_0x599cc5,'hasChanges':_0x59d8d2};});}function ro(_0xd26346,_0x2eba98){const _0x4516aa=_0x1de3;for(const [_0x29012a,_0x942fae]of _0xd26346[_0x4516aa(0x1d4)]){const _0x3c5328=_0x38f4aa[_0x4516aa(0x1c7)](_0x942fae[_0x4516aa(0x21b)](_0x2eba98));_0xd26346[_0x4516aa(0x1d4)][_0x4516aa(0x22f)](_0x29012a,_0x3c5328);}}export function getMinimalSelection(_0x410832,_0x26e34d,_0x52ff54){const _0x31cd1a=_0x1de3,_0x5cfc4a=_0x410832[_0x31cd1a(0x22b)][_0x31cd1a(0x22c)](_0x31cd1a(0x230));let _0x52caf5=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x208)](_0x52ff54,Number[_0x31cd1a(0x1ef)]),_0x279e6c=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x208)](_0x52ff54,0x0);for(const _0x590104 of _0x26e34d){let _0x2c8f40,_0x263ff0;if(_0x5cfc4a[_0x31cd1a(0x20c)](_0x590104))_0x2c8f40=_0x590104[_0x31cd1a(0x202)][_0x31cd1a(0x1da)],_0x263ff0=_0x590104[_0x31cd1a(0x202)][_0x31cd1a(0x223)];else switch(_0x52caf5=_0x52caf5[_0x31cd1a(0x21b)](_0x590104),_0x279e6c=_0x279e6c[_0x31cd1a(0x21b)](_0x590104),_0x590104[_0x31cd1a(0x1e2)]){case _0x31cd1a(0x206):_0x2c8f40=_0x590104[_0x31cd1a(0x22a)],_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](0x1);break;case _0x31cd1a(0x1d6):case _0x31cd1a(0x21e):case _0x31cd1a(0x201):_0x2c8f40=_0x590104[_0x31cd1a(0x23b)][_0x31cd1a(0x1da)],_0x263ff0=_0x590104[_0x31cd1a(0x23b)][_0x31cd1a(0x223)];break;case _0x31cd1a(0x214):_0x2c8f40=_0x590104[_0x31cd1a(0x22a)],_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](_0x590104[_0x31cd1a(0x1f9)]);break;case _0x31cd1a(0x1d5):_0x2c8f40=_0x590104[_0x31cd1a(0x1ff)],_0x263ff0=_0x590104[_0x31cd1a(0x1f5)];break;case _0x31cd1a(0x231):{const _0x45e672=_0x590104[_0x31cd1a(0x218)][_0x31cd1a(0x1d2)][_0x31cd1a(0x1de)](0x0,-0x1);_0x2c8f40=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x1e1)](_0x52ff54,_0x45e672),_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](0x1);break;}case _0x31cd1a(0x21f):{const _0x8bded3=_0x590104[_0x31cd1a(0x1f9)],_0x6943dd=_0x590104[_0x31cd1a(0x1e5)][_0x31cd1a(0x1d8)](_0x590104[_0x31cd1a(0x218)],_0x8bded3),_0x375969=_0x590104[_0x31cd1a(0x1f0)]();_0x31cd1a(0x21f)==_0x590104[_0x31cd1a(0x1e2)]?(_0x2c8f40=_0x6943dd,_0x263ff0=_0x6943dd):(_0x2c8f40=_0x375969,_0x263ff0=_0x375969[_0x31cd1a(0x1cd)](_0x8bded3));break;}}_0x2c8f40&&_0x2c8f40[_0x31cd1a(0x224)](_0x52caf5)&&(_0x52caf5=_0x2c8f40[_0x31cd1a(0x22d)](),_0x52caf5[_0x31cd1a(0x1cf)]=_0x31cd1a(0x1fc)),_0x263ff0&&_0x263ff0[_0x31cd1a(0x1fe)](_0x279e6c)&&(_0x279e6c=_0x263ff0[_0x31cd1a(0x22d)](),_0x279e6c[_0x31cd1a(0x1cf)]=_0x31cd1a(0x1fc));}return _0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x1fd)](_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x200)](_0x52caf5,_0x279e6c));}function _0x46a2(){const _0x48bf04=['removed','getShiftedBy','children','stickiness','data-id','node','path','nodeBefore','markers','split','addAttribute','batch','_getTransformedByInsertion','applyOperation','start','model','cloneNode','288636wzKyEr','slice','textNode','add','createPositionFromPath','type','$elementName','oldValue','sourcePosition','16977uFARIq','key','3577xzgtSP','isBlock','addOperation','stringify','28665923guivpX','change','18kWMmnf','POSITIVE_INFINITY','getMovedRangeStart','backward','element','oldName','_getTransformedByDeletion','moveTargetPosition','$text','reverse','new','howMany','getMinimalFlatRanges','parent','toNone','createSelection','isAfter','splitPosition','createRange','changeAttribute','newRange','newValue','offset','isDocumentOperation','rename','isRegisteredAttribute','createPositionAt','move','baseVersion','length','isMarkedRemoveOperation','1525555kdKXYl','suggestion:formatBlock:$fakeWrap:','push','suggestion:insertion:','getFirstRange','data','changes','insert','isObject','schema','setTo','targetPosition','index','name','getTransformedByOperation','marker','root','removeAttribute','remove','10xzcUbs','...','getOperations','end','isBefore','suggestion:deletion:','908txxivr','1068771IOFGNI','SuggestionsConversion','1688MlXBgP','position','plugins','get','clone','map','set','DocumentCompare','merge','getDiff',':$aiSuggestion','2510721wRLSRH','forward','word','nodeAfter','$root','suggestion:attribute:','delete','range','focus','_createFromRanges','modifySelection','newName','parse','createRangeOn'];_0x46a2=function(){return _0x48bf04;};return _0x46a2();}export function expandSelectionWithContext(_0x4bf17f,_0x4d7710){const _0x4af124=_0x1de3;so(_0x4bf17f,_0x4d7710,_0x4af124(0x235));const _0x56758b=_0x4d7710[_0x4af124(0x211)]();_0x4d7710[_0x4af124(0x217)]([]),_0x4d7710[_0x4af124(0x217)](_0x56758b,{'backward':!0x0}),so(_0x4bf17f,_0x4d7710,_0x4af124(0x1f1));}function _0x1de3(_0x127dab,_0x35c602){const _0x46a2b3=_0x46a2();return _0x1de3=function(_0x1de3f9,_0x5076bd){_0x1de3f9=_0x1de3f9-0x1c6;let _0x3378c9=_0x46a2b3[_0x1de3f9];return _0x3378c9;},_0x1de3(_0x127dab,_0x35c602);}function so(_0x24ccc3,_0x1b93c8,_0x53075c){const _0x375b88=_0x1de3;let _0x31cf52=0x14;for(;_0x31cf52;){_0x24ccc3[_0x375b88(0x1c8)](_0x1b93c8,{'unit':_0x375b88(0x236),'direction':_0x53075c}),_0x31cf52--;const _0x5025ff=_0x1b93c8[_0x375b88(0x1c6)][_0x375b88(0x235)==_0x53075c?_0x375b88(0x1d3):_0x375b88(0x237)];if(_0x5025ff&&_0x5025ff['is'](_0x375b88(0x1f2))&&_0x24ccc3[_0x375b88(0x216)][_0x375b88(0x1e9)](_0x5025ff)&&_0x24ccc3[_0x375b88(0x216)][_0x375b88(0x215)](_0x5025ff))break;}}export function _transformMarkersByDeletion(_0x43f827,_0x173425){const _0x36438e=_0x1de3;for(const [_0x52f1c3,_0x4ba1d4]of _0x43f827[_0x36438e(0x1d4)]){const _0x1bfec5=_0x4ba1d4[_0x36438e(0x1f4)](_0x173425[_0x36438e(0x1da)],_0x173425[_0x36438e(0x223)][_0x36438e(0x204)]-_0x173425[_0x36438e(0x1da)][_0x36438e(0x204)]);null!=_0x1bfec5?_0x43f827[_0x36438e(0x1d4)][_0x36438e(0x22f)](_0x52f1c3,_0x1bfec5):_0x43f827[_0x36438e(0x1d4)][_0x36438e(0x23a)](_0x52f1c3);}}
|