@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4a80(_0x411976,_0x480a47){const _0x2b301a=_0x2b30();return _0x4a80=function(_0x4a80af,_0x226c90){_0x4a80af=_0x4a80af-0xce;let _0xe6fa1d=_0x2b301a[_0x4a80af];return _0xe6fa1d;},_0x4a80(_0x411976,_0x480a47);}(function(_0x291feb,_0x426668){const _0x1d498d=_0x4a80,_0xf46103=_0x291feb();while(!![]){try{const _0x347f51=parseInt(_0x1d498d(0xe0))/0x1+parseInt(_0x1d498d(0xe5))/0x2*(-parseInt(_0x1d498d(0xdb))/0x3)+parseInt(_0x1d498d(0xdd))/0x4+-parseInt(_0x1d498d(0xcf))/0x5*(-parseInt(_0x1d498d(0xd0))/0x6)+-parseInt(_0x1d498d(0xd5))/0x7*(-parseInt(_0x1d498d(0xda))/0x8)+-parseInt(_0x1d498d(0xd3))/0x9+-parseInt(_0x1d498d(0xd4))/0xa;if(_0x347f51===_0x426668)break;else _0xf46103['push'](_0xf46103['shift']());}catch(_0x1c2998){_0xf46103['push'](_0xf46103['shift']());}}}(_0x2b30,0x47b2c));import{parseDocument as _0x2e8325}from'htmlparser2';import{append as _0x227f8c,appendChild as _0x2724dc,find as _0x3e7b61,findAll as _0x1f78a6,findOne as _0x495d63,getChildren as _0x432b25,isComment as _0x579972,isTag as _0x474ec8,prepend as _0x105907,prependChild as _0x55f95e,removeElement as _0x5248ab,replaceElement as _0x4d3ebd,textContent as _0x53b20e,getParent as _0x10ea27,hasChildren as _0x54e25a}from'domutils';import _0x42e914 from'dom-serializer';import{cloneNode as _0x449741,isDocument as _0x35db85,isText as _0x33d64e,Element as _0x240635,Text as _0x497d74,Document as _0x570881,NodeWithChildren as _0x35b5ac}from'domhandler';export{_0x449741 as cloneNode,_0x3e7b61 as find,_0x495d63 as findOne,_0x1f78a6 as findAll,_0x432b25 as getChildren,_0x10ea27 as getParent,_0x579972 as isComment,_0x35db85 as isDocument,_0x474ec8 as isTag,_0x33d64e as isText,_0x227f8c as append,_0x2724dc as appendChild,_0x105907 as prepend,_0x55f95e as prependChild,_0x42e914 as render,_0x5248ab as removeElement,_0x4d3ebd as replaceElement,_0x53b20e as textContent,_0x54e25a as hasChildren,_0x240635 as Element,_0x570881 as Document,_0x35b5ac as NodeWithChildren,_0x497d74 as Text};export function parse(_0x4eb02c){return _0x2e8325(_0x4eb02c);}export function serialize(_0x4a5f71){return _0x42e914(_0x4a5f71);}export function findByAttribute(_0x172172,_0x45169f,_0x5316be){const _0x42e0a7=_0x4a80,_0x597905=null!==_0x45169f?_0x436377=>_0x436377[_0x42e0a7(0xdf)][_0x172172]===_0x45169f:_0x273482=>Boolean(_0x273482[_0x42e0a7(0xdf)][_0x172172]);return _0x495d63(_0x55e73e=>_0x474ec8(_0x55e73e)&&_0x597905(_0x55e73e),_0x5316be);}export function findAllByAttribute(_0x10265c,_0x1efb01,_0x465f51){const _0x1313e9=_0x4a80,_0x2108a4=null!==_0x1efb01?_0x51aefa=>_0x51aefa[_0x1313e9(0xdf)][_0x10265c]===_0x1efb01:_0x2c9b6a=>Boolean(_0x2c9b6a[_0x1313e9(0xdf)][_0x10265c]);return _0x1f78a6(_0x57a6b1=>_0x474ec8(_0x57a6b1)&&_0x2108a4(_0x57a6b1),_0x465f51);}function _0x2b30(){const _0x37e1ca=['push','1333368mfUYtp','2202310aWuFbx','7vAuToW','parentNode','slice','reverse','beforeend','1776784wnkTVV','854922rkFVsn','indexOf','460188eFsgvK','forEach','attribs','210280XWnhgr','replace','nextSibling','afterend','cloneNode','2glMgwJ','afterbegin','map','20YLjHGh','599412XhjWzW','beforebegin'];_0x2b30=function(){return _0x37e1ca;};return _0x2b30();}export function findAllComments(_0x245d8c){return _0x3e7b61(_0x5e0063=>_0x579972(_0x5e0063),_0x245d8c,!0x0,0x1/0x0);}export function getAttribute(_0x4a3849,_0x1a0380){const _0x2f46e8=_0x4a80;return _0x4a3849&&_0x474ec8(_0x4a3849)?_0x4a3849[_0x2f46e8(0xdf)][_0x1a0380]:null;}export function setAttribute(_0x21d29e,_0x34acbd,_0x280c6e){const _0x1caad6=_0x4a80;_0x474ec8(_0x21d29e)&&(null===_0x280c6e?delete _0x21d29e[_0x1caad6(0xdf)][_0x34acbd]:_0x21d29e[_0x1caad6(0xdf)][_0x34acbd]=_0x280c6e);}export function insertElement(_0x558946,_0x3a5449,_0x112cd0){const _0x41ff0f=_0x4a80,_0x5a7f7c=_0x3a5449[_0x41ff0f(0xe4)](!0x0);_0x41ff0f(0xd1)===_0x112cd0?_0x105907(_0x558946,_0x5a7f7c):_0x41ff0f(0xe6)===_0x112cd0?_0x55f95e(_0x558946,_0x5a7f7c):_0x41ff0f(0xd9)===_0x112cd0?_0x2724dc(_0x558946,_0x5a7f7c):_0x41ff0f(0xe3)===_0x112cd0&&_0x227f8c(_0x558946,_0x5a7f7c);}export function moveElement(_0x2c121b,_0x2d2a3f){_0x5248ab(_0x2c121b),_0x4d3ebd(_0x2d2a3f,_0x2c121b);}export function clone(_0x15824d){const _0x1093a8=_0x4a80;return _0x15824d[_0x1093a8(0xe4)](!0x0);}export function getParents(_0x59b51b){const _0x2970f3=_0x4a80,_0x42cf89=[];let _0x3fd320=_0x59b51b;for(;_0x3fd320;)_0x3fd320=_0x10ea27(_0x3fd320),_0x3fd320&&_0x42cf89[_0x2970f3(0xd2)](_0x3fd320);return _0x42cf89;}export function normalizeHTML(_0x5eaa21){const _0x394a45=_0x4a80;return _0x5eaa21[_0x394a45(0xe1)](/^\s+/gm,'')[_0x394a45(0xe1)](/\s+$/gm,'')[_0x394a45(0xe1)](/\n*/g,'')[_0x394a45(0xe1)](/\s+/g,'\x20')[_0x394a45(0xe1)](/>\s*</g,'><');}export function areNodesSame(_0x58e027,_0x2b96cc){return normalizeHTML(serialize(_0x58e027))===normalizeHTML(serialize(_0x2b96cc));}export function getNodeNestingLevel(_0x157ded){const _0x1539e4=_0x4a80;let _0x2ab18b=0x0;for(;_0x157ded[_0x1539e4(0xd6)];)_0x157ded=_0x157ded[_0x1539e4(0xd6)],_0x2ab18b++;return _0x2ab18b;}export function removeElementsAfter(_0x45353e){const _0x302627=_0x4a80,_0x50605b=[];let _0x417f77=_0x45353e[_0x302627(0xe2)];for(;_0x417f77;)_0x50605b[_0x302627(0xd2)](_0x417f77),_0x417f77=_0x417f77[_0x302627(0xe2)];_0x50605b[_0x302627(0xde)](_0x991c1e=>{_0x5248ab(_0x991c1e);});}export function getNodePath(_0x883f12){const _0x4b0738=_0x4a80;return[_0x883f12,...getParents(_0x883f12)][_0x4b0738(0xd7)](0x0,-0x1)[_0x4b0738(0xce)](_0x4075ca=>{const _0x2ff9bc=_0x4b0738,_0x196f85=_0x10ea27(_0x4075ca);return _0x432b25(_0x196f85)[_0x2ff9bc(0xdc)](_0x4075ca);})[_0x4b0738(0xd8)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x196af3=_0x1d38;(function(_0x155ae5,_0x395ab0){const _0x5d5766=_0x1d38,_0xe783b5=_0x155ae5();while(!![]){try{const _0x4dcdc6=-parseInt(_0x5d5766(0x13a))/0x1*(parseInt(_0x5d5766(0x12b))/0x2)+parseInt(_0x5d5766(0x12f))/0x3*(-parseInt(_0x5d5766(0x13b))/0x4)+-parseInt(_0x5d5766(0x141))/0x5*(parseInt(_0x5d5766(0x145))/0x6)+-parseInt(_0x5d5766(0x115))/0x7+parseInt(_0x5d5766(0x10d))/0x8*(parseInt(_0x5d5766(0x139))/0x9)+-parseInt(_0x5d5766(0x116))/0xa+-parseInt(_0x5d5766(0x11b))/0xb*(-parseInt(_0x5d5766(0x112))/0xc);if(_0x4dcdc6===_0x395ab0)break;else _0xe783b5['push'](_0xe783b5['shift']());}catch(_0x427e8e){_0xe783b5['push'](_0xe783b5['shift']());}}}(_0x3ff3,0x404f8));function _0x1d38(_0x2237fc,_0x1fe5aa){const _0x3ff37d=_0x3ff3();return _0x1d38=function(_0x1d38d4,_0x3621ff){_0x1d38d4=_0x1d38d4-0x10d;let _0x275643=_0x3ff37d[_0x1d38d4];return _0x275643;},_0x1d38(_0x2237fc,_0x1fe5aa);}import _0x581ed4 from'morphdom';import{NodeWithChildren as _0x3fd8c4,Text as _0x535159,Element as _0x54c568,isText as _0x57b794,isDocument as _0x2a9998,isTag as _0x46a495,cloneNode as _0x28b1a5,getChildren as _0x412ef8,prepend as _0x70e63b,removeElement as _0x4b2975,textContent as _0x2e25d2,render as _0x25ec23}from'./htmlparser.js';import{logWarning as _0x168391}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x196af3(0x126)];[_0x196af3(0x114)]=!0x1;[_0x196af3(0x12d)]=null;[_0x196af3(0x13e)]=[];[_0x196af3(0x13d)]=0x0;[_0x196af3(0x138)]=null;constructor(_0x526b04){const _0x2c2ebd=_0x196af3;this[_0x2c2ebd(0x126)]={'delay':_0x526b04[_0x2c2ebd(0x134)]??0x14,'textNodeStyle':_0x526b04[_0x2c2ebd(0x127)],'onStreamUpdate':_0x526b04[_0x2c2ebd(0x110)]||(()=>{})};}async[_0x196af3(0x12e)]({document:_0x51edf5,targetElement:_0x142802,abortSignal:_0x46b980}){const _0x339307=_0x196af3;this[_0x339307(0x114)]&&this[_0x339307(0x13f)](),_0x46b980?.[_0x339307(0x131)](_0x339307(0x123),this[_0x339307(0x13f)][_0x339307(0x10e)](this)),this[_0x339307(0x12d)]=_0x28b1a5(_0x51edf5,!0x0),this[_0x339307(0x13e)]=this[_0x339307(0x133)](),this[_0x339307(0x114)]=!0x0,this[_0x339307(0x13d)]>this[_0x339307(0x13e)][_0x339307(0x12c)]&&(_0x168391(_0x339307(0x135),{'currentIndex':this[_0x339307(0x13d)],'nodeList':this[_0x339307(0x13e)]}),this[_0x339307(0x13d)]=this[_0x339307(0x13e)][_0x339307(0x12c)]);for(let _0x39f7c2=0x0;_0x39f7c2<this[_0x339307(0x13d)];_0x39f7c2++)this[_0x339307(0x13e)][_0x39f7c2][_0x339307(0x111)]=!0x0;let _0x3e333d=0x0;for(let _0x3f9d9c=this[_0x339307(0x13d)];_0x3f9d9c<this[_0x339307(0x13e)][_0x339307(0x12c)];_0x3f9d9c++){const _0x5638df=Date[_0x339307(0x122)](),_0x2a69fe=this[_0x339307(0x13e)][_0x3f9d9c],_0x39b711=_0x5638df-_0x3e333d;_0x2a69fe[_0x339307(0x111)]=!0x0;let _0x5e2695=_0x2a69fe[_0x339307(0x118)];for(;_0x5e2695;)_0x5e2695[_0x339307(0x111)]=!0x0,_0x5e2695=_0x5e2695[_0x339307(0x118)];if(_0x39b711<this[_0x339307(0x126)][_0x339307(0x134)])try{const {promise:_0x15cc7c,abortController:_0x32fe7d}=pr(this[_0x339307(0x126)][_0x339307(0x134)]-_0x39b711);this[_0x339307(0x138)]=_0x32fe7d,await _0x15cc7c;}catch(_0x50bd95){return;}_0x581ed4(_0x142802,'<'+_0x142802[_0x339307(0x11a)]+'>'+this[_0x339307(0x11e)](this[_0x339307(0x12d)])+'</'+_0x142802[_0x339307(0x11a)]+'>',{'childrenOnly':!0x0}),this[_0x339307(0x126)][_0x339307(0x110)]&&this[_0x339307(0x126)][_0x339307(0x110)](),this[_0x339307(0x13d)]=_0x3f9d9c,_0x3e333d=Date[_0x339307(0x122)]();}this[_0x339307(0x114)]=!0x1;}[_0x196af3(0x11f)]({targetElement:_0x425619}){const _0x2ac788=_0x196af3;Array[_0x2ac788(0x132)](_0x425619[_0x2ac788(0x13c)](_0x2ac788(0x119)))[_0x2ac788(0x14a)]()[_0x2ac788(0x146)](_0x2edb7f=>{const _0xc06fcb=_0x2ac788;_0x2edb7f[_0xc06fcb(0x148)](_0x2edb7f[_0xc06fcb(0x136)][0x0]);});}[_0x196af3(0x13f)](){const _0x2d702c=_0x196af3;this[_0x2d702c(0x114)]=!0x1,this[_0x2d702c(0x138)]&&(this[_0x2d702c(0x138)][_0x2d702c(0x123)](),this[_0x2d702c(0x138)]=null);}[_0x196af3(0x11e)](_0x123a43){const _0x39ac3b=_0x196af3;let _0x20cbfe='';if(function(_0x41929f){return _0x2a9998(_0x41929f);}(_0x123a43)){for(const _0x24acdf of _0x123a43[_0x39ac3b(0x130)])_0x20cbfe+=this[_0x39ac3b(0x11e)](_0x24acdf);}else{if(dr(_0x123a43)){if(!_0x123a43[_0x39ac3b(0x111)])return'';const _0x2908c2=_0x123a43,_0x5d9e92=Object[_0x39ac3b(0x10f)](_0x2908c2[_0x39ac3b(0x117)])[_0x39ac3b(0x11d)](([_0x4ff9c7,_0x4e6260])=>_0x4ff9c7+'=\x22'+_0x4e6260+'\x22')[_0x39ac3b(0x147)]('\x20');_0x20cbfe+='<'+_0x2908c2[_0x39ac3b(0x11a)]+(_0x5d9e92?'\x20'+_0x5d9e92:'')+'>';for(const _0x161778 of _0x412ef8(_0x2908c2))_0x20cbfe+=this[_0x39ac3b(0x11e)](_0x161778);_0x20cbfe+='</'+_0x2908c2[_0x39ac3b(0x11a)]+'>';}else{if(!ar(_0x123a43))return'';if(!_0x123a43[_0x39ac3b(0x111)])return'';!function(_0x510faf){const _0x2243e3=_0x39ac3b;if(!_0x510faf[_0x2243e3(0x118)]||!dr(_0x510faf[_0x2243e3(0x118)]))return!0x1;if(!cr[_0x2243e3(0x125)](_0x510faf[_0x2243e3(0x118)][_0x2243e3(0x11a)]))return!0x1;return!_0x2e25d2(_0x510faf)[_0x2243e3(0x143)](/^\s*[<>]\s*$/);}(_0x123a43)?_0x20cbfe+=_0x25ec23(_0x123a43):_0x20cbfe+=_0x25ec23(new _0x54c568(_0x39ac3b(0x142),{'data-ck-html-streamer-word-chunk':'','style':this[_0x39ac3b(0x126)][_0x39ac3b(0x127)]},[_0x123a43]));}}return _0x20cbfe;}[_0x196af3(0x133)](){const _0x4026c9=_0x196af3,_0x576a3e=[];return function(_0x53310a,_0x5db760){const _0x22e390=_0x1d38,_0x73a290=_0x13ecdc=>{const _0x3b5b00=_0x1d38;if(_0x5db760(_0x13ecdc),_0x13ecdc instanceof _0x3fd8c4)for(let _0x4abd44=0x0;_0x4abd44<_0x13ecdc[_0x3b5b00(0x130)][_0x3b5b00(0x12c)];_0x4abd44++){const _0x52710d=_0x13ecdc[_0x3b5b00(0x130)][_0x4abd44];_0x73a290(_0x52710d);}};for(let _0x2886a8=0x0;_0x2886a8<_0x53310a[_0x22e390(0x130)][_0x22e390(0x12c)];_0x2886a8++)_0x73a290(_0x53310a[_0x22e390(0x130)][_0x2886a8]);}(this[_0x4026c9(0x12d)],_0x4ee4b9=>{const _0x3b370b=_0x4026c9;if(ar(_0x4ee4b9)){const _0x38a1c3=this[_0x3b370b(0x12a)](_0x4ee4b9);_0x38a1c3[_0x3b370b(0x12c)]&&_0x576a3e[_0x3b370b(0x121)](..._0x38a1c3);}_0x4ee4b9[_0x3b370b(0x14b)]||_0x4ee4b9[_0x3b370b(0x140)]||_0x576a3e[_0x3b370b(0x121)](_0x4ee4b9);}),_0x576a3e;}[_0x196af3(0x12a)](_0x116c41){const _0x2b1c83=_0x196af3;if(_0x116c41[_0x2b1c83(0x14b)]||_0x116c41[_0x2b1c83(0x140)])return[];const _0x2ebd81=_0x2e25d2(_0x116c41)[_0x2b1c83(0x143)](/(?:\s*\S+\s*)/g),_0x446846=[];if(_0x2ebd81&&_0x2ebd81[_0x2b1c83(0x12c)]>0x1){for(const _0x29ef98 of _0x2ebd81){const _0x1dee8d=new _0x535159(_0x29ef98);_0x1dee8d[_0x2b1c83(0x140)]=!0x0,_0x70e63b(_0x116c41,_0x1dee8d),_0x446846[_0x2b1c83(0x121)](_0x1dee8d);}_0x116c41[_0x2b1c83(0x14b)]=!0x0,_0x4b2975(_0x116c41);}return _0x446846;}}function _0x3ff3(){const _0x3cb6f4=['length','document','stream','27nqWqmG','children','addEventListener','from','getParsedDocumentNodeList','delay','ai-html-streamer-current-index-out-of-bounds','childNodes','code','timeoutAbortController','117NWJSIR','24422TxIjpm','13884Tvucuj','querySelectorAll','currentIndex','nodesList','stop','isWordSplitResult','654475rlGeud','span','match','strong','12aLNdoB','forEach','join','replaceWith','div','reverse','isWordSplitSource','74584BAxDPf','bind','entries','onStreamUpdate','shouldBeStreamed','1296cyGJNB','del','isStreaming','3225390yKvoxW','4766320YhMdaP','attribs','parent','span[data-ck-html-streamer-word-chunk]','tagName','164681hbwtlb','signal','map','renderNode','cleanUpAnimations','sub','push','now','abort','sup','includes','options','textNodeStyle','ins','mark','splitTextNodeIntoWordNodes','20SZXocW'];_0x3ff3=function(){return _0x3cb6f4;};return _0x3ff3();}const cr=['p','li','td','th',_0x196af3(0x142),'h1','h2','h3','h4','h5','h6','b',_0x196af3(0x144),'i','em',_0x196af3(0x129),_0x196af3(0x113),_0x196af3(0x128),_0x196af3(0x124),_0x196af3(0x120),'a',_0x196af3(0x137),_0x196af3(0x149)];function ar(_0x52699a){return _0x57b794(_0x52699a);}function dr(_0x2cb448){return _0x46a495(_0x2cb448);}function pr(_0x4911aa){const _0x19faa7=new AbortController();return{'promise':new Promise((_0x403930,_0xde01e9)=>{const _0x1ffe76=_0x1d38,_0x129d1e=setTimeout(_0x403930,_0x4911aa);_0x19faa7[_0x1ffe76(0x11c)][_0x1ffe76(0x131)](_0x1ffe76(0x123),()=>{clearTimeout(_0x129d1e),_0xde01e9();});}),'abortController':_0x19faa7};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x50ab(_0xee7418,_0xdd719f){const _0x1549fd=_0x1549();return _0x50ab=function(_0x50abf9,_0x4d4b1){_0x50abf9=_0x50abf9-0x120;let _0x3b2253=_0x1549fd[_0x50abf9];return _0x3b2253;},_0x50ab(_0xee7418,_0xdd719f);}const _0x594243=_0x50ab;function _0x1549(){const _0x397633=['PageUp','End','scrollTo','pointerdown','stop','key','wheel','signal','scrollHeight','_stop','isUserPaused','7461630HTfaBN','_rafUpdate','162040daHguP','touchstart','isRunning','bind','11155MReadn','ArrowUp','95463ySZsei','abortController','2061129HnLrxp','1KGAZeo','deltaY','_onUserEvent','28JNYoID','abort','1243tMsRlV','addEventListener','animationFrameId','PageDown','1488964eNPahP','6186168RGLnHC','includes','Home','type','destroy','_isAtBottom','start','element','ArrowDown','2670IXkaWk','auto','keydown','8DSMuie'];_0x1549=function(){return _0x397633;};return _0x1549();}(function(_0x2fa243,_0x217440){const _0x21d9c3=_0x50ab,_0x165ae3=_0x2fa243();while(!![]){try{const _0x5e6dc3=parseInt(_0x21d9c3(0x125))/0x1*(-parseInt(_0x21d9c3(0x12e))/0x2)+parseInt(_0x21d9c3(0x122))/0x3*(parseInt(_0x21d9c3(0x128))/0x4)+-parseInt(_0x21d9c3(0x120))/0x5*(parseInt(_0x21d9c3(0x138))/0x6)+parseInt(_0x21d9c3(0x124))/0x7*(parseInt(_0x21d9c3(0x13b))/0x8)+parseInt(_0x21d9c3(0x147))/0x9+-parseInt(_0x21d9c3(0x149))/0xa*(-parseInt(_0x21d9c3(0x12a))/0xb)+-parseInt(_0x21d9c3(0x12f))/0xc;if(_0x5e6dc3===_0x217440)break;else _0x165ae3['push'](_0x165ae3['shift']());}catch(_0x468f60){_0x165ae3['push'](_0x165ae3['shift']());}}}(_0x1549,0xe1b6d));const fs=[_0x594243(0x142),_0x594243(0x14a),_0x594243(0x13f),_0x594243(0x13a)],Fs=[_0x594243(0x121),_0x594243(0x137),_0x594243(0x13c),_0x594243(0x12d),_0x594243(0x131),_0x594243(0x13d),'\x20'];export class ScrollManager{[_0x594243(0x136)];[_0x594243(0x12c)];[_0x594243(0x14b)];[_0x594243(0x123)];[_0x594243(0x146)];constructor(_0xba252f){const _0x58e2ac=_0x594243;this[_0x58e2ac(0x136)]=_0xba252f,this[_0x58e2ac(0x12c)]=null,this[_0x58e2ac(0x14b)]=!0x1,this[_0x58e2ac(0x123)]=new AbortController(),this[_0x58e2ac(0x146)]=!0x1;for(const _0x857f44 of fs){const _0x3d4e0a=_0x58e2ac(0x13a)!==_0x857f44;this[_0x58e2ac(0x136)][_0x58e2ac(0x12b)](_0x857f44,this[_0x58e2ac(0x127)][_0x58e2ac(0x14c)](this),{'passive':_0x3d4e0a,'signal':this[_0x58e2ac(0x123)][_0x58e2ac(0x143)]});}}[_0x594243(0x135)](){const _0x404a0d=_0x594243;this[_0x404a0d(0x14b)]||(this[_0x404a0d(0x14b)]=!0x0,this[_0x404a0d(0x146)]=!0x1,this[_0x404a0d(0x12c)]=requestAnimationFrame(this[_0x404a0d(0x148)][_0x404a0d(0x14c)](this)));}[_0x594243(0x140)](){requestAnimationFrame(()=>{const _0x4e1a94=_0x50ab;this[_0x4e1a94(0x145)]();});}[_0x594243(0x133)](){const _0x2cb2aa=_0x594243;this[_0x2cb2aa(0x145)](),this[_0x2cb2aa(0x123)][_0x2cb2aa(0x129)]();}[_0x594243(0x145)](){const _0x3e8333=_0x594243;null!==this[_0x3e8333(0x12c)]&&(cancelAnimationFrame(this[_0x3e8333(0x12c)]),this[_0x3e8333(0x12c)]=null),this[_0x3e8333(0x14b)]&&(this[_0x3e8333(0x14b)]=!0x1),this[_0x3e8333(0x146)]=!0x1;}[_0x594243(0x127)](_0x4e019a){const _0xddc7ae=_0x594243;if(this[_0xddc7ae(0x14b)]){if(_0xddc7ae(0x13a)===_0x4e019a[_0xddc7ae(0x132)]){const _0x581934=_0x4e019a[_0xddc7ae(0x141)];if(!Fs[_0xddc7ae(0x130)](_0x581934))return;}_0x4e019a instanceof WheelEvent?_0x4e019a[_0xddc7ae(0x126)]<0x0?this[_0xddc7ae(0x146)]=!0x0:this[_0xddc7ae(0x146)]=!this[_0xddc7ae(0x134)]():this[_0xddc7ae(0x146)]=!0x0;}}[_0x594243(0x134)](){const _0xc116ec=_0x594243,{scrollTop:_0x24b6d1,scrollHeight:_0x8dbc56,clientHeight:_0x357d06}=this[_0xc116ec(0x136)];return _0x8dbc56-_0x24b6d1-_0x357d06<=0x5;}[_0x594243(0x148)](){const _0x543deb=_0x594243;this[_0x543deb(0x14b)]&&(this[_0x543deb(0x146)]||this[_0x543deb(0x136)][_0x543deb(0x13e)]({'top':this[_0x543deb(0x136)][_0x543deb(0x144)],'behavior':_0x543deb(0x139)}),this[_0x543deb(0x12c)]=requestAnimationFrame(this[_0x543deb(0x148)][_0x543deb(0x14c)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x28ef3e=_0xd5d7;(function(_0x7f6159,_0x45bf04){var _0x3e15dd=_0xd5d7,_0x3e7cd1=_0x7f6159();while(!![]){try{var _0x4df76e=parseInt(_0x3e15dd(0x1a5))/0x1+-parseInt(_0x3e15dd(0x19f))/0x2+-parseInt(_0x3e15dd(0x1a8))/0x3*(parseInt(_0x3e15dd(0x19d))/0x4)+parseInt(_0x3e15dd(0x1a3))/0x5+parseInt(_0x3e15dd(0x1a7))/0x6+-parseInt(_0x3e15dd(0x19e))/0x7+parseInt(_0x3e15dd(0x1a2))/0x8;if(_0x4df76e===_0x45bf04)break;else _0x3e7cd1['push'](_0x3e7cd1['shift']());}catch(_0x328d23){_0x3e7cd1['push'](_0x3e7cd1['shift']());}}}(_0x30da,0x6d8a8));import{Plugin as _0xf63875}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x4302f3}from'./aitogglebutton/aitogglebuttonui.js';import{SuggestionsConversion as _0x5469a2}from'@ckeditor/ckeditor5-collaboration-core';export class AIEditorIntegration extends _0xf63875{static get[_0x28ef3e(0x1a1)](){return[_0x4302f3,_0x5469a2];}static get[_0x28ef3e(0x1a6)](){var _0x1f5bac=_0x28ef3e;return _0x1f5bac(0x1a0);}static get[_0x28ef3e(0x1a9)](){return!0x0;}static get[_0x28ef3e(0x1a4)](){return!0x0;}}function _0xd5d7(_0x24c72c,_0x8e8c76){var _0x30da00=_0x30da();return _0xd5d7=function(_0xd5d7f7,_0x4bd774){_0xd5d7f7=_0xd5d7f7-0x19d;var _0x23c7a1=_0x30da00[_0xd5d7f7];return _0x23c7a1;},_0xd5d7(_0x24c72c,_0x8e8c76);}function _0x30da(){var _0x1600ff=['1276035nvOwWL','isPremiumPlugin','70471kZSdgw','pluginName','2165466ooDZIW','8481vXKKXH','isOfficialPlugin','1028owbtYX','83797JuAABx','1362348SjQLXJ','AIEditorIntegration','requires','9454200vnJwtn'];_0x30da=function(){return _0x1600ff;};return _0x30da();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x70368c=_0x663b;(function(_0x4288ad,_0x2f2f71){const _0x47ccaa=_0x663b,_0x44f7e9=_0x4288ad();while(!![]){try{const _0x189710=-parseInt(_0x47ccaa(0x130))/0x1*(-parseInt(_0x47ccaa(0x146))/0x2)+parseInt(_0x47ccaa(0x13e))/0x3+-parseInt(_0x47ccaa(0x143))/0x4+-parseInt(_0x47ccaa(0x141))/0x5*(parseInt(_0x47ccaa(0x14f))/0x6)+parseInt(_0x47ccaa(0x138))/0x7+parseInt(_0x47ccaa(0x14c))/0x8+parseInt(_0x47ccaa(0x137))/0x9;if(_0x189710===_0x2f2f71)break;else _0x44f7e9['push'](_0x44f7e9['shift']());}catch(_0x8bba64){_0x44f7e9['push'](_0x44f7e9['shift']());}}}(_0x4721,0x62bba));function _0x4721(){const _0x31699a=['1062816vpWsNq','execute','add','6djAloc','set','toggleAi','52jfoUqk','ck-ai-toggle-button','isEnabled','menuBar:toggleAi','value','editor','get','4517379mjArys','601531xPddVG','AI_TOGGLE_BUTTON_LABEL','bind','isOn','requires','AIToggleButtonUI','450996LHrjOn','init','isPremiumPlugin','778335ceETiZ','isOfficialPlugin','2494588VxHXfS','listenTo','menuitemcheckbox','12026FEPqOI','componentFactory','commands','locale','pluginName','_createAIUIButton'];_0x4721=function(){return _0x31699a;};return _0x4721();}import{Plugin as _0x14d489}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x4a5644}from'./toggleaicommand.js';import{ButtonView as _0x57666c,MenuBarMenuListItemButtonView as _0xec9214}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x30e0a0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c174e}from'../../aicore/utils/common-translations.js';import{AITabs as _0x576e10}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';function _0x663b(_0x13adfe,_0x4b88f6){const _0x472187=_0x4721();return _0x663b=function(_0x663b41,_0x591b5e){_0x663b41=_0x663b41-0x12f;let _0x57b436=_0x472187[_0x663b41];return _0x57b436;},_0x663b(_0x13adfe,_0x4b88f6);}export class AIToggleButtonUI extends _0x14d489{static get[_0x70368c(0x13c)](){return[_0x576e10];}static get[_0x70368c(0x14a)](){const _0x21de51=_0x70368c;return _0x21de51(0x13d);}static get[_0x70368c(0x142)](){return!0x0;}static get[_0x70368c(0x140)](){return!0x0;}[_0x70368c(0x13f)](){const _0x3119cb=_0x70368c,_0xc9452=this[_0x3119cb(0x135)];_0xc9452[_0x3119cb(0x148)][_0x3119cb(0x14e)](_0x3119cb(0x12f),new _0x4a5644(_0xc9452)),_0xc9452['ui'][_0x3119cb(0x147)][_0x3119cb(0x14e)](_0x3119cb(0x12f),()=>{const _0x574bfd=_0x3119cb,_0x207ad6=this[_0x574bfd(0x14b)](_0x57666c);return _0x207ad6[_0x574bfd(0x150)]({'tooltip':!0x0,'class':_0x574bfd(0x131)}),_0x207ad6;}),_0xc9452['ui'][_0x3119cb(0x147)][_0x3119cb(0x14e)](_0x3119cb(0x133),()=>{const _0x351325=_0x3119cb,_0x32e3f5=this[_0x351325(0x14b)](_0xec9214);return _0x32e3f5[_0x351325(0x150)]({'role':_0x351325(0x145)}),_0x32e3f5;});}[_0x70368c(0x14b)](_0x3404d8){const _0x3bdc29=_0x70368c,_0xad3b7e=this[_0x3bdc29(0x135)],_0x3e7ad1=_0xad3b7e[_0x3bdc29(0x148)][_0x3bdc29(0x136)](_0x3bdc29(0x12f)),_0x5c2f9b=new _0x3404d8(_0xad3b7e[_0x3bdc29(0x149)]);return _0x5c2f9b[_0x3bdc29(0x150)]({'label':_0x2c174e(_0xad3b7e[_0x3bdc29(0x149)],_0x3bdc29(0x139)),'icon':_0x30e0a0,'isToggleable':!0x0}),_0x5c2f9b[_0x3bdc29(0x13a)](_0x3bdc29(0x132))['to'](_0x3e7ad1),_0x5c2f9b[_0x3bdc29(0x13a)](_0x3bdc29(0x13b))['to'](_0x3e7ad1,_0x3bdc29(0x134),_0x10de0a=>!!_0x10de0a),this[_0x3bdc29(0x144)](_0x5c2f9b,_0x3bdc29(0x14d),()=>{const _0x141586=_0x3bdc29;_0x3e7ad1[_0x141586(0x14d)]();}),_0x5c2f9b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26b19f=_0x15b4;(function(_0x52efe9,_0x5ddf5a){const _0x4da6d2=_0x15b4,_0x402d55=_0x52efe9();while(!![]){try{const _0x38bd41=parseInt(_0x4da6d2(0x7c))/0x1+parseInt(_0x4da6d2(0x7d))/0x2*(-parseInt(_0x4da6d2(0x74))/0x3)+parseInt(_0x4da6d2(0x76))/0x4*(-parseInt(_0x4da6d2(0x78))/0x5)+-parseInt(_0x4da6d2(0x85))/0x6+parseInt(_0x4da6d2(0x73))/0x7+parseInt(_0x4da6d2(0x7a))/0x8+-parseInt(_0x4da6d2(0x7e))/0x9*(-parseInt(_0x4da6d2(0x7f))/0xa);if(_0x38bd41===_0x5ddf5a)break;else _0x402d55['push'](_0x402d55['shift']());}catch(_0x4f8668){_0x402d55['push'](_0x402d55['shift']());}}}(_0x4ef3,0x67ad4));function _0x4ef3(){const _0x287b4e=['AITabs','168252TSfrwu','1072779qhmsPn','get','88HoRBMK','plugins','40570UDaSVg','isEnabled','5917616RdZSBM','bind','622177etJlgK','4MTVxhB','27FwCvRC','940430UVTzni','value','isVisible','view','editor','execute','2098140CuKwBn'];_0x4ef3=function(){return _0x287b4e;};return _0x4ef3();}function _0x15b4(_0x5a9257,_0x27f4ac){const _0x4ef357=_0x4ef3();return _0x15b4=function(_0x15b457,_0x41f0d6){_0x15b457=_0x15b457-0x72;let _0x4b4001=_0x4ef357[_0x15b457];return _0x4b4001;},_0x15b4(_0x5a9257,_0x27f4ac);}import{Command as _0x3cd66d}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x3cd66d{constructor(_0x1b1fda){const _0x47c515=_0x15b4;super(_0x1b1fda);const _0x4cf031=_0x1b1fda[_0x47c515(0x77)][_0x47c515(0x75)](_0x47c515(0x72))[_0x47c515(0x82)];this[_0x47c515(0x7b)](_0x47c515(0x80))['to'](_0x4cf031,_0x47c515(0x81)),this[_0x47c515(0x79)]=!0x0;}[_0x26b19f(0x84)](){const _0x33dec6=_0x26b19f,_0x2ca5d9=this[_0x33dec6(0x83)][_0x33dec6(0x77)][_0x33dec6(0x75)](_0x33dec6(0x72))[_0x33dec6(0x82)];_0x2ca5d9[_0x33dec6(0x81)]=!_0x2ca5d9[_0x33dec6(0x81)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3a90f2=_0x4411;function _0x4411(_0x248808,_0x2fb721){var _0x3d9549=_0x3d95();return _0x4411=function(_0x441113,_0x3d4f10){_0x441113=_0x441113-0x175;var _0x3a5ad7=_0x3d9549[_0x441113];return _0x3a5ad7;},_0x4411(_0x248808,_0x2fb721);}function _0x3d95(){var _0xd6bd82=['131697wQGGXq','1405420NwpCVk','pluginName','193716eJQrnm','52419iNPblI','AIQuickActions','requires','2729090Asybxv','config','isOfficialPlugin','95VCUzfz','133908mvBcoe','3237990EfQssG','232JnCVQi','2dAPhaa','define','isPremiumPlugin','ai.quickActions'];_0x3d95=function(){return _0xd6bd82;};return _0x3d95();}(function(_0x1abab6,_0x2a4f47){var _0xd9fe6c=_0x4411,_0x4244e9=_0x1abab6();while(!![]){try{var _0xd08a77=parseInt(_0xd9fe6c(0x17b))/0x1*(-parseInt(_0xd9fe6c(0x182))/0x2)+parseInt(_0xd9fe6c(0x183))/0x3+parseInt(_0xd9fe6c(0x180))/0x4+-parseInt(_0xd9fe6c(0x177))/0x5*(parseInt(_0xd9fe6c(0x178))/0x6)+parseInt(_0xd9fe6c(0x186))/0x7+parseInt(_0xd9fe6c(0x17a))/0x8*(parseInt(_0xd9fe6c(0x17f))/0x9)+-parseInt(_0xd9fe6c(0x179))/0xa;if(_0xd08a77===_0x2a4f47)break;else _0x4244e9['push'](_0x4244e9['shift']());}catch(_0xb9d583){_0x4244e9['push'](_0x4244e9['shift']());}}}(_0x3d95,0x3af5a));import{Plugin as _0x29460a}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0xd6d1f8}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0x2c7c55}from'./aiquickactionsediting.js';import{AIActions as _0x557a7c}from'../aiactions/aiactions.js';export class AIQuickActions extends _0x29460a{static get[_0x3a90f2(0x185)](){return[_0xd6d1f8,_0x2c7c55,_0x557a7c];}static get[_0x3a90f2(0x181)](){var _0x4008b2=_0x3a90f2;return _0x4008b2(0x184);}static get[_0x3a90f2(0x176)](){return!0x0;}static get[_0x3a90f2(0x17d)](){return!0x0;}constructor(_0x4d763e){var _0x43c4e7=_0x3a90f2;super(_0x4d763e),_0x4d763e[_0x43c4e7(0x175)][_0x43c4e7(0x17c)](_0x43c4e7(0x17e),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x261389=_0xc8ab;function _0x3df5(){const _0x462f9d=['AIReviewMode','handleAIReviewAction','_handleAIReviewAction','actionName','_handleAIChatAction','args','AIChatController','REVIEW','6057492sMBMiB','184608mAXMBl','removeSelectionFromChatContext','type','20oVlAWZ','prompt','AIActions','33552eqiYxa','getSelectedBlocks','displayedPrompt','change','setSelection','27RkbLxa','view','ask-ai','label','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','startConversation','editor','model','857226bPdaoo','_expandSelectionIfCollapsed','chat','2971360gfvUMz','_handleAIActionsActionLabel','schema','isCollapsed','ai-quick-actions-plugin-not-found','other','activeTab','ACTION','executeAction','get','execute','AIChat','document','log','_handleAIActionsAction','480257sTMEcO','addSelectionToChatContext','plugins','isVisible','1802524DujdvT','parent','6qeIzYn','focusPromptInput','has','activateTab','CHAT','getLimitElement','icon','locale','AITabs','sendMessage','selection'];_0x3df5=function(){return _0x462f9d;};return _0x3df5();}(function(_0x435478,_0x670c1c){const _0x571b11=_0xc8ab,_0xc7285b=_0x435478();while(!![]){try{const _0x56bf77=parseInt(_0x571b11(0xd7))/0x1+parseInt(_0x571b11(0xb8))/0x2*(parseInt(_0x571b11(0x9e))/0x3)+parseInt(_0x571b11(0x9c))/0x4+-parseInt(_0x571b11(0xb5))/0x5*(parseInt(_0x571b11(0xc5))/0x6)+-parseInt(_0x571b11(0xb1))/0x7+parseInt(_0x571b11(0xb2))/0x8+parseInt(_0x571b11(0xbd))/0x9*(parseInt(_0x571b11(0xc8))/0xa);if(_0x56bf77===_0x670c1c)break;else _0xc7285b['push'](_0xc7285b['shift']());}catch(_0x1f88b4){_0xc7285b['push'](_0xc7285b['shift']());}}}(_0x3df5,0x6bee4));import{Command as _0x3bdd91}from'ckeditor5/src/core.js';import{CKEditorError as _0x351694,first as _0x922f55}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x357c6d}from'./aiquickactionsui.js';function _0xc8ab(_0x5292cc,_0x1684a9){const _0x3df5c9=_0x3df5();return _0xc8ab=function(_0xc8ab73,_0x35fc01){_0xc8ab73=_0xc8ab73-0x9c;let _0x56a357=_0x3df5c9[_0xc8ab73];return _0x56a357;},_0xc8ab(_0x5292cc,_0x1684a9);}import{getTranslation as _0x425bd9}from'../aicore/utils/common-translations.js';export class AIQuickActionsCommand extends _0x3bdd91{[_0x261389(0xd2)](_0x3c3890){const _0x16e310=_0x261389;switch(this[_0x16e310(0xc6)](),_0x3c3890[_0x16e310(0xb4)]){case _0x357c6d[_0x16e310(0xa2)]:if(!this[_0x16e310(0xc3)][_0x16e310(0xd9)][_0x16e310(0xa0)](_0x16e310(0xd3))){const _0x3e067b=_0x425bd9(this[_0x16e310(0xc3)][_0x16e310(0xa5)],_0x16e310(0xc1),_0x16e310(0xd3));throw new _0x351694(_0x16e310(0xcc),this[_0x16e310(0xc3)],{'errorMessage':_0x3e067b});}this[_0x16e310(0xad)](_0x3c3890);break;case _0x357c6d[_0x16e310(0xcf)]:if(!this[_0x16e310(0xc3)][_0x16e310(0xd9)][_0x16e310(0xa0)](_0x16e310(0xb7))){const _0x1ddf0b=_0x425bd9(this[_0x16e310(0xc3)][_0x16e310(0xa5)],_0x16e310(0xc1),_0x16e310(0xb7));throw new _0x351694(_0x16e310(0xcc),this[_0x16e310(0xc3)],{'errorMessage':_0x1ddf0b});}this[_0x16e310(0xd6)](_0x3c3890);break;case _0x357c6d[_0x16e310(0xb0)]:if(!this[_0x16e310(0xc3)][_0x16e310(0xd9)][_0x16e310(0xa0)](_0x16e310(0xa9))){const _0x2a27a5=_0x425bd9(this[_0x16e310(0xc3)][_0x16e310(0xa5)],_0x16e310(0xc1),_0x16e310(0xa9));throw new _0x351694(_0x16e310(0xcc),this[_0x16e310(0xc3)],{'errorMessage':_0x2a27a5});}this[_0x16e310(0xab)](_0x3c3890);}}async[_0x261389(0xad)](_0x762737){const _0x2d0b79=_0x261389,_0x39bd01=this[_0x2d0b79(0xc3)][_0x2d0b79(0xd9)][_0x2d0b79(0xd1)](_0x2d0b79(0xd3)),_0x490c71=this[_0x2d0b79(0xc3)][_0x2d0b79(0xd9)][_0x2d0b79(0xd1)](_0x2d0b79(0xaf)),_0x603887=this[_0x2d0b79(0xc3)][_0x2d0b79(0xd9)][_0x2d0b79(0xd1)](_0x2d0b79(0xa6))[_0x2d0b79(0xbe)];if(_0x603887[_0x2d0b79(0xda)]||(_0x603887[_0x2d0b79(0xda)]=!0x0),_0x2d0b79(0xc7)!==_0x603887[_0x2d0b79(0xce)]&&_0x603887[_0x2d0b79(0xa1)](_0x2d0b79(0xc7)),_0x2d0b79(0xbf)===_0x762737['id'])_0x490c71[_0x2d0b79(0xb3)](),await _0x39bd01[_0x2d0b79(0xd8)](),_0x39bd01[_0x2d0b79(0x9f)]();else await _0x39bd01[_0x2d0b79(0xc2)](),_0x490c71[_0x2d0b79(0xb3)](),await _0x39bd01[_0x2d0b79(0xd8)](),_0x39bd01[_0x2d0b79(0x9f)](),await _0x39bd01[_0x2d0b79(0xa7)]({'message':_0x762737[_0x2d0b79(0xb6)]||_0x762737[_0x2d0b79(0xba)],'quickActionData':{'id':_0x762737['id'],'displayedPrompt':_0x762737[_0x2d0b79(0xba)]}});}[_0x261389(0xc6)](){const _0x16c8bf=_0x261389,_0x4eef9f=this[_0x16c8bf(0xc3)],_0x43d9ea=_0x4eef9f[_0x16c8bf(0xc4)][_0x16c8bf(0xd4)][_0x16c8bf(0xa8)];if(!_0x43d9ea[_0x16c8bf(0xcb)])return;const _0x25436b=_0x922f55(_0x43d9ea[_0x16c8bf(0xb9)]())||_0x4eef9f[_0x16c8bf(0xc4)][_0x16c8bf(0xca)][_0x16c8bf(0xa3)](_0x43d9ea);_0x4eef9f[_0x16c8bf(0xc4)][_0x16c8bf(0xbb)](_0x2c8a47=>{const _0x47b513=_0x16c8bf;_0x2c8a47[_0x47b513(0xbc)](_0x25436b,'in');});}[_0x261389(0xc9)](_0x183cae){const _0x4a4188=_0x261389;return _0x183cae[_0x4a4188(0x9d)]?.[_0x4a4188(0xc0)]&&_0x4a4188(0xcd)!==_0x183cae[_0x4a4188(0x9d)]?.['id']?_0x183cae[_0x4a4188(0x9d)][_0x4a4188(0xc0)]+':\x20'+_0x183cae[_0x4a4188(0xba)]:_0x183cae[_0x4a4188(0xba)];}async[_0x261389(0xd6)](_0x459cfb){const _0x48811=_0x261389,_0x1e7f0d=this[_0x48811(0xc3)][_0x48811(0xd9)][_0x48811(0xd1)](_0x48811(0xb7)),_0x6f51a=_0x459cfb[_0x48811(0xb6)]?{'userMessage':_0x459cfb[_0x48811(0xb6)],'model':_0x459cfb[_0x48811(0xc4)]}:{'actionName':_0x459cfb[_0x48811(0xac)]||_0x459cfb['id'],'args':_0x459cfb[_0x48811(0xae)]},_0x20aff3=this[_0x48811(0xc9)](_0x459cfb);await _0x1e7f0d[_0x48811(0xd0)](_0x6f51a,_0x20aff3,_0x459cfb[_0x48811(0xa4)]);}async[_0x261389(0xab)](_0xc514ec){const _0x4d7706=_0x261389;console[_0x4d7706(0xd5)](_0x4d7706(0xaa),_0xc514ec);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x458f(_0x3b5cb3,_0x480fdf){const _0x38d398=_0x38d3();return _0x458f=function(_0x458f6a,_0x371c00){_0x458f6a=_0x458f6a-0x1d7;let _0x529a95=_0x38d398[_0x458f6a];return _0x529a95;},_0x458f(_0x3b5cb3,_0x480fdf);}const _0x550082=_0x458f;(function(_0x1993bf,_0x23e899){const _0x477487=_0x458f,_0xb2eeb9=_0x1993bf();while(!![]){try{const _0x15cd6=-parseInt(_0x477487(0x1f2))/0x1*(-parseInt(_0x477487(0x1ef))/0x2)+-parseInt(_0x477487(0x1da))/0x3+parseInt(_0x477487(0x1e6))/0x4+-parseInt(_0x477487(0x1f0))/0x5+-parseInt(_0x477487(0x1e1))/0x6*(-parseInt(_0x477487(0x1d8))/0x7)+-parseInt(_0x477487(0x1dd))/0x8+-parseInt(_0x477487(0x1e9))/0x9;if(_0x15cd6===_0x23e899)break;else _0xb2eeb9['push'](_0xb2eeb9['shift']());}catch(_0x431ba8){_0xb2eeb9['push'](_0xb2eeb9['shift']());}}}(_0x38d3,0x8feca));import{Plugin as _0x5da561}from'ckeditor5/src/core.js';function _0x38d3(){const _0x3f3593=['2487165ZDufeD','aiQuickAction','7oeQxhk','pluginName','7ZJCoAj','change:range','208785htGMnV','has','isOfficialPlugin','6263576IKWeQt','AIQuickActionsEditing','directChange','init','5112570ZMOLiV','AIChat','add','plugins','commands','2764364FKHdJr','editor','selection','1191096XYyKPb','get','removeSelectionFromChatContext','document','model','isPremiumPlugin','151042SsQKCF'];_0x38d3=function(){return _0x3f3593;};return _0x38d3();}import{AIQuickActionsCommand as _0x287151}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x5da561{static get[_0x550082(0x1d7)](){const _0x217bf5=_0x550082;return _0x217bf5(0x1de);}static get[_0x550082(0x1dc)](){return!0x0;}static get[_0x550082(0x1ee)](){return!0x0;}[_0x550082(0x1e0)](){const _0x4b25ef=_0x550082,_0x311dfc=this[_0x4b25ef(0x1e7)],_0x42f8c2=new _0x287151(this[_0x4b25ef(0x1e7)]);if(_0x311dfc[_0x4b25ef(0x1e5)][_0x4b25ef(0x1e3)](_0x4b25ef(0x1f1),_0x42f8c2),_0x311dfc[_0x4b25ef(0x1e4)][_0x4b25ef(0x1db)](_0x4b25ef(0x1e2))){const _0x48653a=this[_0x4b25ef(0x1e7)][_0x4b25ef(0x1e4)][_0x4b25ef(0x1ea)](_0x4b25ef(0x1e2));_0x311dfc[_0x4b25ef(0x1ed)][_0x4b25ef(0x1ec)][_0x4b25ef(0x1e8)]['on'](_0x4b25ef(0x1d9),(_0x512afd,_0x196e6e)=>{const _0x12910e=_0x4b25ef;_0x196e6e[_0x12910e(0x1df)]&&_0x48653a[_0x12910e(0x1eb)]();});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31719b=_0x151a;(function(_0xfdb7e2,_0xefc655){const _0x1ad665=_0x151a,_0x481df6=_0xfdb7e2();while(!![]){try{const _0x1e29ca=parseInt(_0x1ad665(0x209))/0x1*(-parseInt(_0x1ad665(0x208))/0x2)+-parseInt(_0x1ad665(0x169))/0x3+-parseInt(_0x1ad665(0x1f1))/0x4*(-parseInt(_0x1ad665(0x175))/0x5)+parseInt(_0x1ad665(0x1fc))/0x6*(-parseInt(_0x1ad665(0x189))/0x7)+-parseInt(_0x1ad665(0x19a))/0x8+parseInt(_0x1ad665(0x19e))/0x9*(-parseInt(_0x1ad665(0x1ac))/0xa)+parseInt(_0x1ad665(0x18e))/0xb;if(_0x1e29ca===_0xefc655)break;else _0x481df6['push'](_0x481df6['shift']());}catch(_0x15b084){_0x481df6['push'](_0x481df6['shift']());}}}(_0x5292,0x39063));import{IconAIAdjustLength as _0x17506e,IconAIChangeTone as _0x8e3233,IconAIChatCommands as _0x4f7f5a,IconAIContinueWriting as _0x109673,IconAIGrammarCheck as _0xfdd85d,IconAIImproveWriting as _0x553c44,IconAIOther as _0x4b087d,IconAIQuickActions as _0x141fa0,IconAITranslate as _0x50f643}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x46bf32}from'ckeditor5/src/core.js';import{CKEditorError as _0x4866d8,logError as _0x23c61f}from'ckeditor5/src/utils.js';import{getTranslation as _0x50c4e8}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x18dad2}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x43cf56}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x6b02ba,BalloonToolbar as _0x3674fa,MenuBarMenuView as _0x1995d7,MenuBarMenuListView as _0x536620,MenuBarMenuListItemView as _0x518ec2,MenuBarMenuListItemButtonView as _0x3a98da}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0x35273c}from'../aicore/model/aimodels.js';function _0x151a(_0x4e9690,_0x1f8277){const _0x529237=_0x5292();return _0x151a=function(_0x151a21,_0x5bd5a8){_0x151a21=_0x151a21-0x167;let _0x1395d4=_0x529237[_0x151a21];return _0x1395d4;},_0x151a(_0x4e9690,_0x1f8277);}function _0x5292(){const _0x58a929=['italian','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','translate-to-german','chinese','translate-to-japanese','_prepareQuickActionsDefinition','commands','10YWhuSG','_executeQuickAction','ai.chat.context.document.enabled','isOfficialPlugin','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','buttonView','model','translate-to-spanish','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','change-tone','some','summarize','AI_QUICK_ACTIONS_MAKE_LONGER','view','componentFactory','translate-to-russian','adjust-length','focus','translate-to-chinese','russian','<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>','pluginName','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','AI_QUICK_ACTIONS_MORE_CASUAL','message','improve-writing','ask-ai','<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>','children','make-tone-direct','aiQuickAction','length','<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>','push','menuBarView','getDefaultQuickActions','locale','AIQuickActionsUI','AI_QUICK_ACTIONS_OTHER','fix-grammar','set','AI_QUICK_ACTIONS_ADJUST_LENGTH','ai-quick-actions-unavailable-model','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','translate','CHAT','forEach','portuguese','english','execute','filter','has','french','English','editing','translate-to-portuguese','_initializeQuickActionsMenuBar','AI_QUICK_ACTIONS_TRANSLATE','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','getAvailableModels','delegate','spanish','AI_QUICK_ACTIONS_EXPLAIN','translate-to-french','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_CHAT_COMMANDS','map','attachToDom','70988koBEZl','panelView','AI_QUICK_ACTIONS_MAKE_SHORTER','uiLanguage','AI_QUICK_ACTIONS_CONTINUE_WRITING','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','AIReviewMode','ACTION','make-shorter','find','6uQhHsl','korean','displayedPrompt','translate-to-italian','make-tone-confident','ai.chat.models.displayedModels','menuitem','AI_QUICK_ACTIONS_SUMMARIZE','icon','highlight-key-points','AI_QUICK_ACTIONS_MORE_FRIENDLY','make-tone-friendly','5956pkwQJR','139GHlMKC','config','_initializeQuickActionsComponents','1053849BujYpm','items','AI_QUICK_ACTIONS_ASK_AI','translate-to-english','AI_QUICK_ACTIONS_CHANGE_TONE','AI_QUICK_ACTIONS_HEADING','menuBar:aiQuickActions','explain','_initializeQuickActionsDropdown','actions','japanese','ai.quickActions.isSearchEnabled','20dfZjbS','translate-to-korean','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','make-longer','german','AI_QUICK_ACTIONS_IMPROVE_WRITING','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','AIConnector','isEnabled','aiQuickActions','editor','continue','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AIChat','menu','plugins','_shouldIncludeAction','language','ai.quickActions.extraCommands','AI_QUICK_ACTIONS_MORE_DIRECT','2310259RHTmaa','_quickActionsDefinition','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','other','AIActions','19349781VKsSVy','REVIEW','close','AI_QUICK_ACTIONS_MORE_CONFIDENT','chat-commands','get','isPremiumPlugin','label','requires','type','ai-quick-actions-models-unable-to-retrieve','_getDefaultAndCustomActions','455704FJUaXs','DisplayNames','make-tone-professional','add','3998367exjXAX','replace','init','_initializeQuickActionsComponentsAndCommands','includes','values','make-tone-casual'];_0x5292=function(){return _0x58a929;};return _0x5292();}const oe=_0x31719b(0x1cc),ae=_0x31719b(0x1c7),se=_0x31719b(0x1c0);export var AIQuickActionType;!function(_0x1d3791){const _0x38b8cf=_0x31719b;_0x1d3791[_0x38b8cf(0x1d9)]=_0x38b8cf(0x1d9),_0x1d3791[_0x38b8cf(0x1f9)]=_0x38b8cf(0x1f9),_0x1d3791[_0x38b8cf(0x18f)]=_0x38b8cf(0x18f);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x2c191f){const _0x187296=_0x31719b;_0x2c191f[_0x187296(0x1d9)]=_0x187296(0x182),_0x2c191f[_0x187296(0x1f9)]=_0x187296(0x18d),_0x2c191f[_0x187296(0x18f)]=_0x187296(0x1f8);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x46bf32{static get[_0x31719b(0x196)](){return[_0x3674fa];}static get[_0x31719b(0x1c1)](){const _0xedc3a5=_0x31719b;return _0xedc3a5(0x1d1);}static get[_0x31719b(0x1af)](){return!0x0;}static get[_0x31719b(0x194)](){return!0x0;}async[_0x31719b(0x1a0)](){const _0x2b5bd8=_0x31719b,_0x38c19a=await this[_0x2b5bd8(0x199)]();this[_0x2b5bd8(0x1aa)](_0x38c19a),this[_0x2b5bd8(0x1a1)]();}static[_0x31719b(0x1cf)](_0xc7717f){return function(_0x5f5522){const _0x3b9544=_0x151a,_0x543ee1=new Intl[(_0x3b9544(0x19b))](['en'],{'type':_0x3b9544(0x186)})['of'](_0x5f5522[_0x3b9544(0x1f4)]),_0x41de3d=_0x543ee1||_0x3b9544(0x1e1),_0x3fa80e=[{'id':_0x3b9544(0x1c6),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x16b)),'type':AIQuickActionType[_0x3b9544(0x1d9)],'icon':_0x4f7f5a},{'id':_0x3b9544(0x192),'label':_0x50c4e8(_0x5f5522,_0x3b9544(0x1ee)),'icon':_0x4f7f5a,'actions':[{'id':_0x3b9544(0x170),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1eb)),'prompt':oe[_0x3b9544(0x19f)]('%0',_0x41de3d),'type':AIQuickActionType[_0x3b9544(0x1d9)]},{'id':_0x3b9544(0x1b7),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x203)),'prompt':ae[_0x3b9544(0x19f)]('%0',_0x41de3d),'type':AIQuickActionType[_0x3b9544(0x1d9)]},{'id':_0x3b9544(0x205),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1d7)),'prompt':se[_0x3b9544(0x19f)]('%0',_0x41de3d),'type':AIQuickActionType[_0x3b9544(0x1d9)]}]},{'id':_0x3b9544(0x1c5),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x17a)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'icon':_0x553c44},{'id':_0x3b9544(0x180),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1f5)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'icon':_0x109673},{'id':_0x3b9544(0x1d3),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1ed)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'icon':_0xfdd85d},{'id':_0x3b9544(0x1bc),'label':_0x50c4e8(_0x5f5522,_0x3b9544(0x1d5)),'icon':_0x17506e,'actions':[{'id':_0x3b9544(0x1fa),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1f3)),'type':AIQuickActionType[_0x3b9544(0x1f9)]},{'id':_0x3b9544(0x178),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1b8)),'type':AIQuickActionType[_0x3b9544(0x1f9)]}]},{'id':_0x3b9544(0x1b5),'label':_0x50c4e8(_0x5f5522,_0x3b9544(0x16d)),'icon':_0x8e3233,'actions':[{'id':_0x3b9544(0x1a4),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1c3)),'type':AIQuickActionType[_0x3b9544(0x1f9)]},{'id':_0x3b9544(0x1c9),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x188)),'type':AIQuickActionType[_0x3b9544(0x1f9)]},{'id':_0x3b9544(0x207),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x206)),'type':AIQuickActionType[_0x3b9544(0x1f9)]},{'id':_0x3b9544(0x200),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x191)),'type':AIQuickActionType[_0x3b9544(0x1f9)]},{'id':_0x3b9544(0x19c),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1a6)),'type':AIQuickActionType[_0x3b9544(0x1f9)]}]},{'id':_0x3b9544(0x1d8),'label':_0x50c4e8(_0x5f5522,_0x3b9544(0x1e5)),'icon':_0x50f643,'actions':[{'id':_0x3b9544(0x16c),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x17b)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1dc)}},{'id':_0x3b9544(0x1be),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1b0)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1a8)}},{'id':_0x3b9544(0x1b3),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1b4)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1ea)}},{'id':_0x3b9544(0x1a7),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1c2)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x179)}},{'id':_0x3b9544(0x1ec),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x181)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1e0)}},{'id':_0x3b9544(0x1a9),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x177)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x173)}},{'id':_0x3b9544(0x1e3),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1f6)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1db)}},{'id':_0x3b9544(0x176),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1f7)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1fd)}},{'id':_0x3b9544(0x1ff),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x18b)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1a5)}},{'id':_0x3b9544(0x1bb),'displayedPrompt':_0x50c4e8(_0x5f5522,_0x3b9544(0x1e7)),'type':AIQuickActionType[_0x3b9544(0x1f9)],'actionName':_0x3b9544(0x1d8),'args':{'language':_0x3b9544(0x1bf)}}]},{'id':_0x3b9544(0x18c),'label':_0x50c4e8(_0x5f5522,_0x3b9544(0x1d2)),'icon':_0x4b087d,'actions':[]}];return _0x3fa80e;}(_0xc7717f);}async[_0x31719b(0x199)](){const _0x1452cd=_0x31719b,_0x1fb9ae=AIQuickActionsUI[_0x1452cd(0x1cf)](this[_0x1452cd(0x17f)][_0x1452cd(0x1d0)]),_0x3c7dcb=this[_0x1452cd(0x17f)][_0x1452cd(0x167)][_0x1452cd(0x193)](_0x1452cd(0x187))||[];let _0xaedb83=[];try{_0xaedb83=await new _0x35273c({'connector':this[_0x1452cd(0x17f)][_0x1452cd(0x184)][_0x1452cd(0x193)](_0x1452cd(0x17c)),'availableModels':this[_0x1452cd(0x17f)][_0x1452cd(0x167)][_0x1452cd(0x193)](_0x1452cd(0x201)),'locale':this[_0x1452cd(0x17f)][_0x1452cd(0x1d0)]})[_0x1452cd(0x1e8)]();}catch(_0x17ae3d){const _0x4de479=new _0x4866d8(_0x1452cd(0x198),this,{'error':_0x17ae3d});_0x23c61f(_0x4de479[_0x1452cd(0x1c4)]);}finally{const _0x16ff5c=_0x3c7dcb[_0x1452cd(0x1ef)](_0x430ec3=>({..._0x430ec3,'icon':void 0x0}));_0x1fb9ae[_0x1452cd(0x1fb)](_0x184b64=>_0x1452cd(0x18c)===_0x184b64['id'])[_0x1452cd(0x172)][_0x1452cd(0x1cd)](..._0x16ff5c),_0x1fb9ae[_0x1452cd(0x1da)](_0x395ab7=>{const _0x4cf054=_0x1452cd;if(_0x4cf054(0x172)in _0x395ab7)_0x395ab7[_0x4cf054(0x172)][_0x4cf054(0x1da)](_0x4f4f98=>{const _0xd18203=_0x4cf054;if(_0x4f4f98[_0xd18203(0x17d)]=!!_0xaedb83[_0xd18203(0x1fb)](_0x144b5a=>_0x144b5a['id']===_0x4f4f98[_0xd18203(0x1b2)])||void 0x0===_0x4f4f98[_0xd18203(0x1b2)],!_0x4f4f98[_0xd18203(0x17d)]){const _0x377c8b=new _0x4866d8(_0xd18203(0x1d6),this,{'actionId':_0x4f4f98['id'],'modelId':_0x4f4f98[_0xd18203(0x1b2)]});_0x23c61f(_0x377c8b[_0xd18203(0x1c4)]);}});else{if(_0x395ab7[_0x4cf054(0x17d)]=!!_0xaedb83[_0x4cf054(0x1fb)](_0x1a2fc4=>_0x1a2fc4['id']===_0x395ab7[_0x4cf054(0x1b2)])||void 0x0===_0x395ab7[_0x4cf054(0x1b2)],!_0x395ab7[_0x4cf054(0x17d)]){const _0x439e2f=new _0x4866d8(_0x4cf054(0x1d6),this,{'actionId':_0x395ab7['id'],'modelId':_0x395ab7[_0x4cf054(0x1b2)]});_0x23c61f(_0x439e2f[_0x4cf054(0x1c4)]);}}});}return _0x1fb9ae;}[_0x31719b(0x1a1)](){const _0x3f9258=_0x31719b,_0x4ff426=new _0x6b02ba(this[_0x3f9258(0x17f)][_0x3f9258(0x1d0)]);_0x4ff426[_0x3f9258(0x1f0)](),this[_0x3f9258(0x171)](_0x4ff426),this[_0x3f9258(0x1e4)](),this[_0x3f9258(0x168)](_0x4ff426);}[_0x31719b(0x171)](_0x33f9a5){const _0xe66aa2=_0x31719b,_0x2601cb=this[_0xe66aa2(0x17f)][_0xe66aa2(0x167)][_0xe66aa2(0x193)](_0xe66aa2(0x174))??!0x0;this[_0xe66aa2(0x17f)]['ui'][_0xe66aa2(0x1ba)][_0xe66aa2(0x19d)](_0xe66aa2(0x17e),_0x18dad2({'editor':this[_0xe66aa2(0x17f)],'content':this[_0xe66aa2(0x18a)],'buttonDefinition':{'icon':_0x141fa0,'label':_0x50c4e8(this[_0xe66aa2(0x17f)][_0xe66aa2(0x1d0)],_0xe66aa2(0x16e))},'bodyCollection':_0x33f9a5,'hasSearch':_0x2601cb}));}[_0x31719b(0x1aa)](_0x1ae824){const _0x4689c0=_0x31719b;this[_0x4689c0(0x18a)]=_0x1ae824[_0x4689c0(0x1ef)](_0x374980=>{const _0x124f93=_0x4689c0;if(_0x124f93(0x172)in _0x374980){const _0x50c274=_0x374980;return{..._0x50c274,'actions':_0x50c274[_0x124f93(0x172)][_0x124f93(0x1ef)](_0x1e9752=>{const {actions:_0x2dd86b,..._0x11c3f9}=_0x50c274;return{..._0x1e9752,'parent':_0x11c3f9};})[_0x124f93(0x1de)](_0x1812e1=>this[_0x124f93(0x185)](_0x1812e1))};}return _0x374980;})[_0x4689c0(0x1de)](_0x6417c6=>_0x4689c0(0x172)in _0x6417c6?_0x6417c6[_0x4689c0(0x172)][_0x4689c0(0x1cb)]>0x0:this[_0x4689c0(0x185)](_0x6417c6));}[_0x31719b(0x185)](_0x1d64b3){const _0x2ac3ad=_0x31719b,_0x113cd7=this[_0x2ac3ad(0x17f)][_0x2ac3ad(0x167)][_0x2ac3ad(0x193)](_0x2ac3ad(0x1e6))||[];return this[_0x2ac3ad(0x17f)][_0x2ac3ad(0x184)][_0x2ac3ad(0x1df)](AIQuickActionTypeToPluginName[_0x1d64b3[_0x2ac3ad(0x197)]])&&!_0x113cd7[_0x2ac3ad(0x1a2)](_0x1d64b3['id'])&&!(_0x1d64b3[_0x2ac3ad(0x197)]===AIQuickActionType[_0x2ac3ad(0x1d9)]&&!0x1===this[_0x2ac3ad(0x17f)][_0x2ac3ad(0x167)][_0x2ac3ad(0x193)](_0x2ac3ad(0x1ae)));}[_0x31719b(0x168)](_0x39916c){const _0x2f7c5a=_0x31719b;this[_0x2f7c5a(0x18a)][_0x2f7c5a(0x1da)](_0x6c2068=>{const _0x3ac166=_0x2f7c5a;if(_0x3ac166(0x172)in _0x6c2068){const _0x8d4cbd=_0x18dad2({'editor':this[_0x3ac166(0x17f)],'content':_0x6c2068[_0x3ac166(0x172)],'buttonDefinition':_0x6c2068,'bodyCollection':_0x39916c});this[_0x3ac166(0x17f)]['ui'][_0x3ac166(0x1ba)][_0x3ac166(0x19d)](_0x6c2068['id'],_0x8d4cbd),_0x6c2068[_0x3ac166(0x172)][_0x3ac166(0x1da)](_0x57ea04=>{const _0x47f621=_0x3ac166,_0x37d871=_0x43cf56({'editor':this[_0x47f621(0x17f)],'action':_0x57ea04});this[_0x47f621(0x17f)]['ui'][_0x47f621(0x1ba)][_0x47f621(0x19d)](_0x57ea04['id'],_0x37d871);});}else{const _0x39280f=_0x43cf56({'editor':this[_0x3ac166(0x17f)],'action':_0x6c2068,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x3ac166(0x17f)]['ui'][_0x3ac166(0x1ba)][_0x3ac166(0x19d)](_0x6c2068['id'],_0x39280f);}});}[_0x31719b(0x1e4)](){const _0x4d4aa8=_0x31719b;this[_0x4d4aa8(0x17f)]['ui'][_0x4d4aa8(0x1ba)][_0x4d4aa8(0x19d)](_0x4d4aa8(0x16f),_0x12ec1b=>{const _0x5a9648=_0x4d4aa8,_0x185991=new _0x1995d7(_0x12ec1b),_0x5bde80=_0x50c4e8(_0x12ec1b,_0x5a9648(0x16e));_0x185991[_0x5a9648(0x1b1)][_0x5a9648(0x1d4)]({'label':_0x5bde80,'icon':_0x141fa0});const _0x2855e5=new _0x536620(_0x12ec1b);_0x2855e5[_0x5a9648(0x1d4)]({'ariaLabel':_0x5bde80,'role':_0x5a9648(0x183)}),this[_0x5a9648(0x18a)][_0x5a9648(0x1da)](_0x3bf4e6=>{const _0x5b7efe=_0x5a9648;if(_0x5b7efe(0x172)in _0x3bf4e6){const _0x311a2e=_0x3bf4e6,_0x4adb66=new _0x518ec2(_0x12ec1b,_0x185991),_0x286486=new _0x1995d7(_0x12ec1b),_0x8c8209=new _0x536620(_0x12ec1b);_0x286486[_0x5b7efe(0x1b1)][_0x5b7efe(0x1d4)]({'label':_0x311a2e[_0x5b7efe(0x195)],'icon':_0x311a2e[_0x5b7efe(0x204)]}),_0x311a2e[_0x5b7efe(0x172)][_0x5b7efe(0x1da)](_0x495b72=>{const _0x11a826=_0x5b7efe,_0x1c9cef=new _0x518ec2(_0x12ec1b,_0x286486),_0x5d1efd=new _0x3a98da(_0x12ec1b);_0x5d1efd[_0x11a826(0x1d4)]({'label':_0x495b72[_0x11a826(0x1fe)],'icon':_0x495b72[_0x11a826(0x204)],'role':_0x11a826(0x202),'isEnabled':_0x495b72[_0x11a826(0x17d)]}),_0x5d1efd['on'](_0x11a826(0x1dd),()=>{const _0x569a1b=_0x11a826;this[_0x569a1b(0x1ad)](_0x495b72);}),_0x5d1efd[_0x11a826(0x1e9)](_0x11a826(0x1dd))['to'](_0x286486),_0x1c9cef[_0x11a826(0x1c8)][_0x11a826(0x19d)](_0x5d1efd),_0x8c8209[_0x11a826(0x16a)][_0x11a826(0x19d)](_0x1c9cef);}),_0x286486[_0x5b7efe(0x1f2)][_0x5b7efe(0x1c8)][_0x5b7efe(0x19d)](_0x8c8209),_0x4adb66[_0x5b7efe(0x1c8)][_0x5b7efe(0x19d)](_0x286486),_0x2855e5[_0x5b7efe(0x16a)][_0x5b7efe(0x19d)](_0x4adb66);}else{const _0x598838=_0x3bf4e6,_0x38847d=new _0x518ec2(_0x12ec1b,_0x185991),_0x5ea16c=new _0x3a98da(_0x12ec1b);_0x5ea16c[_0x5b7efe(0x1d4)]({'label':_0x598838[_0x5b7efe(0x1fe)],'icon':_0x598838[_0x5b7efe(0x204)],'role':_0x5b7efe(0x202),'isEnabled':_0x598838[_0x5b7efe(0x17d)]}),_0x5ea16c['on'](_0x5b7efe(0x1dd),()=>{const _0x4e5716=_0x5b7efe;this[_0x4e5716(0x1ad)](_0x598838);}),_0x5ea16c[_0x5b7efe(0x1e9)](_0x5b7efe(0x1dd))['to'](_0x185991),_0x38847d[_0x5b7efe(0x1c8)][_0x5b7efe(0x19d)](_0x5ea16c),_0x2855e5[_0x5b7efe(0x16a)][_0x5b7efe(0x19d)](_0x38847d);}});const _0x1d9007=Object[_0x5a9648(0x1a3)](AIQuickActionTypeToPluginName)[_0x5a9648(0x1b6)](_0x3c92e8=>this[_0x5a9648(0x17f)][_0x5a9648(0x184)][_0x5a9648(0x1df)](_0x3c92e8));return _0x185991[_0x5a9648(0x1d4)]({'isEnabled':_0x1d9007}),_0x185991[_0x5a9648(0x1f2)][_0x5a9648(0x1c8)][_0x5a9648(0x19d)](_0x2855e5),_0x185991;});}[_0x31719b(0x1ad)](_0x5da7d0){const _0x3d1ca0=_0x31719b,_0xc592d0=this[_0x3d1ca0(0x17f)];_0xc592d0[_0x3d1ca0(0x1e2)][_0x3d1ca0(0x1b9)][_0x3d1ca0(0x1bd)](),_0xc592d0[_0x3d1ca0(0x1ab)][_0x3d1ca0(0x1dd)](_0x3d1ca0(0x1ca),_0x5da7d0);const _0x1bbdaa=_0xc592d0['ui'][_0x3d1ca0(0x1b9)][_0x3d1ca0(0x1ce)];_0x1bbdaa&&_0x1bbdaa[_0x3d1ca0(0x190)]&&_0x1bbdaa[_0x3d1ca0(0x190)]();}}
|
|
23
|
+
const _0x1e1fb3=_0x5d96;(function(_0x1c660d,_0x42dea7){const _0x23ecd8=_0x5d96,_0x434383=_0x1c660d();while(!![]){try{const _0x12451b=parseInt(_0x23ecd8(0x124))/0x1+parseInt(_0x23ecd8(0x19e))/0x2+parseInt(_0x23ecd8(0x141))/0x3+parseInt(_0x23ecd8(0x14c))/0x4*(parseInt(_0x23ecd8(0x13d))/0x5)+-parseInt(_0x23ecd8(0x10b))/0x6+parseInt(_0x23ecd8(0x112))/0x7*(-parseInt(_0x23ecd8(0x18a))/0x8)+-parseInt(_0x23ecd8(0x154))/0x9;if(_0x12451b===_0x42dea7)break;else _0x434383['push'](_0x434383['shift']());}catch(_0x1de788){_0x434383['push'](_0x434383['shift']());}}}(_0xfbbd,0x94227));import{IconAIAdjustLength as _0xe53c47,IconAIChangeTone as _0x576d7c,IconAIChatCommands as _0xb5d4d4,IconAIContinueWriting as _0x5bfb04,IconAIGrammarCheck as _0x4efbb3,IconAIImproveWriting as _0x26e326,IconAIOther as _0x3494e7,IconAIQuickActions as _0x5467b5,IconAITranslate as _0x4bd43d}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x1b5035}from'ckeditor5/src/core.js';import{CKEditorError as _0x6b2b32,logError as _0x9e8c3d}from'ckeditor5/src/utils.js';import{getTranslation as _0x454835}from'../aicore/utils/common-translations.js';function _0x5d96(_0x31d526,_0xdd0f49){const _0xfbbdd4=_0xfbbd();return _0x5d96=function(_0x5d96c9,_0x545cae){_0x5d96c9=_0x5d96c9-0x104;let _0x2b155c=_0xfbbdd4[_0x5d96c9];return _0x2b155c;},_0x5d96(_0x31d526,_0xdd0f49);}import{aiQuickActionsDropdownCreator as _0x2eef32}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x5d4d02}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x3222f6,BalloonToolbar as _0xd0f190,MenuBarMenuView as _0x8df35b,MenuBarMenuListView as _0xdc1a18,MenuBarMenuListItemView as _0x57c3a0,MenuBarMenuListItemButtonView as _0x5bbe07}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0xfbbd(){const _0x386a72=['AIQuickActionsUI','AI_QUICK_ACTIONS_MAKE_LONGER','_initializeQuickActionsMenuBar','label','has','russian','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','portuguese','make-tone-casual','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_CONTINUE_WRITING','<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>','focus','items','type','values','requires','panelView','pluginName','_shouldIncludeAction','isOfficialPlugin','view','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','editor','151352uUEvRz','forEach','delegate','AI_QUICK_ACTIONS_MORE_DIRECT','message','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','make-tone-direct','isEnabled','_initializeQuickActionsDropdown','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','language','_quickActionsDefinition','AI_QUICK_ACTIONS_TRANSLATE','uiLanguage','german','chinese','translate-to-spanish','ai.quickActions.isSearchEnabled','ai.chat.models.displayedModels','AI_QUICK_ACTIONS_OTHER','2411936TpTjHd','translate-to-english','translate-to-italian','change-tone','editing','menuitem','_getDefaultAndCustomActions','filter','menu','ask-ai','french','AI_QUICK_ACTIONS_MORE_CONFIDENT','map','AI_QUICK_ACTIONS_EXPLAIN','3638664THNqdj','AI_QUICK_ACTIONS_MORE_CASUAL','getAvailableModels','AI_QUICK_ACTIONS_SUMMARIZE','spanish','_initializeQuickActionsComponentsAndCommands','REVIEW','189hgSEdD','English','adjust-length','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','menuBarView','translate-to-portuguese','aiQuickActions','translate','make-tone-friendly','<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>','actions','AIActions','init','DisplayNames','ai.quickActions.extraCommands','make-tone-confident','fix-grammar','AIReviewMode','1060198YphJBX','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','english','getDefaultQuickActions','AIConnector','translate-to-russian','improve-writing','chat-commands','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_IMPROVE_WRITING','buttonView','locale','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','ai-quick-actions-unavailable-model','AI_QUICK_ACTIONS_MORE_FRIENDLY','other','translate-to-korean','summarize','make-longer','displayedPrompt','get','push','make-tone-professional','korean','replace','5coGjKR','AI_QUICK_ACTIONS_CHAT_COMMANDS','ai.chat.context.document.enabled','add','842508Znvvur','componentFactory','config','menuBar:aiQuickActions','translate-to-japanese','set','ai-quick-actions-models-unable-to-retrieve','AI_QUICK_ACTIONS_MAKE_SHORTER','translate-to-chinese','includes','continue','4346084pTiZdA','find','execute','AIChat','children','icon','make-shorter','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','17185563JikBxv','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','japanese','aiQuickAction','commands','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','_executeQuickAction','attachToDom','model','ACTION','explain','AI_QUICK_ACTIONS_ASK_AI','translate-to-french','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','<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>','italian','length','close','CHAT','plugins','isPremiumPlugin','translate-to-german','AI_QUICK_ACTIONS_HEADING','highlight-key-points','AI_QUICK_ACTIONS_CHANGE_TONE','AI_QUICK_ACTIONS_ADJUST_LENGTH','some'];_0xfbbd=function(){return _0x386a72;};return _0xfbbd();}import{AIModels as _0x4d1c7d}from'../aicore/model/aimodels.js';const oe=_0x1e1fb3(0x17d),ae=_0x1e1fb3(0x11b),se=_0x1e1fb3(0x162);export var AIQuickActionType;!function(_0x4f5569){const _0x2de05f=_0x1e1fb3;_0x4f5569[_0x2de05f(0x166)]=_0x2de05f(0x166),_0x4f5569[_0x2de05f(0x15d)]=_0x2de05f(0x15d),_0x4f5569[_0x2de05f(0x111)]=_0x2de05f(0x111);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x2525d8){const _0x2c804e=_0x1e1fb3;_0x2525d8[_0x2c804e(0x166)]=_0x2c804e(0x14f),_0x2525d8[_0x2c804e(0x15d)]=_0x2c804e(0x11d),_0x2525d8[_0x2c804e(0x111)]=_0x2c804e(0x123);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x1b5035{static get[_0x1e1fb3(0x182)](){return[_0xd0f190];}static get[_0x1e1fb3(0x184)](){const _0x118b93=_0x1e1fb3;return _0x118b93(0x16f);}static get[_0x1e1fb3(0x186)](){return!0x0;}static get[_0x1e1fb3(0x168)](){return!0x0;}async[_0x1e1fb3(0x11e)](){const _0x358d58=_0x1e1fb3,_0x1e8b50=await this[_0x358d58(0x1a4)]();this[_0x358d58(0x179)](_0x1e8b50),this[_0x358d58(0x110)]();}static[_0x1e1fb3(0x127)](_0x39afe6){return function(_0x28ac6e){const _0x1cc4e4=_0x5d96,_0x1d1a68=new Intl[(_0x1cc4e4(0x11f))](['en'],{'type':_0x1cc4e4(0x194)})['of'](_0x28ac6e[_0x1cc4e4(0x197)]),_0x589ba5=_0x1d1a68||_0x1cc4e4(0x113),_0xc9aa41=[{'id':_0x1cc4e4(0x106),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x15f)),'type':AIQuickActionType[_0x1cc4e4(0x166)],'icon':_0xb5d4d4},{'id':_0x1cc4e4(0x12b),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x13e)),'icon':_0xb5d4d4,'actions':[{'id':_0x1cc4e4(0x15e),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x10a)),'prompt':oe[_0x1cc4e4(0x13c)]('%0',_0x589ba5),'type':AIQuickActionType[_0x1cc4e4(0x166)]},{'id':_0x1cc4e4(0x135),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x10e)),'prompt':ae[_0x1cc4e4(0x13c)]('%0',_0x589ba5),'type':AIQuickActionType[_0x1cc4e4(0x166)]},{'id':_0x1cc4e4(0x16b),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x115)),'prompt':se[_0x1cc4e4(0x13c)]('%0',_0x589ba5),'type':AIQuickActionType[_0x1cc4e4(0x166)]}]},{'id':_0x1cc4e4(0x12a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x12d)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'icon':_0x26e326},{'id':_0x1cc4e4(0x14b),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x17c)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'icon':_0x5bfb04},{'id':_0x1cc4e4(0x122),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x17a)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'icon':_0x4efbb3},{'id':_0x1cc4e4(0x114),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x16d)),'icon':_0xe53c47,'actions':[{'id':_0x1cc4e4(0x152),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x148)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x136),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x170)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]}]},{'id':_0x1cc4e4(0x1a1),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x16c)),'icon':_0x576d7c,'actions':[{'id':_0x1cc4e4(0x177),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x10c)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x190),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x18d)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x11a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x132)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x121),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x108)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x13a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x153)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]}]},{'id':_0x1cc4e4(0x119),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x196)),'icon':_0x4bd43d,'actions':[{'id':_0x1cc4e4(0x19f),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x159)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x126)}},{'id':_0x1cc4e4(0x149),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x193)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x199)}},{'id':_0x1cc4e4(0x19a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x18f)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x10f)}},{'id':_0x1cc4e4(0x169),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x125)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x198)}},{'id':_0x1cc4e4(0x160),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x130)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x107)}},{'id':_0x1cc4e4(0x145),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x175)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x156)}},{'id':_0x1cc4e4(0x117),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x188)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x176)}},{'id':_0x1cc4e4(0x134),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x155)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x13b)}},{'id':_0x1cc4e4(0x1a0),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x178)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x163)}},{'id':_0x1cc4e4(0x129),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x161)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x174)}}]},{'id':_0x1cc4e4(0x133),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x19d)),'icon':_0x3494e7,'actions':[]}];return _0xc9aa41;}(_0x39afe6);}async[_0x1e1fb3(0x1a4)](){const _0x2ea5a4=_0x1e1fb3,_0x202667=AIQuickActionsUI[_0x2ea5a4(0x127)](this[_0x2ea5a4(0x189)][_0x2ea5a4(0x12f)]),_0x382d0f=this[_0x2ea5a4(0x189)][_0x2ea5a4(0x143)][_0x2ea5a4(0x138)](_0x2ea5a4(0x120))||[];let _0x36d180=[];try{_0x36d180=await new _0x4d1c7d({'connector':this[_0x2ea5a4(0x189)][_0x2ea5a4(0x167)][_0x2ea5a4(0x138)](_0x2ea5a4(0x128)),'availableModels':this[_0x2ea5a4(0x189)][_0x2ea5a4(0x143)][_0x2ea5a4(0x138)](_0x2ea5a4(0x19c)),'locale':this[_0x2ea5a4(0x189)][_0x2ea5a4(0x12f)]})[_0x2ea5a4(0x10d)]();}catch(_0x3a82a5){const _0x256016=new _0x6b2b32(_0x2ea5a4(0x147),this,{'error':_0x3a82a5});_0x9e8c3d(_0x256016[_0x2ea5a4(0x18e)]);}finally{const _0x7438bb=_0x382d0f[_0x2ea5a4(0x109)](_0x477089=>({..._0x477089,'icon':void 0x0}));_0x202667[_0x2ea5a4(0x14d)](_0x943b7=>_0x2ea5a4(0x133)===_0x943b7['id'])[_0x2ea5a4(0x11c)][_0x2ea5a4(0x139)](..._0x7438bb),_0x202667[_0x2ea5a4(0x18b)](_0xde2f77=>{const _0x5b2322=_0x2ea5a4;if(_0x5b2322(0x11c)in _0xde2f77)_0xde2f77[_0x5b2322(0x11c)][_0x5b2322(0x18b)](_0x30cfce=>{const _0x4d8833=_0x5b2322;if(_0x30cfce[_0x4d8833(0x191)]=!!_0x36d180[_0x4d8833(0x14d)](_0x5b3348=>_0x5b3348['id']===_0x30cfce[_0x4d8833(0x15c)])||void 0x0===_0x30cfce[_0x4d8833(0x15c)],!_0x30cfce[_0x4d8833(0x191)]){const _0xd88c89=new _0x6b2b32(_0x4d8833(0x131),this,{'actionId':_0x30cfce['id'],'modelId':_0x30cfce[_0x4d8833(0x15c)]});_0x9e8c3d(_0xd88c89[_0x4d8833(0x18e)]);}});else{if(_0xde2f77[_0x5b2322(0x191)]=!!_0x36d180[_0x5b2322(0x14d)](_0xc8544d=>_0xc8544d['id']===_0xde2f77[_0x5b2322(0x15c)])||void 0x0===_0xde2f77[_0x5b2322(0x15c)],!_0xde2f77[_0x5b2322(0x191)]){const _0x351218=new _0x6b2b32(_0x5b2322(0x131),this,{'actionId':_0xde2f77['id'],'modelId':_0xde2f77[_0x5b2322(0x15c)]});_0x9e8c3d(_0x351218[_0x5b2322(0x18e)]);}}});}return _0x202667;}[_0x1e1fb3(0x110)](){const _0x5155a0=_0x1e1fb3,_0x27ac9b=new _0x3222f6(this[_0x5155a0(0x189)][_0x5155a0(0x12f)]);_0x27ac9b[_0x5155a0(0x15b)](),this[_0x5155a0(0x192)](_0x27ac9b),this[_0x5155a0(0x171)](),this[_0x5155a0(0x12c)](_0x27ac9b);}[_0x1e1fb3(0x192)](_0x42d508){const _0x23f686=_0x1e1fb3,_0x26b728=this[_0x23f686(0x189)][_0x23f686(0x143)][_0x23f686(0x138)](_0x23f686(0x19b))??!0x0;this[_0x23f686(0x189)]['ui'][_0x23f686(0x142)][_0x23f686(0x140)](_0x23f686(0x118),_0x2eef32({'editor':this[_0x23f686(0x189)],'content':this[_0x23f686(0x195)],'buttonDefinition':{'icon':_0x5467b5,'label':_0x454835(this[_0x23f686(0x189)][_0x23f686(0x12f)],_0x23f686(0x16a))},'bodyCollection':_0x42d508,'hasSearch':_0x26b728}));}[_0x1e1fb3(0x179)](_0x8c1ba9){const _0x470956=_0x1e1fb3;this[_0x470956(0x195)]=_0x8c1ba9[_0x470956(0x109)](_0x5d83aa=>{const _0x20b0b9=_0x470956;if(_0x20b0b9(0x11c)in _0x5d83aa){const _0x52718e=_0x5d83aa;return{..._0x52718e,'actions':_0x52718e[_0x20b0b9(0x11c)][_0x20b0b9(0x109)](_0x222a9e=>{const {actions:_0x1d1ca9,..._0x2cb380}=_0x52718e;return{..._0x222a9e,'parent':_0x2cb380};})[_0x20b0b9(0x104)](_0x180e09=>this[_0x20b0b9(0x185)](_0x180e09))};}return _0x5d83aa;})[_0x470956(0x104)](_0x226d0d=>_0x470956(0x11c)in _0x226d0d?_0x226d0d[_0x470956(0x11c)][_0x470956(0x164)]>0x0:this[_0x470956(0x185)](_0x226d0d));}[_0x1e1fb3(0x185)](_0x37e6e1){const _0x237437=_0x1e1fb3,_0x43939a=this[_0x237437(0x189)][_0x237437(0x143)][_0x237437(0x138)](_0x237437(0x17b))||[];return this[_0x237437(0x189)][_0x237437(0x167)][_0x237437(0x173)](AIQuickActionTypeToPluginName[_0x37e6e1[_0x237437(0x180)]])&&!_0x43939a[_0x237437(0x14a)](_0x37e6e1['id'])&&!(_0x37e6e1[_0x237437(0x180)]===AIQuickActionType[_0x237437(0x166)]&&!0x1===this[_0x237437(0x189)][_0x237437(0x143)][_0x237437(0x138)](_0x237437(0x13f)));}[_0x1e1fb3(0x12c)](_0x162d49){const _0x77b229=_0x1e1fb3;this[_0x77b229(0x195)][_0x77b229(0x18b)](_0x357c00=>{const _0x2d5bdb=_0x77b229;if(_0x2d5bdb(0x11c)in _0x357c00){const _0x553ebb=_0x2eef32({'editor':this[_0x2d5bdb(0x189)],'content':_0x357c00[_0x2d5bdb(0x11c)],'buttonDefinition':_0x357c00,'bodyCollection':_0x162d49});this[_0x2d5bdb(0x189)]['ui'][_0x2d5bdb(0x142)][_0x2d5bdb(0x140)](_0x357c00['id'],_0x553ebb),_0x357c00[_0x2d5bdb(0x11c)][_0x2d5bdb(0x18b)](_0x3977b2=>{const _0x231aea=_0x2d5bdb,_0x4e1db2=_0x5d4d02({'editor':this[_0x231aea(0x189)],'action':_0x3977b2});this[_0x231aea(0x189)]['ui'][_0x231aea(0x142)][_0x231aea(0x140)](_0x3977b2['id'],_0x4e1db2);});}else{const _0x5cf3f7=_0x5d4d02({'editor':this[_0x2d5bdb(0x189)],'action':_0x357c00,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x2d5bdb(0x189)]['ui'][_0x2d5bdb(0x142)][_0x2d5bdb(0x140)](_0x357c00['id'],_0x5cf3f7);}});}[_0x1e1fb3(0x171)](){const _0x23721d=_0x1e1fb3;this[_0x23721d(0x189)]['ui'][_0x23721d(0x142)][_0x23721d(0x140)](_0x23721d(0x144),_0x28001e=>{const _0x1eda6e=_0x23721d,_0xc7e330=new _0x8df35b(_0x28001e),_0x1813ea=_0x454835(_0x28001e,_0x1eda6e(0x16a));_0xc7e330[_0x1eda6e(0x12e)][_0x1eda6e(0x146)]({'label':_0x1813ea,'icon':_0x5467b5});const _0x3622c3=new _0xdc1a18(_0x28001e);_0x3622c3[_0x1eda6e(0x146)]({'ariaLabel':_0x1813ea,'role':_0x1eda6e(0x105)}),this[_0x1eda6e(0x195)][_0x1eda6e(0x18b)](_0x5c4ddc=>{const _0x2f45fb=_0x1eda6e;if(_0x2f45fb(0x11c)in _0x5c4ddc){const _0x207686=_0x5c4ddc,_0x36a569=new _0x57c3a0(_0x28001e,_0xc7e330),_0x4c7dbf=new _0x8df35b(_0x28001e),_0x2e367e=new _0xdc1a18(_0x28001e);_0x4c7dbf[_0x2f45fb(0x12e)][_0x2f45fb(0x146)]({'label':_0x207686[_0x2f45fb(0x172)],'icon':_0x207686[_0x2f45fb(0x151)]}),_0x207686[_0x2f45fb(0x11c)][_0x2f45fb(0x18b)](_0x411156=>{const _0xaa56cb=_0x2f45fb,_0x40cd23=new _0x57c3a0(_0x28001e,_0x4c7dbf),_0xe5459c=new _0x5bbe07(_0x28001e);_0xe5459c[_0xaa56cb(0x146)]({'label':_0x411156[_0xaa56cb(0x137)],'icon':_0x411156[_0xaa56cb(0x151)],'role':_0xaa56cb(0x1a3),'isEnabled':_0x411156[_0xaa56cb(0x191)]}),_0xe5459c['on'](_0xaa56cb(0x14e),()=>{const _0x4de867=_0xaa56cb;this[_0x4de867(0x15a)](_0x411156);}),_0xe5459c[_0xaa56cb(0x18c)](_0xaa56cb(0x14e))['to'](_0x4c7dbf),_0x40cd23[_0xaa56cb(0x150)][_0xaa56cb(0x140)](_0xe5459c),_0x2e367e[_0xaa56cb(0x17f)][_0xaa56cb(0x140)](_0x40cd23);}),_0x4c7dbf[_0x2f45fb(0x183)][_0x2f45fb(0x150)][_0x2f45fb(0x140)](_0x2e367e),_0x36a569[_0x2f45fb(0x150)][_0x2f45fb(0x140)](_0x4c7dbf),_0x3622c3[_0x2f45fb(0x17f)][_0x2f45fb(0x140)](_0x36a569);}else{const _0xcc4dc3=_0x5c4ddc,_0x48bd01=new _0x57c3a0(_0x28001e,_0xc7e330),_0x14fa18=new _0x5bbe07(_0x28001e);_0x14fa18[_0x2f45fb(0x146)]({'label':_0xcc4dc3[_0x2f45fb(0x137)],'icon':_0xcc4dc3[_0x2f45fb(0x151)],'role':_0x2f45fb(0x1a3),'isEnabled':_0xcc4dc3[_0x2f45fb(0x191)]}),_0x14fa18['on'](_0x2f45fb(0x14e),()=>{const _0x39f910=_0x2f45fb;this[_0x39f910(0x15a)](_0xcc4dc3);}),_0x14fa18[_0x2f45fb(0x18c)](_0x2f45fb(0x14e))['to'](_0xc7e330),_0x48bd01[_0x2f45fb(0x150)][_0x2f45fb(0x140)](_0x14fa18),_0x3622c3[_0x2f45fb(0x17f)][_0x2f45fb(0x140)](_0x48bd01);}});const _0x39d165=Object[_0x1eda6e(0x181)](AIQuickActionTypeToPluginName)[_0x1eda6e(0x16e)](_0x43e399=>this[_0x1eda6e(0x189)][_0x1eda6e(0x167)][_0x1eda6e(0x173)](_0x43e399));return _0xc7e330[_0x1eda6e(0x146)]({'isEnabled':_0x39d165}),_0xc7e330[_0x1eda6e(0x183)][_0x1eda6e(0x150)][_0x1eda6e(0x140)](_0x3622c3),_0xc7e330;});}[_0x1e1fb3(0x15a)](_0x2653f6){const _0x4fb888=_0x1e1fb3,_0x1cde47=this[_0x4fb888(0x189)];_0x1cde47[_0x4fb888(0x1a2)][_0x4fb888(0x187)][_0x4fb888(0x17e)](),_0x1cde47[_0x4fb888(0x158)][_0x4fb888(0x14e)](_0x4fb888(0x157),_0x2653f6);const _0x548d5b=_0x1cde47['ui'][_0x4fb888(0x187)][_0x4fb888(0x116)];_0x548d5b&&_0x548d5b[_0x4fb888(0x165)]&&_0x548d5b[_0x4fb888(0x165)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5639(_0x40759b,_0x18d46b){const _0x50d3e5=_0x50d3();return _0x5639=function(_0x563980,_0x1571bb){_0x563980=_0x563980-0x15d;let _0x427ae1=_0x50d3e5[_0x563980];return _0x427ae1;},_0x5639(_0x40759b,_0x18d46b);}(function(_0x1ee055,_0x33eda7){const _0x53a3cc=_0x5639,_0x23a7d5=_0x1ee055();while(!![]){try{const _0x12cafb=parseInt(_0x53a3cc(0x173))/0x1+-parseInt(_0x53a3cc(0x168))/0x2*(-parseInt(_0x53a3cc(0x15f))/0x3)+-parseInt(_0x53a3cc(0x16d))/0x4+parseInt(_0x53a3cc(0x160))/0x5+-parseInt(_0x53a3cc(0x175))/0x6+parseInt(_0x53a3cc(0x169))/0x7+-parseInt(_0x53a3cc(0x164))/0x8*(-parseInt(_0x53a3cc(0x165))/0x9);if(_0x12cafb===_0x33eda7)break;else _0x23a7d5['push'](_0x23a7d5['shift']());}catch(_0x36cffc){_0x23a7d5['push'](_0x23a7d5['shift']());}}}(_0x50d3,0x6d52b));function _0x50d3(){const _0x5a8c0b=['icon','menuitem','1466408hXeGzp','locale','execute','extendTemplate','commands','bindTemplate','389874ANavrN','ck-ai-quick-actions-button','2751162kboOoF','view','set','9bGyQQv','127185SQDYLi','aiQuickAction','isEnabled','editing','4839080RPqnSN','9MDryWx','focus','parent','7838ORtoKi','1686741ovTsax','displayedPrompt'];_0x50d3=function(){return _0x5a8c0b;};return _0x50d3();}import{ButtonView as _0x3b465b}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x299d5a}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0x1e5a6d){const {editor:_0x17309a,action:_0x306c12,withText:_0x64111b=!0x1,withIcon:_0x4a6abd=!0x0,isInDropdown:_0x2cc3ef=!0x0,shouldPreventFocus:_0x3d4e8f=!0x1}=_0x1e5a6d;return()=>{const _0x2c6d05=_0x5639,_0xd7765a=_0x17309a[_0x2c6d05(0x16e)],_0x41eec6=new _0x3b465b(_0xd7765a),_0x39dc37=_0x41eec6[_0x2c6d05(0x172)];_0x2cc3ef&&_0x41eec6[_0x2c6d05(0x170)]({'on':{'mouseenter':_0x39dc37['to'](()=>{const _0x3290b9=_0x2c6d05;_0x3d4e8f&&_0x3d4e8f()||_0x41eec6[_0x3290b9(0x166)]();})}});const _0x5a3889=_0x306c12[_0x2c6d05(0x16b)]??_0x306c12[_0x2c6d05(0x167)]?.[_0x2c6d05(0x16b)];return _0x41eec6[_0x2c6d05(0x15e)]({'label':_0x306c12[_0x2c6d05(0x16a)],'withText':_0x64111b,'role':_0x2c6d05(0x16c),'icon':_0x4a6abd?_0x5a3889??_0x299d5a:void 0x0,'tooltip':!_0x64111b,'class':_0x2c6d05(0x174),'isEnabled':_0x306c12[_0x2c6d05(0x162)]}),_0x41eec6['on'](_0x2c6d05(0x16f),()=>{const _0x21323d=_0x2c6d05;_0x17309a[_0x21323d(0x163)][_0x21323d(0x15d)][_0x21323d(0x166)](),_0x17309a[_0x21323d(0x171)][_0x21323d(0x16f)](_0x21323d(0x161),_0x306c12);}),_0x41eec6;};}
|