@ckeditor/ckeditor5-ai 47.6.0-alpha.9 → 47.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatheaderview.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/aichatcontextresourcesview.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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/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/ui/aidisclaimerview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x234ec1=_0x27c7;(function(_0x6a89e7,_0x23cb37){const _0x17a045=_0x27c7,_0x533ce5=_0x6a89e7();while(!![]){try{const _0x169b70=-parseInt(_0x17a045(0xbf))/0x1*(parseInt(_0x17a045(0xa6))/0x2)+parseInt(_0x17a045(0xae))/0x3+-parseInt(_0x17a045(0xa5))/0x4+parseInt(_0x17a045(0xa4))/0x5*(parseInt(_0x17a045(0xcb))/0x6)+-parseInt(_0x17a045(0xa0))/0x7+-parseInt(_0x17a045(0xa3))/0x8+-parseInt(_0x17a045(0x98))/0x9*(-parseInt(_0x17a045(0x8d))/0xa);if(_0x169b70===_0x23cb37)break;else _0x533ce5['push'](_0x533ce5['shift']());}catch(_0x3f382f){_0x533ce5['push'](_0x533ce5['shift']());}}}(_0x3e59,0x26d6d));import{View as _0x4bfe74,ButtonView as _0x1bc7b1,IconView as _0x2bbdb3,BalloonPanelView as _0x1ae874}from'ckeditor5/src/ui.js';import{IconWeb as _0x2229c3}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x570ee3}from'../../utils/common-translations.js';function _0x27c7(_0x2c0ad8,_0x2e6107){const _0x3e597f=_0x3e59();return _0x27c7=function(_0x27c737,_0x604be0){_0x27c737=_0x27c737-0x8c;let _0x5015a7=_0x3e597f[_0x27c737];return _0x5015a7;},_0x27c7(_0x2c0ad8,_0x2e6107);}export class AIWebSourcesView extends _0x4bfe74{[_0x234ec1(0xb0)];[_0x234ec1(0x8e)];[_0x234ec1(0x94)];constructor(_0x156eaf,_0x3f6e7b){const _0x1bc3ba=_0x234ec1;super(_0x156eaf),this[_0x1bc3ba(0x94)]=_0x3f6e7b,this[_0x1bc3ba(0xb0)]=this[_0x1bc3ba(0xad)](),this[_0x1bc3ba(0xac)](_0x1bc3ba(0xba),!0x1),this[_0x1bc3ba(0x9b)]({'tag':_0x1bc3ba(0xc8),'attributes':{'class':['ck',_0x1bc3ba(0xb6),this[_0x1bc3ba(0xcd)]['if'](_0x1bc3ba(0xba),_0x1bc3ba(0xa1),_0x473aad=>!_0x473aad)]},'children':this[_0x1bc3ba(0xb0)]});const _0x3a21f2=new _0x4bfe74(this[_0x1bc3ba(0x91)]),_0x1733e7=new _0x2bbdb3();_0x1733e7[_0x1bc3ba(0x9e)]=_0x2229c3,_0x3a21f2[_0x1bc3ba(0x9b)]({'tag':_0x1bc3ba(0xc8),'attributes':{'class':['ck',_0x1bc3ba(0xca)]},'children':[_0x1733e7,{'tag':_0x1bc3ba(0xbb),'children':[{'text':_0x570ee3(this[_0x1bc3ba(0x91)],_0x1bc3ba(0xc5))}]}]}),this[_0x1bc3ba(0xb0)][_0x1bc3ba(0xbd)](_0x3a21f2),this[_0x1bc3ba(0x9f)](_0x156eaf);}[_0x234ec1(0xa8)](_0x3161d7){const _0x40b8d6=_0x234ec1;this[_0x40b8d6(0xb0)][_0x40b8d6(0xbd)](new AIWebSourceView(this[_0x40b8d6(0x91)],_0x3161d7,this[_0x40b8d6(0x8e)]));}[_0x234ec1(0x9f)](_0x5e5320){const _0x5d5656=_0x234ec1;this[_0x5d5656(0x8e)]=new _0x1ae874(_0x5e5320),this[_0x5d5656(0x8e)][_0x5d5656(0xc3)]({'attributes':{'class':[_0x5d5656(0xb8)]}}),this[_0x5d5656(0x94)][_0x5d5656(0xbd)](this[_0x5d5656(0x8e)]);}}export class AIWebSourceView extends _0x1bc7b1{[_0x234ec1(0x8e)];[_0x234ec1(0xb4)];constructor(_0xcb1df6,_0x4e514b,_0xeba55b){const _0x7a87aa=_0x234ec1;super(_0xcb1df6),this[_0x7a87aa(0xb4)]=_0x4e514b,this[_0x7a87aa(0x8e)]=_0xeba55b,this[_0x7a87aa(0xac)]({'label':_0x4e514b[_0x7a87aa(0xb2)],'class':[_0x7a87aa(0xb9)],'withText':!0x0});const _0x34fc9b=this[_0x7a87aa(0xcd)];if(this[_0x7a87aa(0xc3)]({'on':{'click':_0x34fc9b['to'](()=>{const _0xdd4f10=_0x7a87aa;window[_0xdd4f10(0xb1)](_0x4e514b[_0xdd4f10(0xb3)],_0xdd4f10(0x8f));}),'mouseenter':_0x34fc9b['to'](()=>{const _0x4be1f3=_0x7a87aa;this[_0x4be1f3(0xc0)]();}),'mouseleave':_0x34fc9b['to'](()=>{const _0x30a509=_0x7a87aa;this[_0x30a509(0xc1)]();})}}),_0x4e514b[_0x7a87aa(0xb5)]){const _0x2f2992=new _0x4bfe74(_0xcb1df6);_0x2f2992[_0x7a87aa(0x9b)]({'tag':_0x7a87aa(0xa9),'attributes':{'src':_0x4e514b[_0x7a87aa(0xb5)]||_0x2229c3,'alt':_0x4e514b[_0x7a87aa(0xb2)],'class':[_0x7a87aa(0xbc)]}}),this[_0x7a87aa(0xb0)][_0x7a87aa(0xbd)](_0x2f2992);}else this[_0x7a87aa(0xac)](_0x7a87aa(0xbe),_0x2229c3);}[_0x234ec1(0xc4)](_0x22e74a,_0x4591dd){const _0x505e55=_0x234ec1,_0x5ae048=new _0x4bfe74(_0x22e74a),_0x164bca=[];let _0x1fa87d;_0x4591dd?.[_0x505e55(0xb5)]?(_0x1fa87d=new _0x4bfe74(_0x22e74a),_0x1fa87d[_0x505e55(0x9b)]({'tag':_0x505e55(0xa9),'attributes':{'src':_0x4591dd[_0x505e55(0xb5)],'alt':_0x4591dd[_0x505e55(0xb2)],'class':[_0x505e55(0xa2)]}})):(_0x1fa87d=new _0x2bbdb3(),_0x1fa87d[_0x505e55(0x9e)]=_0x2229c3,_0x1fa87d[_0x505e55(0xc3)]({'attributes':{'alt':_0x4591dd[_0x505e55(0xb2)],'class':[_0x505e55(0xa2)]}})),_0x164bca[_0x505e55(0x8c)](_0x1fa87d);const _0x59ef66=new _0x4bfe74(_0x22e74a);_0x59ef66[_0x505e55(0x9b)]({'tag':'a','attributes':{'class':[_0x505e55(0x96)],'href':_0x4591dd[_0x505e55(0xb3)]},'children':[{'text':new URL(_0x4591dd[_0x505e55(0xb3)])?.[_0x505e55(0xaf)]}]}),_0x164bca[_0x505e55(0x8c)](_0x59ef66);const _0x37fe62=new _0x4bfe74(_0x22e74a);_0x37fe62[_0x505e55(0x9b)]({'tag':_0x505e55(0xc8),'attributes':{'class':[_0x505e55(0x92)]},'children':_0x164bca});const _0x56a27c=new _0x4bfe74(_0x22e74a);return _0x56a27c[_0x505e55(0x9b)]({'tag':_0x505e55(0xbb),'attributes':{'class':[_0x505e55(0x92),_0x505e55(0xcc)]},'children':[{'text':_0x4591dd[_0x505e55(0xb2)][_0x505e55(0x93)]>0x190?_0x4591dd[_0x505e55(0xb2)][_0x505e55(0xaa)](0x0,0x190)+_0x505e55(0xc7):_0x4591dd[_0x505e55(0xb2)]}]}),_0x5ae048[_0x505e55(0x9b)]({'tag':_0x505e55(0xc8),'attributes':{'class':['ck',_0x505e55(0x95)]},'children':[_0x37fe62,_0x56a27c]}),_0x5ae048;}[_0x234ec1(0xc0)](){const _0x546e28=_0x234ec1;this[_0x546e28(0xce)](),this[_0x546e28(0x8e)][_0x546e28(0xc6)]({'target':this[_0x546e28(0xb7)],'positions':[_0x1ae874[_0x546e28(0x9c)][_0x546e28(0x9d)],_0x1ae874[_0x546e28(0x9c)][_0x546e28(0xc2)],_0x1ae874[_0x546e28(0x9c)][_0x546e28(0x9a)]],'limiter':document[_0x546e28(0xab)](_0x546e28(0xa7))}),this[_0x546e28(0x8e)][_0x546e28(0x90)]();}[_0x234ec1(0xc1)](){const _0x547448=_0x234ec1;this[_0x547448(0x8e)][_0x547448(0xc9)]();}[_0x234ec1(0xce)](){const _0x4e0587=_0x234ec1;this[_0x4e0587(0x8e)][_0x4e0587(0x9e)][_0x4e0587(0xcf)](0x0)?.[_0x4e0587(0x99)](),this[_0x4e0587(0x8e)][_0x4e0587(0x9e)][_0x4e0587(0x97)]();const _0x398a1c=this[_0x4e0587(0xc4)](this[_0x4e0587(0x91)],this[_0x4e0587(0xb4)]);this[_0x4e0587(0x8e)][_0x4e0587(0x9e)][_0x4e0587(0xbd)](_0x398a1c);}}function _0x3e59(){const _0x5a6844=['push','5979590kIwEtX','balloonPanelView','_blank','show','locale','ck-ai-web-source__tooltip-row','length','bodyCollection','ck-ai-web-source__tooltip','ck-ai-web-source__tooltip-url','clear','9PFTdgz','destroy','northArrowSouthEast','setTemplate','defaultPositions','northArrowSouth','content','_setupBalloonPanel','1010926qklLuP','ck-hidden','ck-ai-web-source__tooltip-image','1542040WfiQIf','67565HZWFFg','1107812rcbaDc','2luXNyR','.ck-ai-chat','addSource','img','substring','querySelector','set','createCollection','900288lDQuZz','hostname','children','open','title','url','source','favicon','ck-ai-web-sources','element','ck-ai-web-source__tooltip-balloon','ck\x20ck-ai-web-source','isVisible','span','ck-ai-web-source__image','add','icon','273487lzNuAj','_showTooltip','_hideTooltip','northArrowSouthWest','extendTemplate','_createTooltipContentView','AI_CHAT_SOURCES_HEADER','pin','...','div','hide','ck-ai-web-sources__header','66bmCEXf','ck-ai-web-source__tooltip-title','bindTemplate','_updateTooltipContent','get'];_0x3e59=function(){return _0x5a6844;};return _0x3e59();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x273a2c,_0x544905){const _0x305f22=_0x331a,_0x218253=_0x273a2c();while(!![]){try{const _0x504641=-parseInt(_0x305f22(0xc4))/0x1+parseInt(_0x305f22(0xba))/0x2*(-parseInt(_0x305f22(0xc0))/0x3)+-parseInt(_0x305f22(0xb3))/0x4+-parseInt(_0x305f22(0xbe))/0x5*(parseInt(_0x305f22(0xb1))/0x6)+parseInt(_0x305f22(0xc2))/0x7*(-parseInt(_0x305f22(0xb9))/0x8)+-parseInt(_0x305f22(0xb6))/0x9+parseInt(_0x305f22(0xbc))/0xa*(parseInt(_0x305f22(0xb5))/0xb);if(_0x504641===_0x544905)break;else _0x218253['push'](_0x218253['shift']());}catch(_0x3d0388){_0x218253['push'](_0x218253['shift']());}}}(_0x5815,0x5fd92));function _0x5815(){const _0x4e7568=['isMaximized','957AkktWj','5341716cdbXxK','label','icon','120PkKhLz','27550GenBnI','fire','335980LNDSFu','bind','145ofovLh','AI_TABS_LABEL_MAXIMIZE','93emuSEs','set','93947aRtzuG','execute','103996SNqIzk','AI_TABS_LABEL_MINIMIZE','isOn','ck-ai-tabs__resize\x20ck-ai-button-tertiary','123126qilDjd','resizeTabs','2437852zbgWId'];_0x5815=function(){return _0x4e7568;};return _0x5815();}function _0x331a(_0xbcfc05,_0x440c6b){const _0x5815d2=_0x5815();return _0x331a=function(_0x331a79,_0x145394){_0x331a79=_0x331a79-0xaf;let _0x1d129c=_0x5815d2[_0x331a79];return _0x1d129c;},_0x331a(_0xbcfc05,_0x440c6b);}import{ButtonView as _0x3b5e14}from'ckeditor5/src/ui.js';import{IconMaximize as _0x54ad11,IconMinimize as _0x4c0f04}from'ckeditor5/src/icons.js';import{getTranslation as _0x3938f6}from'../../aicore/utils/common-translations.js';import'../../../theme/aitabs/aitabsresizebutton.css';export function createResizeButton(_0xe22032,_0x5427c5){const _0x29b84f=_0x331a,_0x42bc78=new _0x3b5e14(_0xe22032),_0xfe49cb=_0x3938f6(_0xe22032,_0x29b84f(0xc5)),_0x50908d=_0x3938f6(_0xe22032,_0x29b84f(0xbf));return _0x42bc78[_0x29b84f(0xc1)]({'withText':!0x1,'icon':_0x54ad11,'tooltip':!0x0,'class':_0x29b84f(0xb0)}),_0x42bc78[_0x29b84f(0xbd)](_0x29b84f(0xb7))['to'](_0x5427c5,_0x29b84f(0xb4),_0x15f21e=>_0x15f21e?_0xfe49cb:_0x50908d),_0x42bc78[_0x29b84f(0xbd)](_0x29b84f(0xb8))['to'](_0x5427c5,_0x29b84f(0xb4),_0x1cd75a=>_0x1cd75a?_0x4c0f04:_0x54ad11),_0x42bc78[_0x29b84f(0xbd)](_0x29b84f(0xaf))['to'](_0x5427c5,_0x29b84f(0xb4)),_0x42bc78['on'](_0x29b84f(0xc3),()=>{const _0x491af5=_0x29b84f;_0x5427c5[_0x491af5(0xbb)](_0x491af5(0xb2));}),_0x42bc78;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1fad(_0x7c18b9,_0x57fb6a){const _0x2d5908=_0x2d59();return _0x1fad=function(_0x1fad87,_0x5723ed){_0x1fad87=_0x1fad87-0xf1;let _0x18cf4c=_0x2d5908[_0x1fad87];return _0x18cf4c;},_0x1fad(_0x7c18b9,_0x57fb6a);}(function(_0x1def13,_0x1eeb06){const _0x102a25=_0x1fad,_0x13d371=_0x1def13();while(!![]){try{const _0x141cae=-parseInt(_0x102a25(0x10c))/0x1+parseInt(_0x102a25(0xfd))/0x2*(parseInt(_0x102a25(0xfe))/0x3)+parseInt(_0x102a25(0xf7))/0x4*(parseInt(_0x102a25(0xf4))/0x5)+-parseInt(_0x102a25(0x10e))/0x6+-parseInt(_0x102a25(0xf6))/0x7*(parseInt(_0x102a25(0x10b))/0x8)+parseInt(_0x102a25(0x10a))/0x9*(parseInt(_0x102a25(0x100))/0xa)+-parseInt(_0x102a25(0xfa))/0xb*(-parseInt(_0x102a25(0x102))/0xc);if(_0x141cae===_0x1eeb06)break;else _0x13d371['push'](_0x13d371['shift']());}catch(_0x52e352){_0x13d371['push'](_0x13d371['shift']());}}}(_0x2d59,0xdd07f));function _0x2d59(){const _0xbd0cde=['25479NgOvIy','177400auYvdn','1347447EgadPn','length','5991534NHlpuN','document','content','get','operationsA','cloneNode','name','documentContextContent','anchorId','removed','getDiff','previousSibling','filter','type','5gINwax','map','385ZZwMsY','844260HUwCaM','history','shift','55nVemRy','data-id','getDocumentContext','136EUVyia','46023MrRhfA','version','1810HRfryN','oldRange','6490416eJnxsB','getRange','getOperations','new','markers','model','marker','node'];_0x2d59=function(){return _0xbd0cde;};return _0x2d59();}import{transformOperationSets as _0x3edbbd}from'ckeditor5/src/engine.js';import{append as _0x5ae271,findByAttribute as _0x1b3f00,prependChild as _0xd80301,removeElement as _0x3ed40e,serialize as _0xa45cd9}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x266900,interaction:_0x4ffdb3,reply:_0x211838,groups:_0x25cc0b,transform:_0x4b2a83,documentCompare:_0x3f4ed8,documentCompareOptions:_0x313d49}){const _0xf2cb3c=_0x1fad,_0x489e2b=_0x4ffdb3[_0xf2cb3c(0xfc)]();if(!_0x489e2b)return[];const _0x282552=_0x489e2b[_0xf2cb3c(0x110)],_0x16420c=_0x489e2b[_0xf2cb3c(0xff)],_0x3b4f82=_0x211838[_0xf2cb3c(0x115)][_0xf2cb3c(0x113)](!0x0);for(const {changes:_0x5076f5}of _0x25cc0b){const _0x59960c=_0x5076f5[_0xf2cb3c(0xf2)](_0x305aa0=>_0xf2cb3c(0x105)!=_0x305aa0[_0xf2cb3c(0xf3)])[_0xf2cb3c(0xf5)](_0x348e9f=>_0x1b3f00(_0xf2cb3c(0xfb),_0x348e9f['id'],_0x3b4f82)),_0x41cd5a=_0x5076f5[_0xf2cb3c(0xf2)](_0xa1a373=>_0xf2cb3c(0x117)!=_0xa1a373[_0xf2cb3c(0xf3)])[_0xf2cb3c(0xf5)](_0x2d3cdd=>_0x2d3cdd[_0xf2cb3c(0x109)][_0xf2cb3c(0x113)](!0x0));let _0x45f65e=null;if(_0x59960c[_0xf2cb3c(0x10d)]){_0x45f65e=_0x59960c[0x0][_0xf2cb3c(0xf1)];for(let _0x96f81b=0x0;_0x96f81b<_0x59960c[_0xf2cb3c(0x10d)];_0x96f81b++)_0x3ed40e(_0x59960c[_0x96f81b]);}if(_0x41cd5a[_0xf2cb3c(0x10d)]){_0x45f65e||(_0x5076f5[0x0][_0xf2cb3c(0x116)]?_0x45f65e=_0x1b3f00(_0xf2cb3c(0xfb),_0x5076f5[0x0][_0xf2cb3c(0x116)],_0x3b4f82):(_0x45f65e=_0x41cd5a[_0xf2cb3c(0xf9)](),_0xd80301(_0x3b4f82,_0x45f65e)));for(let _0x3db921=0x0;_0x3db921<_0x41cd5a[_0xf2cb3c(0x10d)];_0x3db921++)_0x5ae271(_0x45f65e,_0x41cd5a[_0x3db921]),_0x45f65e=_0x41cd5a[_0x3db921];}}const _0x5915a5=_0xa45cd9(_0x3b4f82),_0x5057ae=_0x3f4ed8[_0xf2cb3c(0x118)](_0x282552,_0x5915a5,_0x313d49)[_0xf2cb3c(0x104)]();if(_0x4b2a83){const _0x4a7b71=_0x266900[_0xf2cb3c(0x107)][_0xf2cb3c(0x10f)][_0xf2cb3c(0xf8)][_0xf2cb3c(0x104)](_0x16420c),_0x3f4d2e={'document':_0x266900[_0xf2cb3c(0x107)][_0xf2cb3c(0x10f)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x3edbbd(_0x5057ae,_0x4a7b71,_0x3f4d2e)[_0xf2cb3c(0x112)];}return _0x5057ae;}export function fixMarkerOperationOldRange(_0x75ebb7,_0x20db4d){const _0x4021d7=_0x1fad;if(_0x4021d7(0x108)!=_0x20db4d[_0x4021d7(0xf3)])return;const _0x180439=_0x75ebb7[_0x4021d7(0x107)][_0x4021d7(0x106)][_0x4021d7(0x111)](_0x20db4d[_0x4021d7(0x114)]);_0x180439&&(_0x20db4d[_0x4021d7(0x101)]=_0x180439[_0x4021d7(0x103)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x93509c,_0x40cb20){const _0x2cb052=_0x3fcf,_0x29037e=_0x93509c();while(!![]){try{const _0x4d9d38=parseInt(_0x2cb052(0x13d))/0x1*(parseInt(_0x2cb052(0x10d))/0x2)+-parseInt(_0x2cb052(0x113))/0x3+-parseInt(_0x2cb052(0xfd))/0x4+-parseInt(_0x2cb052(0x150))/0x5*(-parseInt(_0x2cb052(0xf2))/0x6)+parseInt(_0x2cb052(0x153))/0x7+parseInt(_0x2cb052(0xf0))/0x8*(-parseInt(_0x2cb052(0x14b))/0x9)+parseInt(_0x2cb052(0x110))/0xa;if(_0x4d9d38===_0x40cb20)break;else _0x29037e['push'](_0x29037e['shift']());}catch(_0x4d028e){_0x29037e['push'](_0x29037e['shift']());}}}(_0x809e,0x772b6));import{findOne as _0x31f9e3,getAttribute as _0x4f926f,Document as _0x4220f6,serialize as _0x294655,parse as _0x5f1739}from'./htmlparser.js';import{fixElementSuggestionRange as _0x4601e3}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x2ad2e1,_DetachOperation as _0x30b97e,_removeFromModelNodeList as _0x4e87f9,_insertIntoModelNodeList as _0x3ab225}from'ckeditor5/src/engine.js';import{uid as _0x517f7c}from'ckeditor5/src/utils.js';function _0x3fcf(_0x217e0e,_0x3fd4c7){const _0x809ec6=_0x809e();return _0x3fcf=function(_0x3fcf98,_0x296151){_0x3fcf98=_0x3fcf98-0xe5;let _0x182bcf=_0x809ec6[_0x3fcf98];return _0x182bcf;},_0x3fcf(_0x217e0e,_0x3fd4c7);}export function getSuggestionPartsFromReply({editor:_0x4b15d5,changeGroups:_0x2d53ac,documentContextContent:_0x2695ec,showDiff:_0x245dbe,trimUnchanged:_0x294c4c=!0x0}){const _0x3f241b=_0x3fcf;return _0x2d53ac[_0x3f241b(0x101)](_0x23fa84=>{const _0x1c764b=_0x3f241b,_0x5b5fff=new _0x4220f6([]),_0x2e5d51=new _0x4220f6([]);for(const _0x23fcc5 of _0x23fa84[_0x1c764b(0x134)])if(_0x245dbe&&_0x1c764b(0x108)==_0x23fcc5[_0x1c764b(0x139)]||_0x2e5d51[_0x1c764b(0xe7)][_0x1c764b(0x157)](_0x23fcc5[_0x1c764b(0x12b)][_0x1c764b(0x122)](!0x0)),_0x1c764b(0x12c)!=_0x23fcc5[_0x1c764b(0x139)]&&(_0x245dbe||_0x1c764b(0x108)!=_0x23fcc5[_0x1c764b(0x139)])){const _0x9c557d=_0x31f9e3(_0x1df5eb=>_0x4f926f(_0x1df5eb,_0x1c764b(0x142))==_0x23fcc5['id'],_0x2695ec,!0x0);_0x9c557d&&_0x5b5fff[_0x1c764b(0xe7)][_0x1c764b(0x157)](_0x9c557d[_0x1c764b(0x122)](!0x0));}const {content:_0x46b9f5,hasChanges:_0x3534e2}=function(_0x5b361a,_0x1928a9,_0x50e238,_0x2621e6,_0x1eec50=!0x0){const _0x5b9fa9=_0x1c764b,_0x4b1257=_0x5b361a[_0x5b9fa9(0x100)][_0x5b9fa9(0x107)](_0x5b9fa9(0x13e)),_0xcd377c=_0x294655(_0x1928a9),_0x4e9d36=_0x294655(_0x50e238),_0x2fe2b2=_0x5b361a[_0x5b9fa9(0xea)][_0x5b9fa9(0x10f)](_0xcd377c,_0x5b9fa9(0x131)),_0x3be85=_0x5b361a[_0x5b9fa9(0x141)][_0x5b9fa9(0x10a)](_0x2fe2b2,0x0),_0x343f7c=_0x4b1257[_0x5b9fa9(0xf1)](_0xcd377c,_0x4e9d36,{'anchor':_0x3be85,'markDeletions':_0x2621e6}),_0x3f5b68=_0x343f7c[_0x5b9fa9(0xeb)]();if(0x0==_0x3f5b68[_0x5b9fa9(0x127)])return{'content':_0x1928a9[_0x5b9fa9(0x122)](!0x0),'hasChanges':!0x1};_0x2621e6?function(_0x392e6b,_0x1e59a,_0x82fbb7){const _0x1a7daa=_0x5b9fa9;if(0x0==_0x392e6b[_0x1a7daa(0x127)])return;const _0x18f282=_0x82fbb7[_0x1a7daa(0x100)][_0x1a7daa(0x107)](_0x1a7daa(0x13e)),_0x6c7607=_0x82fbb7[_0x1a7daa(0x100)][_0x1a7daa(0x107)](_0x1a7daa(0x148));_0x82fbb7[_0x1a7daa(0x141)][_0x1a7daa(0x125)](_0x51478e=>{const _0x4a1cce=_0x1a7daa,_0x13b9a1=new Set();for(let _0x5034c9=0x0;_0x5034c9<_0x392e6b[_0x4a1cce(0x127)];_0x5034c9++){const _0x105440=_0x392e6b[_0x5034c9];if(_0x105440[_0x4a1cce(0x129)]=null,_0x105440[_0x4a1cce(0x116)]=!0x1,_0x18f282[_0x4a1cce(0x136)](_0x105440)){const _0x3dbd49=_0x4601e3(_0x105440[_0x4a1cce(0x12a)],_0x82fbb7[_0x4a1cce(0x141)]),_0x4d65dd=_0x4a1cce(0xf7)+_0x517f7c()+_0x4a1cce(0x11a);_0x1e59a[_0x4a1cce(0x14e)][_0x4a1cce(0x128)](_0x4d65dd,_0x3dbd49);}else switch(_0x105440[_0x4a1cce(0x139)]){case _0x4a1cce(0x147):{if(_0x105440[_0x4a1cce(0xef)]==_0x105440[_0x4a1cce(0x152)])break;_0x51478e[_0x4a1cce(0xe6)][_0x4a1cce(0x14d)](_0x105440),_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x114)](_0x105440);const _0x18918d=_0x4a1cce(0xf5),_0x281a45=_0x105440[_0x4a1cce(0xee)],_0x5311ea=_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x11c)](_0x281a45,_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x10a)](_0x281a45[_0x4a1cce(0x109)],_0x4a1cce(0x105))),_0x13f23a=_0x4a1cce(0x132)+_0x18918d+':'+_0x517f7c()+_0x4a1cce(0x11a);_0x1e59a[_0x4a1cce(0x14e)][_0x4a1cce(0x128)](_0x13f23a,_0x5311ea);break;}case _0x4a1cce(0x133):case _0x4a1cce(0x156):case _0x4a1cce(0x124):{if(_0x105440[_0x4a1cce(0x11b)]==_0x105440[_0x4a1cce(0x12f)])break;_0x51478e[_0x4a1cce(0xe6)][_0x4a1cce(0x14d)](_0x105440),_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x114)](_0x105440);const _0x5e0ef6=_0x105440[_0x4a1cce(0x121)];if(!_0x6c7607[_0x4a1cce(0x158)](_0x5e0ef6))break;const _0x3c4401=_0x4601e3(_0x105440[_0x4a1cce(0x145)],_0x82fbb7[_0x4a1cce(0x141)]),_0x4a515e=_0x4a1cce(0x132)+_0x5e0ef6+':'+_0x517f7c()+_0x4a1cce(0x11a);_0x1e59a[_0x4a1cce(0x14e)][_0x4a1cce(0x128)](_0x4a515e,_0x3c4401);break;}case _0x4a1cce(0x102):{_0x51478e[_0x4a1cce(0xe6)][_0x4a1cce(0x14d)](_0x105440),_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x114)](_0x105440);if(_0x392e6b[_0x5034c9+0x1]&&_0x4a1cce(0x13f)==_0x392e6b[_0x5034c9+0x1][_0x4a1cce(0x139)]){no(_0x1e59a,_0x105440);break;}const _0x3b787f=_0x105440[_0x4a1cce(0xee)],_0x2443fd=_0x105440[_0x4a1cce(0x106)],_0x1bcbe1=_0x4601e3(_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x11c)](_0x3b787f,_0x3b787f[_0x4a1cce(0x151)](_0x2443fd)),_0x82fbb7[_0x4a1cce(0x141)]),_0x3c433b=_0x4a1cce(0x13b)+_0x517f7c()+_0x4a1cce(0x11a);_0x1e59a[_0x4a1cce(0x14e)][_0x4a1cce(0x128)](_0x3c433b,_0x1bcbe1);break;}case _0x4a1cce(0xfa):{_0x51478e[_0x4a1cce(0xe6)][_0x4a1cce(0x14d)](_0x105440),_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x114)](_0x105440);const _0x1303ab=_0x105440[_0x4a1cce(0x155)],_0x405ec7=_0x105440[_0x4a1cce(0xf3)],_0x631a1d=_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x11c)](_0x1303ab,_0x405ec7),_0x37bbd8=_0x4a1cce(0x13b)+_0x517f7c()+_0x4a1cce(0x11a);_0x1e59a[_0x4a1cce(0x14e)][_0x4a1cce(0x128)](_0x37bbd8,_0x631a1d);break;}case _0x4a1cce(0x13f):{_0x51478e[_0x4a1cce(0xe6)][_0x4a1cce(0x14d)](_0x105440),_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x114)](_0x105440),_0x392e6b[_0x5034c9-0x1]&&_0x4a1cce(0x102)==_0x392e6b[_0x5034c9-0x1][_0x4a1cce(0x139)]&&no(_0x1e59a,_0x105440);const _0x4b1e51=_0x105440[_0x4a1cce(0x10c)](),_0x3cb102=_0x105440[_0x4a1cce(0x106)];for(let _0x101d02=0x0;_0x101d02<_0x3cb102;_0x101d02++){const _0x145ece=_0x4b1e51[_0x4a1cce(0x151)](_0x101d02)[_0x4a1cce(0x109)];_0x13b9a1[_0x4a1cce(0xe5)](_0x145ece);}break;}case _0x4a1cce(0x135):{const _0x2988fa=_0x105440[_0x4a1cce(0xf8)],_0x4d32ea=_0x105440[_0x4a1cce(0x106)],_0x6a9a44=new _0x30b97e(_0x2988fa,_0x4d32ea);_0x51478e[_0x4a1cce(0xe6)][_0x4a1cce(0x14d)](_0x6a9a44),_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x114)](_0x6a9a44);break;}}}for(const _0x250d11 of _0x13b9a1){const _0xbe8bdf=_0x82fbb7[_0x4a1cce(0x141)][_0x4a1cce(0x159)](_0x250d11),_0xe0672a=_0x4a1cce(0x14a)+_0x517f7c()+_0x4a1cce(0x11a);_0x1e59a[_0x4a1cce(0x14e)][_0x4a1cce(0x128)](_0xe0672a,_0x4601e3(_0xbe8bdf,_0x82fbb7[_0x4a1cce(0x141)]));}});}(_0x3f5b68,_0x2fe2b2,_0x5b361a):_0x5b361a[_0x5b9fa9(0x141)][_0x5b9fa9(0x125)](_0x114dcd=>{const _0x5e13a5=_0x5b9fa9;for(const _0x22e288 of _0x3f5b68)if(_0x5e13a5(0x135)==_0x22e288[_0x5e13a5(0x139)]){const _0x474c4f=_0x22e288[_0x5e13a5(0xf8)],_0x5afbfa=_0x22e288[_0x5e13a5(0x106)],_0x3661ce=new _0x30b97e(_0x474c4f,_0x5afbfa);_0x114dcd[_0x5e13a5(0xe6)][_0x5e13a5(0x14d)](_0x3661ce),_0x5b361a[_0x5e13a5(0x141)][_0x5e13a5(0x114)](_0x3661ce);}else{if(_0x5e13a5(0x11d)==_0x22e288[_0x5e13a5(0x139)]){const _0x12042d=_0x22e288[_0x5e13a5(0xf9)],_0x529202=_0x22e288[_0x5e13a5(0x12a)];null!==_0x529202?_0x2fe2b2[_0x5e13a5(0x14e)][_0x5e13a5(0x128)](_0x12042d,_0x529202):_0x2fe2b2[_0x5e13a5(0x14e)][_0x5e13a5(0xec)](_0x12042d);}else _0x22e288[_0x5e13a5(0x129)]=null,_0x22e288[_0x5e13a5(0x116)]=!0x1,_0x114dcd[_0x5e13a5(0xe6)][_0x5e13a5(0x14d)](_0x22e288),_0x5b361a[_0x5e13a5(0x141)][_0x5e13a5(0x114)](_0x22e288);}});if(_0x1eec50){const _0x5d4f79=getMinimalSelection(_0x5b361a,_0x3f5b68,_0x2fe2b2);expandSelectionWithContext(_0x5b361a[_0x5b9fa9(0x141)],_0x5d4f79),function(_0x47c4c5,_0x3a1451){const _0x4414b5=_0x5b9fa9,_0x567aab=_0x3a1451[_0x4414b5(0x12d)]()[_0x4414b5(0x123)];let _0x4f3ebe=_0x3a1451[_0x4414b5(0x12d)]()[_0x4414b5(0x105)];const _0x3bc675=_0x567aab[_0x4414b5(0x103)];(_0x4f3ebe[_0x4414b5(0x120)]||_0x4f3ebe[_0x4414b5(0x109)]&&_0x4f3ebe[_0x4414b5(0x109)]['is'](_0x4414b5(0x140)))&&(_0x3ab225(_0x4f3ebe,_0x4414b5(0x126)),_0x4f3ebe=_0x4f3ebe[_0x4414b5(0x151)](0x3)),(_0x567aab[_0x4414b5(0x120)]||_0x567aab[_0x4414b5(0x146)]&&_0x567aab[_0x4414b5(0x146)]['is'](_0x4414b5(0x140)))&&(_0x3ab225(_0x567aab,_0x4414b5(0x126)),function(_0x84abb0,_0x900fac,_0x11b549){const _0x22d1bc=_0x4414b5;for(let [_0x406874,_0x259404]of _0x84abb0[_0x22d1bc(0x14e)]){const _0xf63cf0=_0x259404[_0x22d1bc(0x115)](_0x900fac,_0x11b549,!0x1);_0x259404=_0xf63cf0[0x0],_0x84abb0[_0x22d1bc(0x14e)][_0x22d1bc(0x128)](_0x406874,_0x259404);}}(_0x3bc675,_0x567aab,0x3),_0x567aab[_0x4414b5(0xfe)]==_0x4f3ebe[_0x4414b5(0xfe)]&&(_0x4f3ebe=_0x4f3ebe[_0x4414b5(0x151)](0x3)));const _0x93885f=_0x47c4c5[_0x4414b5(0x11c)](_0x47c4c5[_0x4414b5(0x10a)](_0x3bc675,0x0),_0x567aab),_0x5a7146=_0x47c4c5[_0x4414b5(0x11c)](_0x4f3ebe,_0x47c4c5[_0x4414b5(0x10a)](_0x3bc675,_0x4414b5(0x105))),_0x38af17=[..._0x93885f[_0x4414b5(0x13c)](),..._0x5a7146[_0x4414b5(0x13c)]()];_0x38af17[_0x4414b5(0x112)]();for(const _0xb8a02d of _0x38af17)_0x4e87f9(_0xb8a02d),_transformMarkersByDeletion(_0x3bc675,_0xb8a02d);}(_0x5b361a[_0x5b9fa9(0x141)],_0x5d4f79);}const _0x27b6e1=_0x5b361a[_0x5b9fa9(0xea)][_0x5b9fa9(0x12e)](_0x2fe2b2,{'showSuggestionHighlights':!0x0});return{'content':_0x5f1739(_0x27b6e1),'hasChanges':!0x0};}(_0x4b15d5,_0x5b5fff,_0x2e5d51,_0x245dbe,_0x294c4c);return{'type':_0x23fa84[_0x1c764b(0x134)][0x0][_0x1c764b(0x139)],'index':_0x23fa84[_0x1c764b(0x10e)],'content':_0x46b9f5,'hasChanges':_0x3534e2};});}function no(_0x4baef9,_0x2af5c4){const _0x287b6d=_0x3fcf;for(const [_0x3f42fd,_0x40a286]of _0x4baef9[_0x287b6d(0x14e)]){const _0x39722a=_0x2ad2e1[_0x287b6d(0x14f)](_0x40a286[_0x287b6d(0xed)](_0x2af5c4));_0x4baef9[_0x287b6d(0x14e)][_0x287b6d(0x128)](_0x3f42fd,_0x39722a);}}export function getMinimalSelection(_0x1d0704,_0x17799d,_0x131a0c){const _0x32d423=_0x3fcf,_0x34b6f4=_0x1d0704[_0x32d423(0x100)][_0x32d423(0x107)](_0x32d423(0x13e));let _0x5195ba=_0x1d0704[_0x32d423(0x141)][_0x32d423(0x10a)](_0x131a0c,Number[_0x32d423(0x11f)]),_0x44d46f=_0x1d0704[_0x32d423(0x141)][_0x32d423(0x10a)](_0x131a0c,0x0);for(const _0xd5a7fd of _0x17799d){let _0x1426a8,_0x4242c5;if(_0x34b6f4[_0x32d423(0x136)](_0xd5a7fd))_0x1426a8=_0xd5a7fd[_0x32d423(0x12a)][_0x32d423(0x123)],_0x4242c5=_0xd5a7fd[_0x32d423(0x12a)][_0x32d423(0x105)];else switch(_0x5195ba=_0x5195ba[_0x32d423(0xed)](_0xd5a7fd),_0x44d46f=_0x44d46f[_0x32d423(0xed)](_0xd5a7fd),_0xd5a7fd[_0x32d423(0x139)]){case _0x32d423(0x147):_0x1426a8=_0xd5a7fd[_0x32d423(0xee)],_0x4242c5=_0x1426a8[_0x32d423(0x151)](0x1);break;case _0x32d423(0x133):case _0x32d423(0x156):case _0x32d423(0x124):_0x1426a8=_0xd5a7fd[_0x32d423(0x145)][_0x32d423(0x123)],_0x4242c5=_0xd5a7fd[_0x32d423(0x145)][_0x32d423(0x105)];break;case _0x32d423(0x102):_0x1426a8=_0xd5a7fd[_0x32d423(0xee)],_0x4242c5=_0x1426a8[_0x32d423(0x151)](_0xd5a7fd[_0x32d423(0x106)]);break;case _0x32d423(0xfa):_0x1426a8=_0xd5a7fd[_0x32d423(0x155)],_0x4242c5=_0xd5a7fd[_0x32d423(0xf3)];break;case _0x32d423(0x137):{const _0x46bc9f=_0xd5a7fd[_0x32d423(0x117)][_0x32d423(0xe8)][_0x32d423(0x13a)](0x0,-0x1);_0x1426a8=_0x1d0704[_0x32d423(0x141)][_0x32d423(0x149)](_0x131a0c,_0x46bc9f),_0x4242c5=_0x1426a8[_0x32d423(0x151)](0x1);break;}case _0x32d423(0x135):{const _0x873395=_0xd5a7fd[_0x32d423(0x106)],_0x1b28be=_0xd5a7fd[_0x32d423(0xf8)][_0x32d423(0x115)](_0xd5a7fd[_0x32d423(0x117)],_0x873395),_0x4c7f72=_0xd5a7fd[_0x32d423(0x10c)]();_0x32d423(0x135)==_0xd5a7fd[_0x32d423(0x139)]?(_0x1426a8=_0x1b28be,_0x4242c5=_0x1b28be):(_0x1426a8=_0x4c7f72,_0x4242c5=_0x4c7f72[_0x32d423(0x151)](_0x873395));break;}}_0x1426a8&&_0x1426a8[_0x32d423(0x119)](_0x5195ba)&&(_0x5195ba=_0x1426a8[_0x32d423(0x104)](),_0x5195ba[_0x32d423(0x144)]=_0x32d423(0xfb)),_0x4242c5&&_0x4242c5[_0x32d423(0x138)](_0x44d46f)&&(_0x44d46f=_0x4242c5[_0x32d423(0x104)](),_0x44d46f[_0x32d423(0x144)]=_0x32d423(0xfb));}return _0x1d0704[_0x32d423(0x141)][_0x32d423(0x11e)](_0x1d0704[_0x32d423(0x141)][_0x32d423(0x11c)](_0x5195ba,_0x44d46f));}export function expandSelectionWithContext(_0x3e823c,_0x20562f){const _0x45ffd=_0x3fcf;ro(_0x3e823c,_0x20562f,_0x45ffd(0xff));const _0x4452b9=_0x20562f[_0x45ffd(0x12d)]();_0x20562f[_0x45ffd(0x118)]([]),_0x20562f[_0x45ffd(0x118)](_0x4452b9,{'backward':!0x0}),ro(_0x3e823c,_0x20562f,_0x45ffd(0x14c));}function ro(_0x283655,_0x31fdbe,_0x4060a2){const _0x1cb33b=_0x3fcf;let _0x5decd0=0x14;for(;_0x5decd0;){_0x283655[_0x1cb33b(0x154)](_0x31fdbe,{'unit':_0x1cb33b(0xe9),'direction':_0x4060a2}),_0x5decd0--;const _0x4e59d2=_0x31fdbe[_0x1cb33b(0xf4)][_0x1cb33b(0xff)==_0x4060a2?_0x1cb33b(0x146):_0x1cb33b(0x109)];if(_0x4e59d2&&_0x4e59d2['is'](_0x1cb33b(0x143))&&_0x283655[_0x1cb33b(0x111)][_0x1cb33b(0xfc)](_0x4e59d2)&&_0x283655[_0x1cb33b(0x111)][_0x1cb33b(0xf6)](_0x4e59d2))break;}}export function _transformMarkersByDeletion(_0x55a1ba,_0x28b85c){const _0x3c6c60=_0x3fcf;for(const [_0x3a92f3,_0x3b9f6d]of _0x55a1ba[_0x3c6c60(0x14e)]){const _0x200fd5=_0x3b9f6d[_0x3c6c60(0x130)](_0x28b85c[_0x3c6c60(0x123)],_0x28b85c[_0x3c6c60(0x105)][_0x3c6c60(0x10b)]-_0x28b85c[_0x3c6c60(0x123)][_0x3c6c60(0x10b)]);null!=_0x200fd5?_0x55a1ba[_0x3c6c60(0x14e)][_0x3c6c60(0x128)](_0x3a92f3,_0x200fd5):_0x55a1ba[_0x3c6c60(0x14e)][_0x3c6c60(0xec)](_0x3a92f3);}}function _0x809e(){const _0x341464=['node','new','getFirstRange','stringify','newValue','_getTransformedByDeletion','$root','suggestion:attribute:','addAttribute','changes','remove','isMarkedRemoveOperation','merge','isAfter','type','slice','suggestion:insertion:','getMinimalFlatRanges','2UuLkAF','DocumentCompare','move','$text','model','data-id','element','stickiness','range','nodeBefore','rename','SuggestionsConversion','createPositionFromPath','suggestion:formatBlock:$fakeWrap:','522810sJqHCl','backward','addOperation','markers','_createFromRanges','14335HsrfId','getShiftedBy','newName','5876143AawWIB','modifySelection','splitPosition','removeAttribute','push','isRegisteredAttribute','createRangeOn','add','batch','children','path','word','data','getOperations','delete','getTransformedByOperation','position','oldName','8byLsNX','getDiff','870AwudNI','moveTargetPosition','focus','$elementName','isObject','suggestion:deletion:','sourcePosition','name','split','toNone','isBlock','3641852dyrRHo','parent','forward','plugins','map','insert','root','clone','end','howMany','get','removed','nodeAfter','createPositionAt','offset','getMovedRangeStart','166086rdpbHH','index','parse','5321970RErxym','schema','reverse','1490328nafJzP','applyOperation','_getTransformedByInsertion','isDocumentOperation','targetPosition','setTo','isBefore',':$aiSuggestion','oldValue','createRange','marker','createSelection','POSITIVE_INFINITY','textNode','key','cloneNode','start','changeAttribute','change','...','length','set','baseVersion','newRange'];_0x809e=function(){return _0x341464;};return _0x809e();}
|
|
23
|
+
(function(_0x59e1cf,_0x52eb1){const _0x526fde=_0x22e7,_0x1862a7=_0x59e1cf();while(!![]){try{const _0x907614=-parseInt(_0x526fde(0xf0))/0x1*(parseInt(_0x526fde(0x101))/0x2)+-parseInt(_0x526fde(0xef))/0x3*(parseInt(_0x526fde(0x10a))/0x4)+-parseInt(_0x526fde(0xce))/0x5*(-parseInt(_0x526fde(0xaa))/0x6)+parseInt(_0x526fde(0x103))/0x7+parseInt(_0x526fde(0xea))/0x8*(-parseInt(_0x526fde(0xfe))/0x9)+parseInt(_0x526fde(0xda))/0xa*(-parseInt(_0x526fde(0xd1))/0xb)+parseInt(_0x526fde(0xe3))/0xc;if(_0x907614===_0x52eb1)break;else _0x1862a7['push'](_0x1862a7['shift']());}catch(_0x3df32e){_0x1862a7['push'](_0x1862a7['shift']());}}}(_0x3cd9,0xcc922));import{findOne as _0x163695,getAttribute as _0x8f5d21,Document as _0x39f841,serialize as _0x172479,parse as _0x5bda46}from'./htmlparser.js';function _0x3cd9(){const _0x97e205=['insert','changes','length','start','nodeAfter','children','3433976fyjqaV','push','word','DocumentCompare','remove','17001aCskve','2UYwrhy','isAfter','isRegisteredAttribute','removed','merge','position','addAttribute','range','getMovedRangeStart','...','splitPosition','sourcePosition','map','marker','27zMtlZL','slice','key','1078090JaBHSX','_createFromRanges','578683YmBKRj','createSelection','type','offset','end','delete','parse','144PQSzSw','createPositionAt','batch','toNone','SuggestionsConversion','suggestion:attribute:','name','index','_getTransformedByDeletion','root','focus','set','howMany','rename','split','element','clone','POSITIVE_INFINITY','change','addOperation','moveTargetPosition','get','isObject','1233126PjUits','cloneNode','createPositionFromPath','$elementName',':$aiSuggestion','getMinimalFlatRanges','model','add','data-id','suggestion:formatBlock:$fakeWrap:','createRange','applyOperation','isMarkedRemoveOperation','suggestion:deletion:','path','createRangeOn','stickiness','modifySelection','backward','suggestion:insertion:','getOperations','getTransformedByOperation','nodeBefore','baseVersion','_getTransformedByInsertion','getShiftedBy','oldName','targetPosition','parent','isBefore','getDiff','setTo','new','isDocumentOperation','textNode','$root','30KyuRih','forward','newValue','44qvNPXN','newName','node','schema','oldValue','plugins','reverse','markers','move','731040TTyakD','data','getFirstRange','newRange','$text','removeAttribute','stringify','changeAttribute','isBlock','28612632iLBFYN'];_0x3cd9=function(){return _0x97e205;};return _0x3cd9();}import{fixElementSuggestionRange as _0x21b7e4}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x3d7b94,_DetachOperation as _0x278f04,_removeFromModelNodeList as _0xb46660,_insertIntoModelNodeList as _0x26924a}from'ckeditor5/src/engine.js';import{uid as _0x492a96}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0xb12fa7,changeGroups:_0x2384ab,documentContextContent:_0x163c8e,showDiff:_0x53d315,trimUnchanged:_0x10cf73=!0x0}){const _0x425e49=_0x22e7;return _0x2384ab[_0x425e49(0xfc)](_0x3910ac=>{const _0x2ede13=_0x425e49,_0x4dfbb2=new _0x39f841([]),_0x450661=new _0x39f841([]);for(const _0x50fde3 of _0x3910ac[_0x2ede13(0xe5)])if(_0x53d315&&_0x2ede13(0xf3)==_0x50fde3[_0x2ede13(0x105)]||_0x450661[_0x2ede13(0xe9)][_0x2ede13(0xeb)](_0x50fde3[_0x2ede13(0xd3)][_0x2ede13(0xab)](!0x0)),_0x2ede13(0xca)!=_0x50fde3[_0x2ede13(0x105)]&&(_0x53d315||_0x2ede13(0xf3)!=_0x50fde3[_0x2ede13(0x105)])){const _0x23f0cc=_0x163695(_0x537af2=>_0x8f5d21(_0x537af2,_0x2ede13(0xb2))==_0x50fde3['id'],_0x163c8e,!0x0);_0x23f0cc&&_0x4dfbb2[_0x2ede13(0xe9)][_0x2ede13(0xeb)](_0x23f0cc[_0x2ede13(0xab)](!0x0));}const {content:_0x3203ea,hasChanges:_0x367dbe}=function(_0x4d7083,_0x552ae8,_0x3976e8,_0x1926a2,_0x5adc08=!0x0){const _0x4d2ff6=_0x2ede13,_0x4b3eb1=_0x4d7083[_0x4d2ff6(0xd6)][_0x4d2ff6(0xa8)](_0x4d2ff6(0xed)),_0x2603a3=_0x172479(_0x552ae8),_0x52cbdf=_0x172479(_0x3976e8),_0x3b9847=_0x4d7083[_0x4d2ff6(0xdb)][_0x4d2ff6(0x109)](_0x2603a3,_0x4d2ff6(0xcd)),_0x35720f=_0x4d7083[_0x4d2ff6(0xb0)][_0x4d2ff6(0x10b)](_0x3b9847,0x0),_0x5c8eab=_0x4b3eb1[_0x4d2ff6(0xc8)](_0x2603a3,_0x52cbdf,{'anchor':_0x35720f,'markDeletions':_0x1926a2}),_0x4595df=_0x5c8eab[_0x4d2ff6(0xbe)]();if(0x0==_0x4595df[_0x4d2ff6(0xe6)])return{'content':_0x552ae8[_0x4d2ff6(0xab)](!0x0),'hasChanges':!0x1};_0x1926a2?function(_0x35cd22,_0x49d013,_0x1caff2){const _0x4a4df8=_0x4d2ff6;if(0x0==_0x35cd22[_0x4a4df8(0xe6)])return;const _0x52e729=_0x1caff2[_0x4a4df8(0xd6)][_0x4a4df8(0xa8)](_0x4a4df8(0xed)),_0x1f48e0=_0x1caff2[_0x4a4df8(0xd6)][_0x4a4df8(0xa8)](_0x4a4df8(0x10e));_0x1caff2[_0x4a4df8(0xb0)][_0x4a4df8(0xa5)](_0x58b5fb=>{const _0x4cdd0b=_0x4a4df8,_0x1f684c=new Set();for(let _0x1724b8=0x0;_0x1724b8<_0x35cd22[_0x4cdd0b(0xe6)];_0x1724b8++){const _0x48ec69=_0x35cd22[_0x1724b8];if(_0x48ec69[_0x4cdd0b(0xc1)]=null,_0x48ec69[_0x4cdd0b(0xcb)]=!0x1,_0x52e729[_0x4cdd0b(0xb6)](_0x48ec69)){const _0x1ace97=_0x21b7e4(_0x48ec69[_0x4cdd0b(0xdd)],_0x1caff2[_0x4cdd0b(0xb0)]),_0x112253=_0x4cdd0b(0xb7)+_0x492a96()+_0x4cdd0b(0xae);_0x49d013[_0x4cdd0b(0xd8)][_0x4cdd0b(0x9e)](_0x112253,_0x1ace97);}else switch(_0x48ec69[_0x4cdd0b(0x105)]){case _0x4cdd0b(0xa0):{if(_0x48ec69[_0x4cdd0b(0xc4)]==_0x48ec69[_0x4cdd0b(0xd2)])break;_0x58b5fb[_0x4cdd0b(0x10c)][_0x4cdd0b(0xa6)](_0x48ec69),_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb5)](_0x48ec69);const _0x20b985=_0x4cdd0b(0xad),_0x190818=_0x48ec69[_0x4cdd0b(0xf5)],_0x35f632=_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb4)](_0x190818,_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0x10b)](_0x190818[_0x4cdd0b(0xe8)],_0x4cdd0b(0x107))),_0x23d653=_0x4cdd0b(0x10f)+_0x20b985+':'+_0x492a96()+_0x4cdd0b(0xae);_0x49d013[_0x4cdd0b(0xd8)][_0x4cdd0b(0x9e)](_0x23d653,_0x35f632);break;}case _0x4cdd0b(0xf6):case _0x4cdd0b(0xdf):case _0x4cdd0b(0xe1):{if(_0x48ec69[_0x4cdd0b(0xd5)]==_0x48ec69[_0x4cdd0b(0xd0)])break;_0x58b5fb[_0x4cdd0b(0x10c)][_0x4cdd0b(0xa6)](_0x48ec69),_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb5)](_0x48ec69);const _0x3c7a72=_0x48ec69[_0x4cdd0b(0x100)];if(!_0x1f48e0[_0x4cdd0b(0xf2)](_0x3c7a72))break;const _0x1dad49=_0x21b7e4(_0x48ec69[_0x4cdd0b(0xf7)],_0x1caff2[_0x4cdd0b(0xb0)]),_0x18b2cd=_0x4cdd0b(0x10f)+_0x3c7a72+':'+_0x492a96()+_0x4cdd0b(0xae);_0x49d013[_0x4cdd0b(0xd8)][_0x4cdd0b(0x9e)](_0x18b2cd,_0x1dad49);break;}case _0x4cdd0b(0xe4):{_0x58b5fb[_0x4cdd0b(0x10c)][_0x4cdd0b(0xa6)](_0x48ec69),_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb5)](_0x48ec69);if(_0x35cd22[_0x1724b8+0x1]&&_0x4cdd0b(0xd9)==_0x35cd22[_0x1724b8+0x1][_0x4cdd0b(0x105)]){no(_0x49d013,_0x48ec69);break;}const _0x36fcf4=_0x48ec69[_0x4cdd0b(0xf5)],_0x538e54=_0x48ec69[_0x4cdd0b(0x9f)],_0x21b4b2=_0x21b7e4(_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb4)](_0x36fcf4,_0x36fcf4[_0x4cdd0b(0xc3)](_0x538e54)),_0x1caff2[_0x4cdd0b(0xb0)]),_0x10c2ec=_0x4cdd0b(0xbd)+_0x492a96()+_0x4cdd0b(0xae);_0x49d013[_0x4cdd0b(0xd8)][_0x4cdd0b(0x9e)](_0x10c2ec,_0x21b4b2);break;}case _0x4cdd0b(0xa1):{_0x58b5fb[_0x4cdd0b(0x10c)][_0x4cdd0b(0xa6)](_0x48ec69),_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb5)](_0x48ec69);const _0x20f542=_0x48ec69[_0x4cdd0b(0xfa)],_0x4392a6=_0x48ec69[_0x4cdd0b(0xa7)],_0x96a94d=_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb4)](_0x20f542,_0x4392a6),_0x4c5053=_0x4cdd0b(0xbd)+_0x492a96()+_0x4cdd0b(0xae);_0x49d013[_0x4cdd0b(0xd8)][_0x4cdd0b(0x9e)](_0x4c5053,_0x96a94d);break;}case _0x4cdd0b(0xd9):{_0x58b5fb[_0x4cdd0b(0x10c)][_0x4cdd0b(0xa6)](_0x48ec69),_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb5)](_0x48ec69),_0x35cd22[_0x1724b8-0x1]&&_0x4cdd0b(0xe4)==_0x35cd22[_0x1724b8-0x1][_0x4cdd0b(0x105)]&&no(_0x49d013,_0x48ec69);const _0x2944d2=_0x48ec69[_0x4cdd0b(0xf8)](),_0x334ae9=_0x48ec69[_0x4cdd0b(0x9f)];for(let _0x483453=0x0;_0x483453<_0x334ae9;_0x483453++){const _0x358233=_0x2944d2[_0x4cdd0b(0xc3)](_0x483453)[_0x4cdd0b(0xe8)];_0x1f684c[_0x4cdd0b(0xb1)](_0x358233);}break;}case _0x4cdd0b(0xee):{const _0xf0268a=_0x48ec69[_0x4cdd0b(0xfb)],_0x3e5690=_0x48ec69[_0x4cdd0b(0x9f)],_0x393a32=new _0x278f04(_0xf0268a,_0x3e5690);_0x58b5fb[_0x4cdd0b(0x10c)][_0x4cdd0b(0xa6)](_0x393a32),_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb5)](_0x393a32);break;}}}for(const _0x35dbda of _0x1f684c){const _0x5d681a=_0x1caff2[_0x4cdd0b(0xb0)][_0x4cdd0b(0xb9)](_0x35dbda),_0x55edab=_0x4cdd0b(0xb3)+_0x492a96()+_0x4cdd0b(0xae);_0x49d013[_0x4cdd0b(0xd8)][_0x4cdd0b(0x9e)](_0x55edab,_0x21b7e4(_0x5d681a,_0x1caff2[_0x4cdd0b(0xb0)]));}});}(_0x4595df,_0x3b9847,_0x4d7083):_0x4d7083[_0x4d2ff6(0xb0)][_0x4d2ff6(0xa5)](_0x224d98=>{const _0x36d0c7=_0x4d2ff6;for(const _0x2de33f of _0x4595df)if(_0x36d0c7(0xee)==_0x2de33f[_0x36d0c7(0x105)]){const _0x5af9ac=_0x2de33f[_0x36d0c7(0xfb)],_0x53fe03=_0x2de33f[_0x36d0c7(0x9f)],_0x4068c0=new _0x278f04(_0x5af9ac,_0x53fe03);_0x224d98[_0x36d0c7(0x10c)][_0x36d0c7(0xa6)](_0x4068c0),_0x4d7083[_0x36d0c7(0xb0)][_0x36d0c7(0xb5)](_0x4068c0);}else{if(_0x36d0c7(0xfd)==_0x2de33f[_0x36d0c7(0x105)]){const _0x17aa81=_0x2de33f[_0x36d0c7(0x110)],_0x35b4bc=_0x2de33f[_0x36d0c7(0xdd)];null!==_0x35b4bc?_0x3b9847[_0x36d0c7(0xd8)][_0x36d0c7(0x9e)](_0x17aa81,_0x35b4bc):_0x3b9847[_0x36d0c7(0xd8)][_0x36d0c7(0x108)](_0x17aa81);}else _0x2de33f[_0x36d0c7(0xc1)]=null,_0x2de33f[_0x36d0c7(0xcb)]=!0x1,_0x224d98[_0x36d0c7(0x10c)][_0x36d0c7(0xa6)](_0x2de33f),_0x4d7083[_0x36d0c7(0xb0)][_0x36d0c7(0xb5)](_0x2de33f);}});if(_0x5adc08){const _0x7c2a68=getMinimalSelection(_0x4d7083,_0x4595df,_0x3b9847);expandSelectionWithContext(_0x4d7083[_0x4d2ff6(0xb0)],_0x7c2a68),function(_0x23a256,_0x48b9de){const _0x1f9ae8=_0x4d2ff6,_0x39c6be=_0x48b9de[_0x1f9ae8(0xdc)]()[_0x1f9ae8(0xe7)];let _0xbe52b2=_0x48b9de[_0x1f9ae8(0xdc)]()[_0x1f9ae8(0x107)];const _0x27e16f=_0x39c6be[_0x1f9ae8(0x113)];(_0xbe52b2[_0x1f9ae8(0xcc)]||_0xbe52b2[_0x1f9ae8(0xe8)]&&_0xbe52b2[_0x1f9ae8(0xe8)]['is'](_0x1f9ae8(0xde)))&&(_0x26924a(_0xbe52b2,_0x1f9ae8(0xf9)),_0xbe52b2=_0xbe52b2[_0x1f9ae8(0xc3)](0x3)),(_0x39c6be[_0x1f9ae8(0xcc)]||_0x39c6be[_0x1f9ae8(0xc0)]&&_0x39c6be[_0x1f9ae8(0xc0)]['is'](_0x1f9ae8(0xde)))&&(_0x26924a(_0x39c6be,_0x1f9ae8(0xf9)),function(_0x5b2459,_0x5795f0,_0x440400){const _0x4e5e29=_0x1f9ae8;for(let [_0xabd5db,_0xf5313]of _0x5b2459[_0x4e5e29(0xd8)]){const _0x1dcb50=_0xf5313[_0x4e5e29(0xc2)](_0x5795f0,_0x440400,!0x1);_0xf5313=_0x1dcb50[0x0],_0x5b2459[_0x4e5e29(0xd8)][_0x4e5e29(0x9e)](_0xabd5db,_0xf5313);}}(_0x27e16f,_0x39c6be,0x3),_0x39c6be[_0x1f9ae8(0xc6)]==_0xbe52b2[_0x1f9ae8(0xc6)]&&(_0xbe52b2=_0xbe52b2[_0x1f9ae8(0xc3)](0x3)));const _0x292f6c=_0x23a256[_0x1f9ae8(0xb4)](_0x23a256[_0x1f9ae8(0x10b)](_0x27e16f,0x0),_0x39c6be),_0x4ec6d0=_0x23a256[_0x1f9ae8(0xb4)](_0xbe52b2,_0x23a256[_0x1f9ae8(0x10b)](_0x27e16f,_0x1f9ae8(0x107))),_0x3159f3=[..._0x292f6c[_0x1f9ae8(0xaf)](),..._0x4ec6d0[_0x1f9ae8(0xaf)]()];_0x3159f3[_0x1f9ae8(0xd7)]();for(const _0x50299f of _0x3159f3)_0xb46660(_0x50299f),_transformMarkersByDeletion(_0x27e16f,_0x50299f);}(_0x4d7083[_0x4d2ff6(0xb0)],_0x7c2a68);}const _0x2ec30c=_0x4d7083[_0x4d2ff6(0xdb)][_0x4d2ff6(0xe0)](_0x3b9847,{'showSuggestionHighlights':!0x0});return{'content':_0x5bda46(_0x2ec30c),'hasChanges':!0x0};}(_0xb12fa7,_0x4dfbb2,_0x450661,_0x53d315,_0x10cf73);return{'type':_0x3910ac[_0x2ede13(0xe5)][0x0][_0x2ede13(0x105)],'index':_0x3910ac[_0x2ede13(0x111)],'content':_0x3203ea,'hasChanges':_0x367dbe};});}function no(_0x5b7588,_0x3fb016){const _0x7bccc3=_0x22e7;for(const [_0x4d5a40,_0x1823e7]of _0x5b7588[_0x7bccc3(0xd8)]){const _0x187249=_0x3d7b94[_0x7bccc3(0x102)](_0x1823e7[_0x7bccc3(0xbf)](_0x3fb016));_0x5b7588[_0x7bccc3(0xd8)][_0x7bccc3(0x9e)](_0x4d5a40,_0x187249);}}export function getMinimalSelection(_0x261cf9,_0x2a0b59,_0x557bc7){const _0x9c9420=_0x22e7,_0x44abee=_0x261cf9[_0x9c9420(0xd6)][_0x9c9420(0xa8)](_0x9c9420(0xed));let _0x3a8d1a=_0x261cf9[_0x9c9420(0xb0)][_0x9c9420(0x10b)](_0x557bc7,Number[_0x9c9420(0xa4)]),_0x4f8e6a=_0x261cf9[_0x9c9420(0xb0)][_0x9c9420(0x10b)](_0x557bc7,0x0);for(const _0x57fd23 of _0x2a0b59){let _0xd49efd,_0x11c870;if(_0x44abee[_0x9c9420(0xb6)](_0x57fd23))_0xd49efd=_0x57fd23[_0x9c9420(0xdd)][_0x9c9420(0xe7)],_0x11c870=_0x57fd23[_0x9c9420(0xdd)][_0x9c9420(0x107)];else switch(_0x3a8d1a=_0x3a8d1a[_0x9c9420(0xbf)](_0x57fd23),_0x4f8e6a=_0x4f8e6a[_0x9c9420(0xbf)](_0x57fd23),_0x57fd23[_0x9c9420(0x105)]){case _0x9c9420(0xa0):_0xd49efd=_0x57fd23[_0x9c9420(0xf5)],_0x11c870=_0xd49efd[_0x9c9420(0xc3)](0x1);break;case _0x9c9420(0xf6):case _0x9c9420(0xdf):case _0x9c9420(0xe1):_0xd49efd=_0x57fd23[_0x9c9420(0xf7)][_0x9c9420(0xe7)],_0x11c870=_0x57fd23[_0x9c9420(0xf7)][_0x9c9420(0x107)];break;case _0x9c9420(0xe4):_0xd49efd=_0x57fd23[_0x9c9420(0xf5)],_0x11c870=_0xd49efd[_0x9c9420(0xc3)](_0x57fd23[_0x9c9420(0x9f)]);break;case _0x9c9420(0xa1):_0xd49efd=_0x57fd23[_0x9c9420(0xfa)],_0x11c870=_0x57fd23[_0x9c9420(0xa7)];break;case _0x9c9420(0xf4):{const _0x473d68=_0x57fd23[_0x9c9420(0xc5)][_0x9c9420(0xb8)][_0x9c9420(0xff)](0x0,-0x1);_0xd49efd=_0x261cf9[_0x9c9420(0xb0)][_0x9c9420(0xac)](_0x557bc7,_0x473d68),_0x11c870=_0xd49efd[_0x9c9420(0xc3)](0x1);break;}case _0x9c9420(0xee):{const _0x4a1429=_0x57fd23[_0x9c9420(0x9f)],_0x4e8a7a=_0x57fd23[_0x9c9420(0xfb)][_0x9c9420(0xc2)](_0x57fd23[_0x9c9420(0xc5)],_0x4a1429),_0x384488=_0x57fd23[_0x9c9420(0xf8)]();_0x9c9420(0xee)==_0x57fd23[_0x9c9420(0x105)]?(_0xd49efd=_0x4e8a7a,_0x11c870=_0x4e8a7a):(_0xd49efd=_0x384488,_0x11c870=_0x384488[_0x9c9420(0xc3)](_0x4a1429));break;}}_0xd49efd&&_0xd49efd[_0x9c9420(0xc7)](_0x3a8d1a)&&(_0x3a8d1a=_0xd49efd[_0x9c9420(0xa3)](),_0x3a8d1a[_0x9c9420(0xba)]=_0x9c9420(0x10d)),_0x11c870&&_0x11c870[_0x9c9420(0xf1)](_0x4f8e6a)&&(_0x4f8e6a=_0x11c870[_0x9c9420(0xa3)](),_0x4f8e6a[_0x9c9420(0xba)]=_0x9c9420(0x10d));}return _0x261cf9[_0x9c9420(0xb0)][_0x9c9420(0x104)](_0x261cf9[_0x9c9420(0xb0)][_0x9c9420(0xb4)](_0x3a8d1a,_0x4f8e6a));}export function expandSelectionWithContext(_0x31229a,_0x31f9fc){const _0x5ceb34=_0x22e7;ro(_0x31229a,_0x31f9fc,_0x5ceb34(0xcf));const _0x5da228=_0x31f9fc[_0x5ceb34(0xdc)]();_0x31f9fc[_0x5ceb34(0xc9)]([]),_0x31f9fc[_0x5ceb34(0xc9)](_0x5da228,{'backward':!0x0}),ro(_0x31229a,_0x31f9fc,_0x5ceb34(0xbc));}function _0x22e7(_0x2f219e,_0x111204){const _0x3cd9ca=_0x3cd9();return _0x22e7=function(_0x22e718,_0x3b7d7e){_0x22e718=_0x22e718-0x9d;let _0x31182b=_0x3cd9ca[_0x22e718];return _0x31182b;},_0x22e7(_0x2f219e,_0x111204);}function ro(_0x1f7280,_0x541c2c,_0xb5f00b){const _0x4d0c06=_0x22e7;let _0x379a68=0x14;for(;_0x379a68;){_0x1f7280[_0x4d0c06(0xbb)](_0x541c2c,{'unit':_0x4d0c06(0xec),'direction':_0xb5f00b}),_0x379a68--;const _0x142740=_0x541c2c[_0x4d0c06(0x9d)][_0x4d0c06(0xcf)==_0xb5f00b?_0x4d0c06(0xc0):_0x4d0c06(0xe8)];if(_0x142740&&_0x142740['is'](_0x4d0c06(0xa2))&&_0x1f7280[_0x4d0c06(0xd4)][_0x4d0c06(0xe2)](_0x142740)&&_0x1f7280[_0x4d0c06(0xd4)][_0x4d0c06(0xa9)](_0x142740))break;}}export function _transformMarkersByDeletion(_0x2daf27,_0x39ecc9){const _0x32c441=_0x22e7;for(const [_0x1dc13d,_0x75d6c1]of _0x2daf27[_0x32c441(0xd8)]){const _0x146af6=_0x75d6c1[_0x32c441(0x112)](_0x39ecc9[_0x32c441(0xe7)],_0x39ecc9[_0x32c441(0x107)][_0x32c441(0x106)]-_0x39ecc9[_0x32c441(0xe7)][_0x32c441(0x106)]);null!=_0x146af6?_0x2daf27[_0x32c441(0xd8)][_0x32c441(0x9e)](_0x1dc13d,_0x146af6):_0x2daf27[_0x32c441(0xd8)][_0x32c441(0x108)](_0x1dc13d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x527fe1=_0x20a9;function _0x20a9(_0x3b0444,_0x4a3392){var _0x704eea=_0x704e();return _0x20a9=function(_0x20a99b,_0x1a00df){_0x20a99b=_0x20a99b-0xa4;var _0x46ec0f=_0x704eea[_0x20a99b];return _0x46ec0f;},_0x20a9(_0x3b0444,_0x4a3392);}(function(_0x30161c,_0x2ba51a){var _0x4df897=_0x20a9,_0x46c94e=_0x30161c();while(!![]){try{var _0x11cd84=parseInt(_0x4df897(0xac))/0x1*(parseInt(_0x4df897(0xab))/0x2)+-parseInt(_0x4df897(0xb2))/0x3*(parseInt(_0x4df897(0xae))/0x4)+parseInt(_0x4df897(0xb3))/0x5*(-parseInt(_0x4df897(0xa8))/0x6)+-parseInt(_0x4df897(0xb0))/0x7+parseInt(_0x4df897(0xad))/0x8*(-parseInt(_0x4df897(0xaa))/0x9)+-parseInt(_0x4df897(0xa6))/0xa+parseInt(_0x4df897(0xa9))/0xb;if(_0x11cd84===_0x2ba51a)break;else _0x46c94e['push'](_0x46c94e['shift']());}catch(_0x3dbcd5){_0x46c94e['push'](_0x46c94e['shift']());}}}(_0x704e,0x5c4b1));import{Plugin as _0x4e97b7}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x445429}from'./aitogglebutton/aitogglebuttonui.js';import{AIChatBalloon as _0x302d12}from'../aichat/aichatballoon.js';function _0x704e(){var _0x1193aa=['12oMnvMy','pluginName','1133104hKmSGe','AIEditorIntegration','591285dwuhpB','20yDtyEm','isOfficialPlugin','requires','2645330QOBLMV','isPremiumPlugin','209286CgWkoq','17868807hvQsYT','489897AqclQF','86wZKzxP','6787hIkkAX','56klNEPm'];_0x704e=function(){return _0x1193aa;};return _0x704e();}import{SuggestionsConversion as _0x3fd556}from'ckeditor5-collaboration/src/collaboration-core.js';export class AIEditorIntegration extends _0x4e97b7{static get[_0x527fe1(0xa5)](){return[_0x445429,_0x302d12,_0x3fd556];}static get[_0x527fe1(0xaf)](){var _0x313d9a=_0x527fe1;return _0x313d9a(0xb1);}static get[_0x527fe1(0xa4)](){return!0x0;}static get[_0x527fe1(0xa7)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1daa4e=_0x237d;(function(_0x3568f8,_0x5eead1){const _0x167b17=_0x237d,_0x1033a3=_0x3568f8();while(!![]){try{const _0x593fd3=parseInt(_0x167b17(0x197))/0x1*(-parseInt(_0x167b17(0x19e))/0x2)+-parseInt(_0x167b17(0x18d))/0x3*(-parseInt(_0x167b17(0x196))/0x4)+parseInt(_0x167b17(0x19a))/0x5+-parseInt(_0x167b17(0x192))/0x6*(-parseInt(_0x167b17(0x199))/0x7)+-parseInt(_0x167b17(0x18f))/0x8+-parseInt(_0x167b17(0x19b))/0x9+parseInt(_0x167b17(0x18a))/0xa;if(_0x593fd3===_0x5eead1)break;else _0x1033a3['push'](_0x1033a3['shift']());}catch(_0x2e00ed){_0x1033a3['push'](_0x1033a3['shift']());}}}(_0x2c74,0x90bcc));import{Plugin as _0x182217}from'ckeditor5/src/core.js';import{ToggleAICommand as _0xde7be9}from'./toggleaicommand.js';import{ButtonView as _0x4c91ec,MenuBarMenuListItemButtonView as _0x2bcbf6}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x390fef}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x29cf26}from'../../aicore/utils/common-translations.js';function _0x2c74(){const _0x4dd724=['locale','isOfficialPlugin','isOn','requires','get','AI_TOGGLE_BUTTON_LABEL','pluginName','_createAIUIButton','menuBar:toggleAi','bind','4562540lBbEbe','componentFactory','execute','14310XPTPoH','value','8229856IYqaoe','menuitemcheckbox','ck-ai-toggle-button','177708vZhOAF','AIToggleButtonUI','set','toggleAi','324FSZBmx','1694TeAxWA','listenTo','266XmYufn','5457485dvBrwP','9633879kJBAnY','init','commands','434DWcVay','editor','isPremiumPlugin','isEnabled','add'];_0x2c74=function(){return _0x4dd724;};return _0x2c74();}import{AITabs as _0x2741bb}from'../../aitabs/aitabs.js';function _0x237d(_0x1e45c2,_0x209915){const _0x2c7457=_0x2c74();return _0x237d=function(_0x237d8b,_0x8ccce2){_0x237d8b=_0x237d8b-0x182;let _0xf98b3e=_0x2c7457[_0x237d8b];return _0xf98b3e;},_0x237d(_0x1e45c2,_0x209915);}import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x182217{static get[_0x1daa4e(0x183)](){return[_0x2741bb];}static get[_0x1daa4e(0x186)](){const _0x27f98f=_0x1daa4e;return _0x27f98f(0x193);}static get[_0x1daa4e(0x1a4)](){return!0x0;}static get[_0x1daa4e(0x1a0)](){return!0x0;}[_0x1daa4e(0x19c)](){const _0x5c05a6=_0x1daa4e,_0x2d5dde=this[_0x5c05a6(0x19f)];_0x2d5dde[_0x5c05a6(0x19d)][_0x5c05a6(0x1a2)](_0x5c05a6(0x195),new _0xde7be9(_0x2d5dde)),_0x2d5dde['ui'][_0x5c05a6(0x18b)][_0x5c05a6(0x1a2)](_0x5c05a6(0x195),()=>{const _0x194f10=_0x5c05a6,_0x5a9cca=this[_0x194f10(0x187)](_0x4c91ec);return _0x5a9cca[_0x194f10(0x194)]({'tooltip':!0x0,'class':_0x194f10(0x191)}),_0x5a9cca;}),_0x2d5dde['ui'][_0x5c05a6(0x18b)][_0x5c05a6(0x1a2)](_0x5c05a6(0x188),()=>{const _0x414ca9=_0x5c05a6,_0x322b38=this[_0x414ca9(0x187)](_0x2bcbf6);return _0x322b38[_0x414ca9(0x194)]({'role':_0x414ca9(0x190)}),_0x322b38;});}[_0x1daa4e(0x187)](_0x21249f){const _0x2636a1=_0x1daa4e,_0x31d20a=this[_0x2636a1(0x19f)],_0x712b39=_0x31d20a[_0x2636a1(0x19d)][_0x2636a1(0x184)](_0x2636a1(0x195)),_0x430953=new _0x21249f(_0x31d20a[_0x2636a1(0x1a3)]);return _0x430953[_0x2636a1(0x194)]({'label':_0x29cf26(_0x31d20a[_0x2636a1(0x1a3)],_0x2636a1(0x185)),'icon':_0x390fef,'isToggleable':!0x0}),_0x430953[_0x2636a1(0x189)](_0x2636a1(0x1a1))['to'](_0x712b39),_0x430953[_0x2636a1(0x189)](_0x2636a1(0x182))['to'](_0x712b39,_0x2636a1(0x18e),_0x6cf2e2=>!!_0x6cf2e2),this[_0x2636a1(0x198)](_0x430953,_0x2636a1(0x18c),()=>{const _0x2e6bcc=_0x2636a1;_0x712b39[_0x2e6bcc(0x18c)]();}),_0x430953;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2380(_0xfec035,_0x12e02d){const _0x1167be=_0x1167();return _0x2380=function(_0x238059,_0x1c9f26){_0x238059=_0x238059-0x102;let _0x30a180=_0x1167be[_0x238059];return _0x30a180;},_0x2380(_0xfec035,_0x12e02d);}const _0x206cb9=_0x2380;(function(_0xaa68c5,_0xaa6e94){const _0x476b5f=_0x2380,_0x490bd9=_0xaa68c5();while(!![]){try{const _0x45b1c7=parseInt(_0x476b5f(0x113))/0x1+parseInt(_0x476b5f(0x104))/0x2*(parseInt(_0x476b5f(0x10a))/0x3)+parseInt(_0x476b5f(0x105))/0x4+-parseInt(_0x476b5f(0x10e))/0x5*(-parseInt(_0x476b5f(0x10c))/0x6)+-parseInt(_0x476b5f(0x10b))/0x7+-parseInt(_0x476b5f(0x114))/0x8*(-parseInt(_0x476b5f(0x102))/0x9)+parseInt(_0x476b5f(0x10d))/0xa*(-parseInt(_0x476b5f(0x116))/0xb);if(_0x45b1c7===_0xaa6e94)break;else _0x490bd9['push'](_0x490bd9['shift']());}catch(_0x4795bd){_0x490bd9['push'](_0x490bd9['shift']());}}}(_0x1167,0xabad4));import{Command as _0x29bf7a}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x29bf7a{constructor(_0x4e4183){const _0x256f1a=_0x2380;super(_0x4e4183);const _0x4a1725=_0x4e4183[_0x256f1a(0x109)][_0x256f1a(0x115)](_0x256f1a(0x111))[_0x256f1a(0x112)];this[_0x256f1a(0x103)](_0x256f1a(0x108))['to'](_0x4a1725,_0x256f1a(0x106)),this[_0x256f1a(0x110)]=!0x0;}[_0x206cb9(0x10f)](){const _0x11a4aa=_0x206cb9,_0x4ac75e=this[_0x11a4aa(0x107)][_0x11a4aa(0x109)][_0x11a4aa(0x115)](_0x11a4aa(0x111))[_0x11a4aa(0x112)];_0x4ac75e[_0x11a4aa(0x106)]=!_0x4ac75e[_0x11a4aa(0x106)];}}function _0x1167(){const _0x20d125=['view','1138784SQoBsv','472UfIsjV','get','38779697NkGFPG','161523wdGTOj','bind','688lBQSxC','4669576jrSIJi','isVisible','editor','value','plugins','9183vSgOFX','7808430VLKFsU','185214dIIugu','10GdkXOK','150ijprDp','execute','isEnabled','AITabs'];_0x1167=function(){return _0x20d125;};return _0x1167();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x12352a=_0x1bdf;(function(_0x150b24,_0x3013f4){var _0x14616b=_0x1bdf,_0x1ed41c=_0x150b24();while(!![]){try{var _0x28ac76=-parseInt(_0x14616b(0x1fb))/0x1*(parseInt(_0x14616b(0x1f3))/0x2)+-parseInt(_0x14616b(0x1f4))/0x3+-parseInt(_0x14616b(0x1f2))/0x4+parseInt(_0x14616b(0x1fa))/0x5*(parseInt(_0x14616b(0x1f6))/0x6)+parseInt(_0x14616b(0x1f5))/0x7+parseInt(_0x14616b(0x1f8))/0x8*(-parseInt(_0x14616b(0x1f1))/0x9)+parseInt(_0x14616b(0x1f0))/0xa;if(_0x28ac76===_0x3013f4)break;else _0x1ed41c['push'](_0x1ed41c['shift']());}catch(_0xf30ba3){_0x1ed41c['push'](_0x1ed41c['shift']());}}}(_0x4df0,0xb7d6b));import{Plugin as _0x3cc9dd}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x4fc4fc}from'./aiquickactionsui.js';function _0x4df0(){var _0x184f84=['isPremiumPlugin','pluginName','isOfficialPlugin','24482470sgewkm','9EtvcpH','2013436kbTPPI','855464VPMDSA','1462686xVWdFg','5797470mlYDTn','61812BjvhwF','AIQuickActions','8713192hWYjkQ','requires','200BivtzT','2cLHHsB','ai.quickActions','config','define'];_0x4df0=function(){return _0x184f84;};return _0x4df0();}function _0x1bdf(_0x5db0bc,_0x143437){var _0x4df0fa=_0x4df0();return _0x1bdf=function(_0x1bdf03,_0x203faf){_0x1bdf03=_0x1bdf03-0x1eb;var _0x47df72=_0x4df0fa[_0x1bdf03];return _0x47df72;},_0x1bdf(_0x5db0bc,_0x143437);}import{AIQuickActionsEditing as _0x5781e0}from'./aiquickactionsediting.js';import{AIActions as _0x4204c0}from'../aiactions/aiactions.js';export class AIQuickActions extends _0x3cc9dd{static get[_0x12352a(0x1f9)](){return[_0x4fc4fc,_0x5781e0,_0x4204c0];}static get[_0x12352a(0x1ee)](){var _0x387124=_0x12352a;return _0x387124(0x1f7);}static get[_0x12352a(0x1ef)](){return!0x0;}static get[_0x12352a(0x1ed)](){return!0x0;}constructor(_0x23c7ee){var _0x1e7c81=_0x12352a;super(_0x23c7ee),_0x23c7ee[_0x1e7c81(0x1eb)][_0x1e7c81(0x1ec)](_0x1e7c81(0x1fc),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c1675=_0x540c;(function(_0x40333e,_0x5151e9){const _0x473f94=_0x540c,_0x3c9f77=_0x40333e();while(!![]){try{const _0x150ab1=parseInt(_0x473f94(0x8c))/0x1+parseInt(_0x473f94(0x90))/0x2+-parseInt(_0x473f94(0x80))/0x3+parseInt(_0x473f94(0x7a))/0x4*(-parseInt(_0x473f94(0xa2))/0x5)+-parseInt(_0x473f94(0x83))/0x6+-parseInt(_0x473f94(0x99))/0x7+parseInt(_0x473f94(0x76))/0x8;if(_0x150ab1===_0x5151e9)break;else _0x3c9f77['push'](_0x3c9f77['shift']());}catch(_0x5468be){_0x3c9f77['push'](_0x3c9f77['shift']());}}}(_0x405c,0x3a555));import{Command as _0x33fbeb}from'ckeditor5/src/core.js';function _0x405c(){const _0x162bce=['isVisible','ACTION','view','parent','actionName','REVIEW','AIActions','model','document','ai-quick-actions-plugin-not-found','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','executeAction','8341896eVXBoN','has','editor','focusPromptInput','212CLCqlj','args','locale','startConversation','get','sendMessage','1022064uvMJVY','CHAT','AIChat','1093122WIWwmv','getSelectedBlocks','_expandSelectionIfCollapsed','label','removeSelectionFromChatContext','selection','icon','_handleAIChatAction','other','375523ueyxlo','schema','handleAIReviewAction','isCollapsed','165656uGwmSB','_handleAIReviewAction','activateTab','plugins','_handleAIActionsActionLabel','execute','chat','change','activeTab','3175641fPbqjk','AIChatController','log','setSelection','type','prompt','ask-ai','_handleAIActionsAction','addSelectionToChatContext','26945blCjFY','AIReviewMode','getLimitElement','displayedPrompt','AITabs'];_0x405c=function(){return _0x162bce;};return _0x405c();}import{CKEditorError as _0x341fe5,first as _0xfa1ee6}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x274ee3}from'./aiquickactionsui.js';import{getTranslation as _0x593d22}from'../aicore/utils/common-translations.js';function _0x540c(_0x351daf,_0x4cbc3c){const _0x405ccb=_0x405c();return _0x540c=function(_0x540c5f,_0x41a2d1){_0x540c5f=_0x540c5f-0x73;let _0x1a930f=_0x405ccb[_0x540c5f];return _0x1a930f;},_0x540c(_0x351daf,_0x4cbc3c);}export class AIQuickActionsCommand extends _0x33fbeb{[_0x4c1675(0x95)](_0x2875d9){const _0x2f311f=_0x4c1675;switch(this[_0x2f311f(0x85)](),_0x2875d9[_0x2f311f(0x9d)]){case _0x274ee3[_0x2f311f(0x81)]:if(!this[_0x2f311f(0x78)][_0x2f311f(0x93)][_0x2f311f(0x77)](_0x2f311f(0x82))){const _0x4cfba0=_0x593d22(this[_0x2f311f(0x78)][_0x2f311f(0x7c)],_0x2f311f(0x74),_0x2f311f(0x82));throw new _0x341fe5(_0x2f311f(0x73),this[_0x2f311f(0x78)],{'errorMessage':_0x4cfba0});}this[_0x2f311f(0x8a)](_0x2875d9);break;case _0x274ee3[_0x2f311f(0xa8)]:if(!this[_0x2f311f(0x78)][_0x2f311f(0x93)][_0x2f311f(0x77)](_0x2f311f(0xad))){const _0x3b50fb=_0x593d22(this[_0x2f311f(0x78)][_0x2f311f(0x7c)],_0x2f311f(0x74),_0x2f311f(0xad));throw new _0x341fe5(_0x2f311f(0x73),this[_0x2f311f(0x78)],{'errorMessage':_0x3b50fb});}this[_0x2f311f(0xa0)](_0x2875d9);break;case _0x274ee3[_0x2f311f(0xac)]:if(!this[_0x2f311f(0x78)][_0x2f311f(0x93)][_0x2f311f(0x77)](_0x2f311f(0xa3))){const _0x1191d6=_0x593d22(this[_0x2f311f(0x78)][_0x2f311f(0x7c)],_0x2f311f(0x74),_0x2f311f(0xa3));throw new _0x341fe5(_0x2f311f(0x73),this[_0x2f311f(0x78)],{'errorMessage':_0x1191d6});}this[_0x2f311f(0x91)](_0x2875d9);}}async[_0x4c1675(0x8a)](_0xbb3ce2){const _0x52835d=_0x4c1675,_0x3e307b=this[_0x52835d(0x78)][_0x52835d(0x93)][_0x52835d(0x7e)](_0x52835d(0x82)),_0x4871b3=this[_0x52835d(0x78)][_0x52835d(0x93)][_0x52835d(0x7e)](_0x52835d(0x9a)),_0x54ebda=this[_0x52835d(0x78)][_0x52835d(0x93)][_0x52835d(0x7e)](_0x52835d(0xa6))[_0x52835d(0xa9)];if(_0x54ebda[_0x52835d(0xa7)]||(_0x54ebda[_0x52835d(0xa7)]=!0x0),_0x52835d(0x96)!==_0x54ebda[_0x52835d(0x98)]&&_0x54ebda[_0x52835d(0x92)](_0x52835d(0x96)),_0x52835d(0x9f)===_0xbb3ce2['id'])_0x4871b3[_0x52835d(0x87)](),await _0x3e307b[_0x52835d(0xa1)](),_0x3e307b[_0x52835d(0x79)]();else await _0x3e307b[_0x52835d(0x7d)](),_0x4871b3[_0x52835d(0x87)](),await _0x3e307b[_0x52835d(0xa1)](),_0x3e307b[_0x52835d(0x79)](),await _0x3e307b[_0x52835d(0x7f)]({'message':_0xbb3ce2[_0x52835d(0x9e)]||_0xbb3ce2[_0x52835d(0xa5)],'attributes':{'quickActionData':{'id':_0xbb3ce2['id']},'displayedPrompt':_0xbb3ce2[_0x52835d(0xa5)]}});}[_0x4c1675(0x85)](){const _0x31f04b=_0x4c1675,_0x110156=this[_0x31f04b(0x78)],_0x571ffb=_0x110156[_0x31f04b(0xae)][_0x31f04b(0xaf)][_0x31f04b(0x88)];if(!_0x571ffb[_0x31f04b(0x8f)])return;const _0x1bb096=_0xfa1ee6(_0x571ffb[_0x31f04b(0x84)]())||_0x110156[_0x31f04b(0xae)][_0x31f04b(0x8d)][_0x31f04b(0xa4)](_0x571ffb);_0x110156[_0x31f04b(0xae)][_0x31f04b(0x97)](_0x3286e1=>{const _0x1b3cbb=_0x31f04b;_0x3286e1[_0x1b3cbb(0x9c)](_0x1bb096,'in');});}[_0x4c1675(0x94)](_0x13287d){const _0x489ac1=_0x4c1675;return _0x13287d[_0x489ac1(0xaa)]?.[_0x489ac1(0x86)]&&_0x489ac1(0x8b)!==_0x13287d[_0x489ac1(0xaa)]?.['id']?_0x13287d[_0x489ac1(0xaa)][_0x489ac1(0x86)]+':\x20'+_0x13287d[_0x489ac1(0xa5)]:_0x13287d[_0x489ac1(0xa5)];}async[_0x4c1675(0xa0)](_0x12b3c0){const _0x3ae6fb=_0x4c1675,_0x4c66c5=this[_0x3ae6fb(0x78)][_0x3ae6fb(0x93)][_0x3ae6fb(0x7e)](_0x3ae6fb(0xad)),_0x5b0473=_0x12b3c0[_0x3ae6fb(0x9e)]?{'userMessage':_0x12b3c0[_0x3ae6fb(0x9e)],'model':_0x12b3c0[_0x3ae6fb(0xae)]}:{'actionName':_0x12b3c0[_0x3ae6fb(0xab)]||_0x12b3c0['id'],'args':_0x12b3c0[_0x3ae6fb(0x7b)]},_0x1a2a5b=this[_0x3ae6fb(0x94)](_0x12b3c0);await _0x4c66c5[_0x3ae6fb(0x75)](_0x5b0473,_0x1a2a5b,_0x12b3c0[_0x3ae6fb(0x89)]);}async[_0x4c1675(0x91)](_0xd49429){const _0x199af5=_0x4c1675;console[_0x199af5(0x9b)](_0x199af5(0x8e),_0xd49429);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x420e(_0x14f71e,_0xdcf614){const _0x35989e=_0x3598();return _0x420e=function(_0x420e3c,_0x1cdd2f){_0x420e3c=_0x420e3c-0x1b9;let _0x4ffd3b=_0x35989e[_0x420e3c];return _0x4ffd3b;},_0x420e(_0x14f71e,_0xdcf614);}const _0x29bb37=_0x420e;(function(_0x3ccaab,_0x196da1){const _0x498309=_0x420e,_0x4aef2b=_0x3ccaab();while(!![]){try{const _0x455861=-parseInt(_0x498309(0x1c2))/0x1*(-parseInt(_0x498309(0x1bb))/0x2)+parseInt(_0x498309(0x1c8))/0x3*(-parseInt(_0x498309(0x1c5))/0x4)+parseInt(_0x498309(0x1c3))/0x5*(parseInt(_0x498309(0x1bd))/0x6)+-parseInt(_0x498309(0x1ca))/0x7+-parseInt(_0x498309(0x1d2))/0x8*(-parseInt(_0x498309(0x1d6))/0x9)+-parseInt(_0x498309(0x1ce))/0xa+parseInt(_0x498309(0x1ba))/0xb*(-parseInt(_0x498309(0x1bf))/0xc);if(_0x455861===_0x196da1)break;else _0x4aef2b['push'](_0x4aef2b['shift']());}catch(_0x14393f){_0x4aef2b['push'](_0x4aef2b['shift']());}}}(_0x3598,0xa8d7e));import{Plugin as _0x426470}from'ckeditor5/src/core.js';function _0x3598(){const _0x20a7dd=['9ixjPsn','model','document','149281jCyGIH','53446TVHtmL','directChange','12yxbVeM','selection','84OtSLlT','editor','removeSelectionFromChatContext','2UFoFxz','1159275rJDaPt','init','4kOenwU','AIQuickActionsEditing','isOfficialPlugin','2596056IGeGic','get','426797JzYJka','isPremiumPlugin','commands','aiQuickAction','942980ROlXEZ','change:range','has','add','10320352tuzWWK','pluginName','plugins','AIChat'];_0x3598=function(){return _0x20a7dd;};return _0x3598();}import{AIQuickActionsCommand as _0x2ec139}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x426470{static get[_0x29bb37(0x1d3)](){const _0x2ffc3f=_0x29bb37;return _0x2ffc3f(0x1c6);}static get[_0x29bb37(0x1c7)](){return!0x0;}static get[_0x29bb37(0x1cb)](){return!0x0;}[_0x29bb37(0x1c4)](){const _0x1a7adc=_0x29bb37,_0x308b28=this[_0x1a7adc(0x1c0)],_0x3f503e=new _0x2ec139(this[_0x1a7adc(0x1c0)]);if(_0x308b28[_0x1a7adc(0x1cc)][_0x1a7adc(0x1d1)](_0x1a7adc(0x1cd),_0x3f503e),_0x308b28[_0x1a7adc(0x1d4)][_0x1a7adc(0x1d0)](_0x1a7adc(0x1d5))){const _0x2948cf=this[_0x1a7adc(0x1c0)][_0x1a7adc(0x1d4)][_0x1a7adc(0x1c9)](_0x1a7adc(0x1d5));_0x308b28[_0x1a7adc(0x1d7)][_0x1a7adc(0x1b9)][_0x1a7adc(0x1be)]['on'](_0x1a7adc(0x1cf),(_0x57674c,_0x57d046)=>{const _0x58b7c4=_0x1a7adc;_0x57d046[_0x58b7c4(0x1bc)]&&_0x2948cf[_0x58b7c4(0x1c1)]();});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32c44a=_0x2588;(function(_0x1fd661,_0x280a5d){const _0x3eb3c4=_0x2588,_0x4ebe2e=_0x1fd661();while(!![]){try{const _0x49a301=parseInt(_0x3eb3c4(0x1da))/0x1*(parseInt(_0x3eb3c4(0x1cb))/0x2)+-parseInt(_0x3eb3c4(0x245))/0x3+-parseInt(_0x3eb3c4(0x201))/0x4*(parseInt(_0x3eb3c4(0x215))/0x5)+-parseInt(_0x3eb3c4(0x207))/0x6+parseInt(_0x3eb3c4(0x1ee))/0x7*(-parseInt(_0x3eb3c4(0x218))/0x8)+parseInt(_0x3eb3c4(0x1af))/0x9+-parseInt(_0x3eb3c4(0x1b3))/0xa*(-parseInt(_0x3eb3c4(0x1dc))/0xb);if(_0x49a301===_0x280a5d)break;else _0x4ebe2e['push'](_0x4ebe2e['shift']());}catch(_0x29b60b){_0x4ebe2e['push'](_0x4ebe2e['shift']());}}}(_0x4205,0xbe0fd));import{IconAIAdjustLength as _0x4f6050,IconAIChangeTone as _0x1c83da,IconAIChatCommands as _0x5a2da4,IconAIContinueWriting as _0x485462,IconAIGrammarCheck as _0x1ef312,IconAIImproveWriting as _0x389cee,IconAIOther as _0x40bff4,IconAIQuickActions as _0x33913a,IconAITranslate as _0x791bc4}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x173df5}from'ckeditor5/src/core.js';import{CKEditorError as _0x10e08c,logError as _0x1ea25c}from'ckeditor5/src/utils.js';import{getTranslation as _0x3a234b}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x51af56}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x28efa0}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x542073,BalloonToolbar as _0xfcf616,MenuBarMenuView as _0x1f7209,MenuBarMenuListView as _0x546064,MenuBarMenuListItemView as _0x3f206b,MenuBarMenuListItemButtonView as _0x24ebfe}from'ckeditor5/src/ui.js';import{AIModels as _0x184e13}from'../aicore/model/aimodels.js';import{AIConnector as _0x1bd955}from'../aicore/aiconnector.js';import'../../theme/common/aibutton.css';function _0x4205(){const _0x1179ba=['AI_QUICK_ACTIONS_MAKE_SHORTER','focus','componentFactory','getDefaultQuickActions','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','ai-quick-actions-unavailable-model','get','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','add','ai-quick-actions-models-unable-to-retrieve','492072ojpHKr','children','translate-to-english','getAll','language','french','translate-to-korean','translate','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','make-tone-direct','aiQuickAction','AI_QUICK_ACTIONS_IMPROVE_WRITING','13188357yIKZAA','AIChat','translate-to-japanese','_getDefaultAndCustomActions','10aMpgCn','icon','AI_QUICK_ACTIONS_CHANGE_TONE','buttonView','message','_quickActionsDefinition','translate-to-russian','ask-ai','pluginName','chat-commands','AI_QUICK_ACTIONS_CHAT_COMMANDS','improve-writing','set','english','length','AI_QUICK_ACTIONS_ADJUST_LENGTH','japanese','uiLanguage','russian','make-tone-casual','values','DisplayNames','_initializeQuickActionsDropdown','commands','96292yisOAC','_initializeQuickActionsComponentsAndCommands','requires','make-tone-friendly','ai.quickActions.extraCommands','german','label','translate-to-german','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','translate-to-chinese','_initializeQuickActionsMenuBar','menuitem','AI_QUICK_ACTIONS_TRANSLATE','includes','AI_QUICK_ACTIONS_MORE_CONFIDENT','19zhRPhF','spanish','945076fHshuJ','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','_initializeQuickActionsComponents','has','make-tone-confident','AI_QUICK_ACTIONS_ASK_AI','ai.quickActions.isSearchEnabled','isPremiumPlugin','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','English','AIConnector','config','AIQuickActionsUI','change-tone','explain','menuBarView','AI_QUICK_ACTIONS_CONTINUE_WRITING','find','6503PAxGPd','ai.quickActions.removeCommands','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AIActions','editing','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','model','AI_QUICK_ACTIONS_OTHER','aiQuickActions','translate-to-portuguese','make-tone-professional','panelView','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_HEADING','type','isOfficialPlugin','AI_QUICK_ACTIONS_MAKE_LONGER','AI_QUICK_ACTIONS_MORE_FRIENDLY','1410248spVLAk','init','_executeQuickAction','make-shorter','push','editor','3377682ykYsMs','menuBar:aiQuickActions','some','fix-grammar','AI_QUICK_ACTIONS_EXPLAIN','adjust-length','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','chinese','isEnabled','items','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','CHAT','view','translate-to-french','10urVXkk','make-longer','execute','2200TAcPwk','locale','filter','_shouldIncludeAction','attachToDom','other','ai.chat.context.document.enabled','replace','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','summarize','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','AI_QUICK_ACTIONS_SUMMARIZE','forEach','AIReviewMode','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','displayedPrompt','delegate','portuguese','italian','actions','plugins','map','translate-to-italian','_prepareQuickActionsDefinition','close','highlight-key-points','translate-to-spanish','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','ACTION','korean','AI_QUICK_ACTIONS_MORE_DIRECT','continue','REVIEW','menu','AI_QUICK_ACTIONS_MORE_CASUAL'];_0x4205=function(){return _0x1179ba;};return _0x4205();}import'../../theme/aiquickactions/aiquickactions.css';const ee=_0x32c44a(0x1f0),ie=_0x32c44a(0x1f3),ne=_0x32c44a(0x20d);export var AIQuickActionType;!function(_0x41ef3d){const _0x1e94b2=_0x32c44a;_0x41ef3d[_0x1e94b2(0x212)]=_0x1e94b2(0x212),_0x41ef3d[_0x1e94b2(0x234)]=_0x1e94b2(0x234),_0x41ef3d[_0x1e94b2(0x238)]=_0x1e94b2(0x238);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;function _0x2588(_0x2fc08b,_0xb01368){const _0x420539=_0x4205();return _0x2588=function(_0x258854,_0x40f681){_0x258854=_0x258854-0x1a7;let _0x517906=_0x420539[_0x258854];return _0x517906;},_0x2588(_0x2fc08b,_0xb01368);}!function(_0x54eb38){const _0x23ccc2=_0x32c44a;_0x54eb38[_0x23ccc2(0x212)]=_0x23ccc2(0x1b0),_0x54eb38[_0x23ccc2(0x234)]=_0x23ccc2(0x1f1),_0x54eb38[_0x23ccc2(0x238)]=_0x23ccc2(0x225);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x173df5{static get[_0x32c44a(0x1cd)](){return[_0xfcf616,_0x1bd955];}static get[_0x32c44a(0x1bb)](){const _0x236fd6=_0x32c44a;return _0x236fd6(0x1e8);}static get[_0x32c44a(0x1fe)](){return!0x0;}static get[_0x32c44a(0x1e3)](){return!0x0;}async[_0x32c44a(0x202)](){const _0x94814=_0x32c44a,_0x7f5941=await this[_0x94814(0x1b2)]();this[_0x94814(0x22f)](_0x7f5941),this[_0x94814(0x1cc)]();}static[_0x32c44a(0x23e)](_0x4beebe){return function(_0x30ae5f){const _0x41e9f1=_0x2588,_0x24879a=new Intl[(_0x41e9f1(0x1c8))](['en'],{'type':_0x41e9f1(0x1a7)})['of'](_0x30ae5f[_0x41e9f1(0x1c4)]),_0x28d8ef=_0x24879a||_0x41e9f1(0x1e5),_0x1c72c9=[{'id':_0x41e9f1(0x1ba),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1e1)),'type':AIQuickActionType[_0x41e9f1(0x212)],'icon':_0x5a2da4},{'id':_0x41e9f1(0x1bc),'label':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1bd)),'icon':_0x5a2da4,'actions':[{'id':_0x41e9f1(0x1ea),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x20b)),'prompt':ee[_0x41e9f1(0x21f)]('%0',_0x28d8ef),'type':AIQuickActionType[_0x41e9f1(0x212)]},{'id':_0x41e9f1(0x221),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x223)),'prompt':ie[_0x41e9f1(0x21f)]('%0',_0x28d8ef),'type':AIQuickActionType[_0x41e9f1(0x212)]},{'id':_0x41e9f1(0x231),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x233)),'prompt':ne[_0x41e9f1(0x21f)]('%0',_0x28d8ef),'type':AIQuickActionType[_0x41e9f1(0x212)]}]},{'id':_0x41e9f1(0x1be),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1ae)),'type':AIQuickActionType[_0x41e9f1(0x234)],'icon':_0x389cee},{'id':_0x41e9f1(0x237),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1ec)),'type':AIQuickActionType[_0x41e9f1(0x234)],'icon':_0x485462},{'id':_0x41e9f1(0x20a),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1fb)),'type':AIQuickActionType[_0x41e9f1(0x234)],'icon':_0x1ef312},{'id':_0x41e9f1(0x20c),'label':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1c2)),'icon':_0x4f6050,'actions':[{'id':_0x41e9f1(0x204),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x23b)),'type':AIQuickActionType[_0x41e9f1(0x234)]},{'id':_0x41e9f1(0x216),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1ff)),'type':AIQuickActionType[_0x41e9f1(0x234)]}]},{'id':_0x41e9f1(0x1e9),'label':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1b5)),'icon':_0x1c83da,'actions':[{'id':_0x41e9f1(0x1c6),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x23a)),'type':AIQuickActionType[_0x41e9f1(0x234)]},{'id':_0x41e9f1(0x1ac),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x236)),'type':AIQuickActionType[_0x41e9f1(0x234)]},{'id':_0x41e9f1(0x1ce),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x200)),'type':AIQuickActionType[_0x41e9f1(0x234)]},{'id':_0x41e9f1(0x1e0),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1d9)),'type':AIQuickActionType[_0x41e9f1(0x234)]},{'id':_0x41e9f1(0x1f9),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1f4)),'type':AIQuickActionType[_0x41e9f1(0x234)]}]},{'id':_0x41e9f1(0x1aa),'label':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1d7)),'icon':_0x791bc4,'actions':[{'id':_0x41e9f1(0x247),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x222)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x1c0)}},{'id':_0x41e9f1(0x1d4),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1d3)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x20e)}},{'id':_0x41e9f1(0x232),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x242)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x1db)}},{'id':_0x41e9f1(0x1d2),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x220)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x1d0)}},{'id':_0x41e9f1(0x214),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x226)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x1a8)}},{'id':_0x41e9f1(0x1b1),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1e4)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x1c3)}},{'id':_0x41e9f1(0x1f8),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1dd)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x229)}},{'id':_0x41e9f1(0x1a9),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x211)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x235)}},{'id':_0x41e9f1(0x22e),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1ab)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x22a)}},{'id':_0x41e9f1(0x1b9),'displayedPrompt':_0x3a234b(_0x30ae5f,_0x41e9f1(0x23f)),'type':AIQuickActionType[_0x41e9f1(0x234)],'actionName':_0x41e9f1(0x1aa),'args':{'language':_0x41e9f1(0x1c5)}}]},{'id':_0x41e9f1(0x21d),'label':_0x3a234b(_0x30ae5f,_0x41e9f1(0x1f6)),'icon':_0x40bff4,'actions':[]}];return _0x1c72c9;}(_0x4beebe);}async[_0x32c44a(0x1b2)](){const _0x44b8a5=_0x32c44a,_0x269bd8=AIQuickActionsUI[_0x44b8a5(0x23e)](this[_0x44b8a5(0x206)][_0x44b8a5(0x219)]),_0x46dc68=this[_0x44b8a5(0x206)][_0x44b8a5(0x1e7)][_0x44b8a5(0x241)](_0x44b8a5(0x1cf))||[];let _0x2bf5b7=[];try{_0x2bf5b7=await new _0x184e13({'connector':this[_0x44b8a5(0x206)][_0x44b8a5(0x22c)][_0x44b8a5(0x241)](_0x44b8a5(0x1e6)),'locale':this[_0x44b8a5(0x206)][_0x44b8a5(0x219)]})[_0x44b8a5(0x248)]();}catch(_0x35b67e){const _0x35cd55=new _0x10e08c(_0x44b8a5(0x244),this,{'error':_0x35b67e});_0x1ea25c(_0x35cd55[_0x44b8a5(0x1b7)]);}finally{const _0x4e8e8a=_0x46dc68[_0x44b8a5(0x22d)](_0x17bf77=>({..._0x17bf77,'icon':void 0x0}));_0x269bd8[_0x44b8a5(0x1ed)](_0x3f5034=>_0x44b8a5(0x21d)===_0x3f5034['id'])[_0x44b8a5(0x22b)][_0x44b8a5(0x205)](..._0x4e8e8a),_0x269bd8[_0x44b8a5(0x224)](_0x366d59=>{const _0x1c98dc=_0x44b8a5;if(_0x1c98dc(0x22b)in _0x366d59)_0x366d59[_0x1c98dc(0x22b)][_0x1c98dc(0x224)](_0x237606=>{const _0x289eea=_0x1c98dc;if(_0x237606[_0x289eea(0x20f)]=!!_0x2bf5b7[_0x289eea(0x1ed)](_0x464ccc=>_0x464ccc['id']===_0x237606[_0x289eea(0x1f5)])||void 0x0===_0x237606[_0x289eea(0x1f5)],!_0x237606[_0x289eea(0x20f)]){const _0x16c424=new _0x10e08c(_0x289eea(0x240),this,{'actionId':_0x237606['id'],'modelId':_0x237606[_0x289eea(0x1f5)]});_0x1ea25c(_0x16c424[_0x289eea(0x1b7)]);}});else{if(_0x366d59[_0x1c98dc(0x20f)]=!!_0x2bf5b7[_0x1c98dc(0x1ed)](_0x452101=>_0x452101['id']===_0x366d59[_0x1c98dc(0x1f5)])||void 0x0===_0x366d59[_0x1c98dc(0x1f5)],!_0x366d59[_0x1c98dc(0x20f)]){const _0x17e3f3=new _0x10e08c(_0x1c98dc(0x240),this,{'actionId':_0x366d59['id'],'modelId':_0x366d59[_0x1c98dc(0x1f5)]});_0x1ea25c(_0x17e3f3[_0x1c98dc(0x1b7)]);}}});}return _0x269bd8;}[_0x32c44a(0x1cc)](){const _0x98e454=_0x32c44a,_0x30dc2c=new _0x542073(this[_0x98e454(0x206)][_0x98e454(0x219)]);_0x30dc2c[_0x98e454(0x21c)](),this[_0x98e454(0x1c9)](_0x30dc2c),this[_0x98e454(0x1d5)](),this[_0x98e454(0x1de)](_0x30dc2c);}[_0x32c44a(0x1c9)](_0x4e51bd){const _0x37843b=_0x32c44a,_0x4f24a5=this[_0x37843b(0x206)][_0x37843b(0x1e7)][_0x37843b(0x241)](_0x37843b(0x1e2))??!0x0;this[_0x37843b(0x206)]['ui'][_0x37843b(0x23d)][_0x37843b(0x243)](_0x37843b(0x1f7),_0x51af56({'editor':this[_0x37843b(0x206)],'content':this[_0x37843b(0x1b8)],'buttonDefinition':{'icon':_0x33913a,'label':_0x3a234b(this[_0x37843b(0x206)][_0x37843b(0x219)],_0x37843b(0x1fc))},'bodyCollection':_0x4e51bd,'hasSearch':_0x4f24a5}));}[_0x32c44a(0x22f)](_0x56b8f5){const _0x25106d=_0x32c44a;this[_0x25106d(0x1b8)]=_0x56b8f5[_0x25106d(0x22d)](_0x4f607b=>{const _0x5007e5=_0x25106d;if(_0x5007e5(0x22b)in _0x4f607b){const _0x13e575=_0x4f607b;return{..._0x13e575,'actions':_0x13e575[_0x5007e5(0x22b)][_0x5007e5(0x22d)](_0x2c9224=>{const {actions:_0x78163a,..._0x3c2b7f}=_0x13e575;return{..._0x2c9224,'parent':_0x3c2b7f};})[_0x5007e5(0x21a)](_0x2be79f=>this[_0x5007e5(0x21b)](_0x2be79f))};}return _0x4f607b;})[_0x25106d(0x21a)](_0x42ba37=>_0x25106d(0x22b)in _0x42ba37?_0x42ba37[_0x25106d(0x22b)][_0x25106d(0x1c1)]>0x0:this[_0x25106d(0x21b)](_0x42ba37));}[_0x32c44a(0x21b)](_0x50de45){const _0x90b247=_0x32c44a,_0x19f52f=this[_0x90b247(0x206)][_0x90b247(0x1e7)][_0x90b247(0x241)](_0x90b247(0x1ef))||[];return this[_0x90b247(0x206)][_0x90b247(0x22c)][_0x90b247(0x1df)](AIQuickActionTypeToPluginName[_0x50de45[_0x90b247(0x1fd)]])&&!_0x19f52f[_0x90b247(0x1d8)](_0x50de45['id'])&&!(_0x50de45[_0x90b247(0x1fd)]===AIQuickActionType[_0x90b247(0x212)]&&!0x1===this[_0x90b247(0x206)][_0x90b247(0x1e7)][_0x90b247(0x241)](_0x90b247(0x21e)));}[_0x32c44a(0x1de)](_0x435f37){const _0x508d9f=_0x32c44a;this[_0x508d9f(0x1b8)][_0x508d9f(0x224)](_0x49c6d0=>{const _0x4e2bfd=_0x508d9f;if(_0x4e2bfd(0x22b)in _0x49c6d0){const _0x155dc9=_0x51af56({'editor':this[_0x4e2bfd(0x206)],'content':_0x49c6d0[_0x4e2bfd(0x22b)],'buttonDefinition':_0x49c6d0,'bodyCollection':_0x435f37});this[_0x4e2bfd(0x206)]['ui'][_0x4e2bfd(0x23d)][_0x4e2bfd(0x243)](_0x49c6d0['id'],_0x155dc9),_0x49c6d0[_0x4e2bfd(0x22b)][_0x4e2bfd(0x224)](_0x17687e=>{const _0x17c592=_0x4e2bfd,_0x40dd1d=_0x28efa0({'editor':this[_0x17c592(0x206)],'action':_0x17687e});this[_0x17c592(0x206)]['ui'][_0x17c592(0x23d)][_0x17c592(0x243)](_0x17687e['id'],_0x40dd1d);});}else{const _0x610bf8=_0x28efa0({'editor':this[_0x4e2bfd(0x206)],'action':_0x49c6d0,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x4e2bfd(0x206)]['ui'][_0x4e2bfd(0x23d)][_0x4e2bfd(0x243)](_0x49c6d0['id'],_0x610bf8);}});}[_0x32c44a(0x1d5)](){const _0x14ff66=_0x32c44a;this[_0x14ff66(0x206)]['ui'][_0x14ff66(0x23d)][_0x14ff66(0x243)](_0x14ff66(0x208),_0x4d2848=>{const _0x4308f9=_0x14ff66,_0x279a25=new _0x1f7209(_0x4d2848),_0x7ca7e7=_0x3a234b(_0x4d2848,_0x4308f9(0x1fc));_0x279a25[_0x4308f9(0x1b6)][_0x4308f9(0x1bf)]({'label':_0x7ca7e7,'icon':_0x33913a});const _0x2c0850=new _0x546064(_0x4d2848);_0x2c0850[_0x4308f9(0x1bf)]({'ariaLabel':_0x7ca7e7,'role':_0x4308f9(0x239)}),this[_0x4308f9(0x1b8)][_0x4308f9(0x224)](_0x28acf5=>{const _0x539bc6=_0x4308f9;if(_0x539bc6(0x22b)in _0x28acf5){const _0xf9e673=_0x28acf5,_0x2e7651=new _0x3f206b(_0x4d2848,_0x279a25),_0x3edff0=new _0x1f7209(_0x4d2848),_0x1232b1=new _0x546064(_0x4d2848);_0x3edff0[_0x539bc6(0x1b6)][_0x539bc6(0x1bf)]({'label':_0xf9e673[_0x539bc6(0x1d1)],'icon':_0xf9e673[_0x539bc6(0x1b4)]}),_0xf9e673[_0x539bc6(0x22b)][_0x539bc6(0x224)](_0xce14a2=>{const _0x32beab=_0x539bc6,_0x553150=new _0x3f206b(_0x4d2848,_0x3edff0),_0x514cb7=new _0x24ebfe(_0x4d2848);_0x514cb7[_0x32beab(0x1bf)]({'label':_0xce14a2[_0x32beab(0x227)],'icon':_0xce14a2[_0x32beab(0x1b4)],'role':_0x32beab(0x1d6),'isEnabled':_0xce14a2[_0x32beab(0x20f)]}),_0x514cb7['on'](_0x32beab(0x217),()=>{const _0x23f59f=_0x32beab;this[_0x23f59f(0x203)](_0xce14a2);}),_0x514cb7[_0x32beab(0x228)](_0x32beab(0x217))['to'](_0x3edff0),_0x553150[_0x32beab(0x246)][_0x32beab(0x243)](_0x514cb7),_0x1232b1[_0x32beab(0x210)][_0x32beab(0x243)](_0x553150);}),_0x3edff0[_0x539bc6(0x1fa)][_0x539bc6(0x246)][_0x539bc6(0x243)](_0x1232b1),_0x2e7651[_0x539bc6(0x246)][_0x539bc6(0x243)](_0x3edff0),_0x2c0850[_0x539bc6(0x210)][_0x539bc6(0x243)](_0x2e7651);}else{const _0x2b19db=_0x28acf5,_0x5baff7=new _0x3f206b(_0x4d2848,_0x279a25),_0x38c780=new _0x24ebfe(_0x4d2848);_0x38c780[_0x539bc6(0x1bf)]({'label':_0x2b19db[_0x539bc6(0x227)],'icon':_0x2b19db[_0x539bc6(0x1b4)],'role':_0x539bc6(0x1d6),'isEnabled':_0x2b19db[_0x539bc6(0x20f)]}),_0x38c780['on'](_0x539bc6(0x217),()=>{const _0x101991=_0x539bc6;this[_0x101991(0x203)](_0x2b19db);}),_0x38c780[_0x539bc6(0x228)](_0x539bc6(0x217))['to'](_0x279a25),_0x5baff7[_0x539bc6(0x246)][_0x539bc6(0x243)](_0x38c780),_0x2c0850[_0x539bc6(0x210)][_0x539bc6(0x243)](_0x5baff7);}});const _0x2b0335=Object[_0x4308f9(0x1c7)](AIQuickActionTypeToPluginName)[_0x4308f9(0x209)](_0x39f435=>this[_0x4308f9(0x206)][_0x4308f9(0x22c)][_0x4308f9(0x1df)](_0x39f435));return _0x279a25[_0x4308f9(0x1bf)]({'isEnabled':_0x2b0335}),_0x279a25[_0x4308f9(0x1fa)][_0x4308f9(0x246)][_0x4308f9(0x243)](_0x2c0850),_0x279a25;});}[_0x32c44a(0x203)](_0x310b1b){const _0x2bc5f3=_0x32c44a,_0xc2c9e5=this[_0x2bc5f3(0x206)];_0xc2c9e5[_0x2bc5f3(0x1f2)][_0x2bc5f3(0x213)][_0x2bc5f3(0x23c)](),_0xc2c9e5[_0x2bc5f3(0x1ca)][_0x2bc5f3(0x217)](_0x2bc5f3(0x1ad),_0x310b1b);const _0x4b308f=_0xc2c9e5['ui'][_0x2bc5f3(0x213)][_0x2bc5f3(0x1eb)];_0x4b308f&&_0x4b308f[_0x2bc5f3(0x230)]&&_0x4b308f[_0x2bc5f3(0x230)]();}}
|
|
23
|
+
const _0x3f2a1d=_0x308c;(function(_0x111d55,_0x320b59){const _0x58d30b=_0x308c,_0x4d047e=_0x111d55();while(!![]){try{const _0xd2b0ae=-parseInt(_0x58d30b(0x1b8))/0x1+-parseInt(_0x58d30b(0x210))/0x2*(-parseInt(_0x58d30b(0x201))/0x3)+parseInt(_0x58d30b(0x1c0))/0x4*(-parseInt(_0x58d30b(0x182))/0x5)+-parseInt(_0x58d30b(0x199))/0x6*(parseInt(_0x58d30b(0x216))/0x7)+parseInt(_0x58d30b(0x1ab))/0x8+parseInt(_0x58d30b(0x212))/0x9*(parseInt(_0x58d30b(0x187))/0xa)+parseInt(_0x58d30b(0x18d))/0xb*(parseInt(_0x58d30b(0x206))/0xc);if(_0xd2b0ae===_0x320b59)break;else _0x4d047e['push'](_0x4d047e['shift']());}catch(_0x2c389f){_0x4d047e['push'](_0x4d047e['shift']());}}}(_0x3ca8,0xbcc3a));import{IconAIAdjustLength as _0x260c2f,IconAIChangeTone as _0x21bd6f,IconAIChatCommands as _0x497f58,IconAIContinueWriting as _0x3935ea,IconAIGrammarCheck as _0x1060a4,IconAIImproveWriting as _0x2be68e,IconAIOther as _0x4586ce,IconAIQuickActions as _0x2a9af0,IconAITranslate as _0x3bda67}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x13663d}from'ckeditor5/src/core.js';import{CKEditorError as _0xf1313f,logError as _0x1749c9}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b31e7}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x2e9e9e}from'./ui/aiquickactionsdropdowncreator.js';function _0x3ca8(){const _0x40800e=['message','pluginName','locale','translate-to-english','view','_getDefaultAndCustomActions','ai.quickActions.isSearchEnabled','AIActions','translate-to-german','french','_initializeQuickActionsDropdown','translate','improve-writing','focus','values','attachToDom','highlight-key-points','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','AIReviewMode','make-longer','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','ai.quickActions.extraCommands','AI_QUICK_ACTIONS_IMPROVE_WRITING','requires','continue','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','spanish','_shouldIncludeAction','translate-to-russian','REVIEW','AI_QUICK_ACTIONS_MAKE_SHORTER','has','ask-ai','ai.chat.context.document.enabled','korean','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AI_QUICK_ACTIONS_HEADING','_prepareQuickActionsDefinition','menuitem','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_TRANSLATE','buttonView','_initializeQuickActionsMenuBar','2792967vmLnxa','translate-to-french','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','_initializeQuickActionsComponents','make-tone-casual','186756RQLpgK','push','translate-to-italian','explain','make-tone-friendly','make-tone-direct','filter','adjust-length','isEnabled','items','2jqwYDO','set','9KmpUTi','aiQuickAction','chinese','execute','459634loKUsK','other','AI_QUICK_ACTIONS_MORE_CASUAL','translate-to-chinese','editor','AI_QUICK_ACTIONS_MAKE_LONGER','summarize','isPremiumPlugin','AI_QUICK_ACTIONS_CONTINUE_WRITING','init','icon','fix-grammar','getDefaultQuickActions','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','make-tone-confident','3505qqBLvp','includes','commands','AIConnector','translate-to-japanese','14226910zxfmph','DisplayNames','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','make-shorter','translate-to-spanish','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','33QwOFyC','AIChat','menu','AI_QUICK_ACTIONS_CHANGE_TONE','change-tone','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','CHAT','forEach','model','menuBarView','_executeQuickAction','54bmDIeG','English','editing','close','AI_QUICK_ACTIONS_MORE_CONFIDENT','chat-commands','label','translate-to-portuguese','AI_QUICK_ACTIONS_EXPLAIN','config','componentFactory','uiLanguage','russian','isOfficialPlugin','type','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','AI_QUICK_ACTIONS_ADJUST_LENGTH','menuBar:aiQuickActions','10343560ZxSYYE','ai-quick-actions-unavailable-model','language','actions','children','make-tone-professional','AI_QUICK_ACTIONS_SUMMARIZE','aiQuickActions','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','english','german','_quickActionsDefinition','italian','1300110jovJwJ','AI_QUICK_ACTIONS_CHAT_COMMANDS','ai-quick-actions-models-unable-to-retrieve','AIQuickActionsUI','portuguese','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','plugins','ACTION','5872bYWwOV','panelView','length','get','getAll','japanese','replace','AI_QUICK_ACTIONS_ASK_AI','AI_QUICK_ACTIONS_OTHER','AI_QUICK_ACTIONS_MORE_DIRECT','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','find','displayedPrompt','delegate','map','some','_initializeQuickActionsComponentsAndCommands','translate-to-korean','add'];_0x3ca8=function(){return _0x40800e;};return _0x3ca8();}import{aiQuickActionsButtonCreator as _0x2371d0}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x2a3f9c,BalloonToolbar as _0x707910,MenuBarMenuView as _0x2513e4,MenuBarMenuListView as _0x3280af,MenuBarMenuListItemView as _0x1914cc,MenuBarMenuListItemButtonView as _0x32109f}from'ckeditor5/src/ui.js';import{AIModels as _0x15d3ee}from'../aicore/model/aimodels.js';import{AIConnector as _0x12c42f}from'../aicore/aiconnector.js';import'../../theme/common/aibutton.css';import'../../theme/aiquickactions/aiquickactions.css';function _0x308c(_0x252d14,_0x22f913){const _0x3ca849=_0x3ca8();return _0x308c=function(_0x308cb6,_0x1eeb96){_0x308cb6=_0x308cb6-0x17c;let _0x324fce=_0x3ca849[_0x308cb6];return _0x324fce;},_0x308c(_0x252d14,_0x22f913);}const ee=_0x3f2a1d(0x189),ie=_0x3f2a1d(0x1e5),ne=_0x3f2a1d(0x1bd);export var AIQuickActionType;!function(_0x25a6d4){const _0x58bdf7=_0x3f2a1d;_0x25a6d4[_0x58bdf7(0x194)]=_0x58bdf7(0x194),_0x25a6d4[_0x58bdf7(0x1bf)]=_0x58bdf7(0x1bf),_0x25a6d4[_0x58bdf7(0x1f3)]=_0x58bdf7(0x1f3);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x5d8fc5){const _0x5cbde1=_0x3f2a1d;_0x5d8fc5[_0x5cbde1(0x194)]=_0x5cbde1(0x18e),_0x5d8fc5[_0x5cbde1(0x1bf)]=_0x5cbde1(0x1da),_0x5d8fc5[_0x5cbde1(0x1f3)]=_0x5cbde1(0x1e7);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x13663d{static get[_0x3f2a1d(0x1ec)](){return[_0x707910,_0x12c42f];}static get[_0x3f2a1d(0x1d4)](){const _0x54b8c8=_0x3f2a1d;return _0x54b8c8(0x1bb);}static get[_0x3f2a1d(0x1a6)](){return!0x0;}static get[_0x3f2a1d(0x21d)](){return!0x0;}async[_0x3f2a1d(0x17c)](){const _0x1fc166=_0x3f2a1d,_0x5059a8=await this[_0x1fc166(0x1d8)]();this[_0x1fc166(0x1fb)](_0x5059a8),this[_0x1fc166(0x1d0)]();}static[_0x3f2a1d(0x17f)](_0xf2003d){return function(_0x1d9fd9){const _0x4a3b99=_0x308c,_0x2dc9ba=new Intl[(_0x4a3b99(0x188))](['en'],{'type':_0x4a3b99(0x1ad)})['of'](_0x1d9fd9[_0x4a3b99(0x1a4)]),_0x38dce3=_0x2dc9ba||_0x4a3b99(0x19a),_0x4388e3=[{'id':_0x4a3b99(0x1f6),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1c7)),'type':AIQuickActionType[_0x4a3b99(0x194)],'icon':_0x497f58},{'id':_0x4a3b99(0x19e),'label':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1b9)),'icon':_0x497f58,'actions':[{'id':_0x4a3b99(0x209),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1a1)),'prompt':ee[_0x4a3b99(0x1c6)]('%0',_0x38dce3),'type':AIQuickActionType[_0x4a3b99(0x194)]},{'id':_0x4a3b99(0x21c),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1b1)),'prompt':ie[_0x4a3b99(0x1c6)]('%0',_0x38dce3),'type':AIQuickActionType[_0x4a3b99(0x194)]},{'id':_0x4a3b99(0x1e3),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1a8)),'prompt':ne[_0x4a3b99(0x1c6)]('%0',_0x38dce3),'type':AIQuickActionType[_0x4a3b99(0x194)]}]},{'id':_0x4a3b99(0x1df),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1eb)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'icon':_0x2be68e},{'id':_0x4a3b99(0x1ed),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x21e)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'icon':_0x3935ea},{'id':_0x4a3b99(0x17e),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1b3)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'icon':_0x1060a4},{'id':_0x4a3b99(0x20d),'label':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1a9)),'icon':_0x260c2f,'actions':[{'id':_0x4a3b99(0x18a),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1f4)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]},{'id':_0x4a3b99(0x1e8),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x21b)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]}]},{'id':_0x4a3b99(0x191),'label':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x190)),'icon':_0x21bd6f,'actions':[{'id':_0x4a3b99(0x205),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x218)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]},{'id':_0x4a3b99(0x20b),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1c9)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]},{'id':_0x4a3b99(0x20a),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x192)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]},{'id':_0x4a3b99(0x181),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x19d)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]},{'id':_0x4a3b99(0x1b0),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x180)),'type':AIQuickActionType[_0x4a3b99(0x1bf)]}]},{'id':_0x4a3b99(0x1de),'label':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1fe)),'icon':_0x3bda67,'actions':[{'id':_0x4a3b99(0x1d6),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1ca)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1b4)}},{'id':_0x4a3b99(0x219),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1e9)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x214)}},{'id':_0x4a3b99(0x18b),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1e6)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1f0)}},{'id':_0x4a3b99(0x1db),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x193)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1b5)}},{'id':_0x4a3b99(0x202),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x203)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1dc)}},{'id':_0x4a3b99(0x186),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x18c)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1c5)}},{'id':_0x4a3b99(0x1a0),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1fd)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1bc)}},{'id':_0x4a3b99(0x1d1),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1e4)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1f8)}},{'id':_0x4a3b99(0x208),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1f9)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1b7)}},{'id':_0x4a3b99(0x1f2),'displayedPrompt':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1ef)),'type':AIQuickActionType[_0x4a3b99(0x1bf)],'actionName':_0x4a3b99(0x1de),'args':{'language':_0x4a3b99(0x1a5)}}]},{'id':_0x4a3b99(0x217),'label':_0x1b31e7(_0x1d9fd9,_0x4a3b99(0x1c8)),'icon':_0x4586ce,'actions':[]}];return _0x4388e3;}(_0xf2003d);}async[_0x3f2a1d(0x1d8)](){const _0x144f44=_0x3f2a1d,_0x5a613c=AIQuickActionsUI[_0x144f44(0x17f)](this[_0x144f44(0x21a)][_0x144f44(0x1d5)]),_0x57e9f0=this[_0x144f44(0x21a)][_0x144f44(0x1a2)][_0x144f44(0x1c3)](_0x144f44(0x1ea))||[];let _0x44da7f=[];try{_0x44da7f=await new _0x15d3ee({'connector':this[_0x144f44(0x21a)][_0x144f44(0x1be)][_0x144f44(0x1c3)](_0x144f44(0x185)),'locale':this[_0x144f44(0x21a)][_0x144f44(0x1d5)]})[_0x144f44(0x1c4)]();}catch(_0xdb6871){const _0x203e33=new _0xf1313f(_0x144f44(0x1ba),this,{'error':_0xdb6871});_0x1749c9(_0x203e33[_0x144f44(0x1d3)]);}finally{const _0xc33348=_0x57e9f0[_0x144f44(0x1ce)](_0xa38606=>({..._0xa38606,'icon':void 0x0}));_0x5a613c[_0x144f44(0x1cb)](_0x48ab73=>_0x144f44(0x217)===_0x48ab73['id'])[_0x144f44(0x1ae)][_0x144f44(0x207)](..._0xc33348),_0x5a613c[_0x144f44(0x195)](_0x2062ac=>{const _0x2f8d2c=_0x144f44;if(_0x2f8d2c(0x1ae)in _0x2062ac)_0x2062ac[_0x2f8d2c(0x1ae)][_0x2f8d2c(0x195)](_0x1de6dd=>{const _0x47c6f0=_0x2f8d2c;if(_0x1de6dd[_0x47c6f0(0x20e)]=!!_0x44da7f[_0x47c6f0(0x1cb)](_0x6c958a=>_0x6c958a['id']===_0x1de6dd[_0x47c6f0(0x196)])||void 0x0===_0x1de6dd[_0x47c6f0(0x196)],!_0x1de6dd[_0x47c6f0(0x20e)]){const _0x594525=new _0xf1313f(_0x47c6f0(0x1ac),this,{'actionId':_0x1de6dd['id'],'modelId':_0x1de6dd[_0x47c6f0(0x196)]});_0x1749c9(_0x594525[_0x47c6f0(0x1d3)]);}});else{if(_0x2062ac[_0x2f8d2c(0x20e)]=!!_0x44da7f[_0x2f8d2c(0x1cb)](_0x50cd28=>_0x50cd28['id']===_0x2062ac[_0x2f8d2c(0x196)])||void 0x0===_0x2062ac[_0x2f8d2c(0x196)],!_0x2062ac[_0x2f8d2c(0x20e)]){const _0x2ebc34=new _0xf1313f(_0x2f8d2c(0x1ac),this,{'actionId':_0x2062ac['id'],'modelId':_0x2062ac[_0x2f8d2c(0x196)]});_0x1749c9(_0x2ebc34[_0x2f8d2c(0x1d3)]);}}});}return _0x5a613c;}[_0x3f2a1d(0x1d0)](){const _0x316315=_0x3f2a1d,_0x4ecdf7=new _0x2a3f9c(this[_0x316315(0x21a)][_0x316315(0x1d5)]);_0x4ecdf7[_0x316315(0x1e2)](),this[_0x316315(0x1dd)](_0x4ecdf7),this[_0x316315(0x200)](),this[_0x316315(0x204)](_0x4ecdf7);}[_0x3f2a1d(0x1dd)](_0x3e6262){const _0x473c1e=_0x3f2a1d,_0x5c5b86=this[_0x473c1e(0x21a)][_0x473c1e(0x1a2)][_0x473c1e(0x1c3)](_0x473c1e(0x1d9))??!0x0;this[_0x473c1e(0x21a)]['ui'][_0x473c1e(0x1a3)][_0x473c1e(0x1d2)](_0x473c1e(0x1b2),_0x2e9e9e({'editor':this[_0x473c1e(0x21a)],'content':this[_0x473c1e(0x1b6)],'buttonDefinition':{'icon':_0x2a9af0,'label':_0x1b31e7(this[_0x473c1e(0x21a)][_0x473c1e(0x1d5)],_0x473c1e(0x1fa))},'bodyCollection':_0x3e6262,'hasSearch':_0x5c5b86}));}[_0x3f2a1d(0x1fb)](_0x53a700){const _0x4c20ac=_0x3f2a1d;this[_0x4c20ac(0x1b6)]=_0x53a700[_0x4c20ac(0x1ce)](_0x44b199=>{const _0x776c72=_0x4c20ac;if(_0x776c72(0x1ae)in _0x44b199){const _0x192d45=_0x44b199;return{..._0x192d45,'actions':_0x192d45[_0x776c72(0x1ae)][_0x776c72(0x1ce)](_0x2e50d3=>{const {actions:_0x2c160b,..._0x4bdcb1}=_0x192d45;return{..._0x2e50d3,'parent':_0x4bdcb1};})[_0x776c72(0x20c)](_0x33f762=>this[_0x776c72(0x1f1)](_0x33f762))};}return _0x44b199;})[_0x4c20ac(0x20c)](_0x1f6c34=>_0x4c20ac(0x1ae)in _0x1f6c34?_0x1f6c34[_0x4c20ac(0x1ae)][_0x4c20ac(0x1c2)]>0x0:this[_0x4c20ac(0x1f1)](_0x1f6c34));}[_0x3f2a1d(0x1f1)](_0x542edc){const _0x547a04=_0x3f2a1d,_0x2b34d6=this[_0x547a04(0x21a)][_0x547a04(0x1a2)][_0x547a04(0x1c3)](_0x547a04(0x1ee))||[];return this[_0x547a04(0x21a)][_0x547a04(0x1be)][_0x547a04(0x1f5)](AIQuickActionTypeToPluginName[_0x542edc[_0x547a04(0x1a7)]])&&!_0x2b34d6[_0x547a04(0x183)](_0x542edc['id'])&&!(_0x542edc[_0x547a04(0x1a7)]===AIQuickActionType[_0x547a04(0x194)]&&!0x1===this[_0x547a04(0x21a)][_0x547a04(0x1a2)][_0x547a04(0x1c3)](_0x547a04(0x1f7)));}[_0x3f2a1d(0x204)](_0x365d87){const _0x7c463d=_0x3f2a1d;this[_0x7c463d(0x1b6)][_0x7c463d(0x195)](_0x390c03=>{const _0x38d478=_0x7c463d;if(_0x38d478(0x1ae)in _0x390c03){const _0x3e1445=_0x2e9e9e({'editor':this[_0x38d478(0x21a)],'content':_0x390c03[_0x38d478(0x1ae)],'buttonDefinition':_0x390c03,'bodyCollection':_0x365d87});this[_0x38d478(0x21a)]['ui'][_0x38d478(0x1a3)][_0x38d478(0x1d2)](_0x390c03['id'],_0x3e1445),_0x390c03[_0x38d478(0x1ae)][_0x38d478(0x195)](_0x1935a7=>{const _0x5e12f5=_0x38d478,_0x346985=_0x2371d0({'editor':this[_0x5e12f5(0x21a)],'action':_0x1935a7});this[_0x5e12f5(0x21a)]['ui'][_0x5e12f5(0x1a3)][_0x5e12f5(0x1d2)](_0x1935a7['id'],_0x346985);});}else{const _0x6df563=_0x2371d0({'editor':this[_0x38d478(0x21a)],'action':_0x390c03,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x38d478(0x21a)]['ui'][_0x38d478(0x1a3)][_0x38d478(0x1d2)](_0x390c03['id'],_0x6df563);}});}[_0x3f2a1d(0x200)](){const _0x44fd4d=_0x3f2a1d;this[_0x44fd4d(0x21a)]['ui'][_0x44fd4d(0x1a3)][_0x44fd4d(0x1d2)](_0x44fd4d(0x1aa),_0x37f07d=>{const _0x27d711=_0x44fd4d,_0x452295=new _0x2513e4(_0x37f07d),_0x1c5f7d=_0x1b31e7(_0x37f07d,_0x27d711(0x1fa));_0x452295[_0x27d711(0x1ff)][_0x27d711(0x211)]({'label':_0x1c5f7d,'icon':_0x2a9af0});const _0x2c99e0=new _0x3280af(_0x37f07d);_0x2c99e0[_0x27d711(0x211)]({'ariaLabel':_0x1c5f7d,'role':_0x27d711(0x18f)}),this[_0x27d711(0x1b6)][_0x27d711(0x195)](_0x456731=>{const _0x1787f1=_0x27d711;if(_0x1787f1(0x1ae)in _0x456731){const _0x285576=_0x456731,_0xfb1b68=new _0x1914cc(_0x37f07d,_0x452295),_0x5d594e=new _0x2513e4(_0x37f07d),_0x1bc747=new _0x3280af(_0x37f07d);_0x5d594e[_0x1787f1(0x1ff)][_0x1787f1(0x211)]({'label':_0x285576[_0x1787f1(0x19f)],'icon':_0x285576[_0x1787f1(0x17d)]}),_0x285576[_0x1787f1(0x1ae)][_0x1787f1(0x195)](_0x484060=>{const _0x3f04f6=_0x1787f1,_0x748337=new _0x1914cc(_0x37f07d,_0x5d594e),_0xee0e15=new _0x32109f(_0x37f07d);_0xee0e15[_0x3f04f6(0x211)]({'label':_0x484060[_0x3f04f6(0x1cc)],'icon':_0x484060[_0x3f04f6(0x17d)],'role':_0x3f04f6(0x1fc),'isEnabled':_0x484060[_0x3f04f6(0x20e)]}),_0xee0e15['on'](_0x3f04f6(0x215),()=>{const _0x19258b=_0x3f04f6;this[_0x19258b(0x198)](_0x484060);}),_0xee0e15[_0x3f04f6(0x1cd)](_0x3f04f6(0x215))['to'](_0x5d594e),_0x748337[_0x3f04f6(0x1af)][_0x3f04f6(0x1d2)](_0xee0e15),_0x1bc747[_0x3f04f6(0x20f)][_0x3f04f6(0x1d2)](_0x748337);}),_0x5d594e[_0x1787f1(0x1c1)][_0x1787f1(0x1af)][_0x1787f1(0x1d2)](_0x1bc747),_0xfb1b68[_0x1787f1(0x1af)][_0x1787f1(0x1d2)](_0x5d594e),_0x2c99e0[_0x1787f1(0x20f)][_0x1787f1(0x1d2)](_0xfb1b68);}else{const _0x12fff1=_0x456731,_0x4a4961=new _0x1914cc(_0x37f07d,_0x452295),_0x3e10ea=new _0x32109f(_0x37f07d);_0x3e10ea[_0x1787f1(0x211)]({'label':_0x12fff1[_0x1787f1(0x1cc)],'icon':_0x12fff1[_0x1787f1(0x17d)],'role':_0x1787f1(0x1fc),'isEnabled':_0x12fff1[_0x1787f1(0x20e)]}),_0x3e10ea['on'](_0x1787f1(0x215),()=>{const _0x3e8dad=_0x1787f1;this[_0x3e8dad(0x198)](_0x12fff1);}),_0x3e10ea[_0x1787f1(0x1cd)](_0x1787f1(0x215))['to'](_0x452295),_0x4a4961[_0x1787f1(0x1af)][_0x1787f1(0x1d2)](_0x3e10ea),_0x2c99e0[_0x1787f1(0x20f)][_0x1787f1(0x1d2)](_0x4a4961);}});const _0x5286af=Object[_0x27d711(0x1e1)](AIQuickActionTypeToPluginName)[_0x27d711(0x1cf)](_0xce8858=>this[_0x27d711(0x21a)][_0x27d711(0x1be)][_0x27d711(0x1f5)](_0xce8858));return _0x452295[_0x27d711(0x211)]({'isEnabled':_0x5286af}),_0x452295[_0x27d711(0x1c1)][_0x27d711(0x1af)][_0x27d711(0x1d2)](_0x2c99e0),_0x452295;});}[_0x3f2a1d(0x198)](_0x4dedcf){const _0x5f375d=_0x3f2a1d,_0x528c2f=this[_0x5f375d(0x21a)];_0x528c2f[_0x5f375d(0x19b)][_0x5f375d(0x1d7)][_0x5f375d(0x1e0)](),_0x528c2f[_0x5f375d(0x184)][_0x5f375d(0x215)](_0x5f375d(0x213),_0x4dedcf);const _0x3b917d=_0x528c2f['ui'][_0x5f375d(0x1d7)][_0x5f375d(0x197)];_0x3b917d&&_0x3b917d[_0x5f375d(0x19c)]&&_0x3b917d[_0x5f375d(0x19c)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x467b02,_0x83f68f){const _0x1bc686=_0x5423,_0x3f734c=_0x467b02();while(!![]){try{const _0x47efea=parseInt(_0x1bc686(0x1c6))/0x1*(-parseInt(_0x1bc686(0x1bb))/0x2)+parseInt(_0x1bc686(0x1cf))/0x3+-parseInt(_0x1bc686(0x1ca))/0x4*(-parseInt(_0x1bc686(0x1c1))/0x5)+parseInt(_0x1bc686(0x1c2))/0x6+-parseInt(_0x1bc686(0x1c9))/0x7+-parseInt(_0x1bc686(0x1bf))/0x8+parseInt(_0x1bc686(0x1cd))/0x9;if(_0x47efea===_0x83f68f)break;else _0x3f734c['push'](_0x3f734c['shift']());}catch(_0x297c05){_0x3f734c['push'](_0x3f734c['shift']());}}}(_0x5b74,0xbb195));function _0x5b74(){const _0x54e80e=['execute','locale','parent','16577gbNjbU','view','extendTemplate','10371697usGKYA','372608wEArji','editing','icon','6695307fRxOVG','displayedPrompt','3339690XRlYan','commands','set','ck-ai-quick-actions-button','menuitem','134WcUohf','aiQuickAction','isEnabled','bindTemplate','2909056sgWycA','focus','20xsVxHB','8955348vcPAzH'];_0x5b74=function(){return _0x54e80e;};return _0x5b74();}import{ButtonView as _0x528c66}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x147acb}from'@ckeditor/ckeditor5-icons';function _0x5423(_0x59a79a,_0x1bee19){const _0x5b7428=_0x5b74();return _0x5423=function(_0x5423d9,_0x33999a){_0x5423d9=_0x5423d9-0x1b7;let _0x1a1ce7=_0x5b7428[_0x5423d9];return _0x1a1ce7;},_0x5423(_0x59a79a,_0x1bee19);}export function aiQuickActionsButtonCreator(_0x5272c9){const {editor:_0x37f3a6,action:_0x107a4e,withText:_0x4ce2e7=!0x1,withIcon:_0x17dcba=!0x0,isInDropdown:_0x5e40c3=!0x0,shouldPreventFocus:_0x1706b0=!0x1}=_0x5272c9;return()=>{const _0x588a15=_0x5423,_0x102214=_0x37f3a6[_0x588a15(0x1c4)],_0x9864b3=new _0x528c66(_0x102214),_0x1df316=_0x9864b3[_0x588a15(0x1be)];_0x5e40c3&&_0x9864b3[_0x588a15(0x1c8)]({'on':{'mouseenter':_0x1df316['to'](()=>{const _0xabc637=_0x588a15;_0x1706b0&&_0x1706b0()||_0x9864b3[_0xabc637(0x1c0)]();})}});const _0x5ce438=_0x107a4e[_0x588a15(0x1cc)]??_0x107a4e[_0x588a15(0x1c5)]?.[_0x588a15(0x1cc)];return _0x9864b3[_0x588a15(0x1b8)]({'label':_0x107a4e[_0x588a15(0x1ce)],'withText':_0x4ce2e7,'role':_0x588a15(0x1ba),'icon':_0x17dcba?_0x5ce438??_0x147acb:void 0x0,'tooltip':!_0x4ce2e7,'class':_0x588a15(0x1b9),'isEnabled':_0x107a4e[_0x588a15(0x1bd)]}),_0x9864b3['on'](_0x588a15(0x1c3),()=>{const _0x28da28=_0x588a15;_0x37f3a6[_0x28da28(0x1cb)][_0x28da28(0x1c7)][_0x28da28(0x1c0)](),_0x37f3a6[_0x28da28(0x1b7)][_0x28da28(0x1c3)](_0x28da28(0x1bc),_0x107a4e);}),_0x9864b3;};}
|