@ckeditor/ckeditor5-ai 47.0.0-alpha.4 → 47.0.0-alpha.6
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/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +27 -3
- package/dist/index.css +28 -3
- package/dist/index.js +4 -4
- 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/lang/contexts.json +1 -0
- 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.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +2 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
- 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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- 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/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- 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/utils/common-translations.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/aireviewmodels.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/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/aireviewmodeformamanager.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.d.ts +6 -0
- 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/augmentation.d.ts +6 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aisuggestioncontainer.css +8 -2
- package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
- package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x39ec(_0x2ed241,_0x485387){const _0x48e5bb=_0x48e5();return _0x39ec=function(_0x39eceb,_0x540651){_0x39eceb=_0x39eceb-0x10c;let _0x4e04a7=_0x48e5bb[_0x39eceb];return _0x4e04a7;},_0x39ec(_0x2ed241,_0x485387);}(function(_0x49f8e6,_0x3644f8){const _0x464ecc=_0x39ec,_0x47ada6=_0x49f8e6();while(!![]){try{const _0x5ae559=parseInt(_0x464ecc(0x116))/0x1*(parseInt(_0x464ecc(0x11d))/0x2)+parseInt(_0x464ecc(0x110))/0x3+-parseInt(_0x464ecc(0x10e))/0x4+parseInt(_0x464ecc(0x114))/0x5*(parseInt(_0x464ecc(0x120))/0x6)+-parseInt(_0x464ecc(0x117))/0x7+parseInt(_0x464ecc(0x10d))/0x8+parseInt(_0x464ecc(0x11c))/0x9;if(_0x5ae559===_0x3644f8)break;else _0x47ada6['push'](_0x47ada6['shift']());}catch(_0x11fc37){_0x47ada6['push'](_0x47ada6['shift']());}}}(_0x48e5,0x2ec9b));import{parseDocument as _0x10c655}from'htmlparser2';import{append as _0x1f419e,appendChild as _0x83d690,find as _0x13e2e1,findAll as _0x4dc6ea,findOne as _0x460f42,getChildren as _0x17ed7b,isComment as _0x6a0bee,isTag as _0x300c22,prepend as _0x4ef79b,prependChild as _0xd35c40,removeElement as _0x5b6f50,replaceElement as _0x48f9e7,textContent as _0x17d5a8,getParent as _0x5729c5,hasChildren as _0x351552}from'domutils';import _0x52742d from'dom-serializer';import{cloneNode as _0x3bc03a,isDocument as _0x21bc34,isText as _0x53a653,Element as _0x1ace9a,Text as _0x437605,Document as _0x1dba5a,NodeWithChildren as _0x5252ad}from'domhandler';export{_0x3bc03a as cloneNode,_0x13e2e1 as find,_0x460f42 as findOne,_0x4dc6ea as findAll,_0x17ed7b as getChildren,_0x5729c5 as getParent,_0x6a0bee as isComment,_0x21bc34 as isDocument,_0x300c22 as isTag,_0x53a653 as isText,_0x1f419e as append,_0x83d690 as appendChild,_0x4ef79b as prepend,_0xd35c40 as prependChild,_0x52742d as render,_0x5b6f50 as removeElement,_0x48f9e7 as replaceElement,_0x17d5a8 as textContent,_0x351552 as hasChildren,_0x1ace9a as Element,_0x1dba5a as Document,_0x5252ad as NodeWithChildren,_0x437605 as Text};export function parse(_0x554429){return _0x10c655(_0x554429);}export function serialize(_0x528677){return _0x52742d(_0x528677);}export function findByAttribute(_0x470e4a,_0x432917,_0x3a4419){const _0x426c5f=_0x39ec,_0x2df726=null!==_0x432917?_0x2f729d=>_0x2f729d[_0x426c5f(0x111)][_0x470e4a]===_0x432917:_0x57e2ce=>Boolean(_0x57e2ce[_0x426c5f(0x111)][_0x470e4a]);return _0x460f42(_0x58feb8=>_0x300c22(_0x58feb8)&&_0x2df726(_0x58feb8),_0x3a4419);}export function findAllByAttribute(_0x2e0f6b,_0x487496,_0x4f6ed4){const _0x22de78=_0x39ec,_0x1e499e=null!==_0x487496?_0x411d75=>_0x411d75[_0x22de78(0x111)][_0x2e0f6b]===_0x487496:_0x44d144=>Boolean(_0x44d144[_0x22de78(0x111)][_0x2e0f6b]);return _0x4dc6ea(_0x48dd1a=>_0x300c22(_0x48dd1a)&&_0x1e499e(_0x48dd1a),_0x4f6ed4);}export function findAllComments(_0x1460d6){return _0x13e2e1(_0x2310c0=>_0x6a0bee(_0x2310c0),_0x1460d6,!0x0,0x1/0x0);}export function getAttribute(_0x4c4a57,_0x2cc548){const _0x531ca3=_0x39ec;return _0x4c4a57&&_0x300c22(_0x4c4a57)?_0x4c4a57[_0x531ca3(0x111)][_0x2cc548]:null;}export function setAttribute(_0x2af55e,_0x20ea58,_0x2648fd){const _0x4badea=_0x39ec;_0x300c22(_0x2af55e)&&(null===_0x2648fd?delete _0x2af55e[_0x4badea(0x111)][_0x20ea58]:_0x2af55e[_0x4badea(0x111)][_0x20ea58]=_0x2648fd);}export function insertElement(_0x21b5ff,_0x33ff70,_0x1abb94){const _0x175b24=_0x39ec,_0x4f934b=_0x33ff70[_0x175b24(0x118)](!0x0);_0x175b24(0x10f)===_0x1abb94?_0x4ef79b(_0x21b5ff,_0x4f934b):_0x175b24(0x11e)===_0x1abb94?_0xd35c40(_0x21b5ff,_0x4f934b):_0x175b24(0x119)===_0x1abb94?_0x83d690(_0x21b5ff,_0x4f934b):_0x175b24(0x115)===_0x1abb94&&_0x1f419e(_0x21b5ff,_0x4f934b);}export function moveElement(_0x1b0287,_0x4ed3aa){_0x5b6f50(_0x1b0287),_0x48f9e7(_0x4ed3aa,_0x1b0287);}export function clone(_0x18830f){const _0x5d6dea=_0x39ec;return _0x18830f[_0x5d6dea(0x118)](!0x0);}export function getParents(_0x3d496b){const _0x427fdd=_0x39ec,_0x4c3d29=[];let _0x17de9b=_0x3d496b;for(;_0x17de9b;)_0x17de9b=_0x5729c5(_0x17de9b),_0x17de9b&&_0x4c3d29[_0x427fdd(0x11b)](_0x17de9b);return _0x4c3d29;}export function normalizeHTML(_0x10a13f){const _0x355684=_0x39ec;return _0x10a13f[_0x355684(0x121)](/^\s+/gm,'')[_0x355684(0x121)](/\s+$/gm,'')[_0x355684(0x121)](/\n*/g,'')[_0x355684(0x121)](/\s+/g,'\x20')[_0x355684(0x121)](/>\s*</g,'><');}export function areNodesSame(_0x1fea3c,_0x8bbe41){return normalizeHTML(serialize(_0x1fea3c))===normalizeHTML(serialize(_0x8bbe41));}export function getNodeNestingLevel(_0x2fd3b2){const _0x4dca68=_0x39ec;let _0x181a71=0x0;for(;_0x2fd3b2[_0x4dca68(0x10c)];)_0x2fd3b2=_0x2fd3b2[_0x4dca68(0x10c)],_0x181a71++;return _0x181a71;}export function removeElementsAfter(_0x34773d){const _0x412087=_0x39ec,_0xebc808=[];let _0x3ff950=_0x34773d[_0x412087(0x113)];for(;_0x3ff950;)_0xebc808[_0x412087(0x11b)](_0x3ff950),_0x3ff950=_0x3ff950[_0x412087(0x113)];_0xebc808[_0x412087(0x123)](_0x20bd82=>{_0x5b6f50(_0x20bd82);});}function _0x48e5(){const _0x55ca8f=['reverse','forEach','parentNode','1128864KLgIaC','951232IEXiBl','beforebegin','649989AwnXkI','attribs','indexOf','nextSibling','901315KSgzgn','afterend','895LKfNAr','1082326sqfNZs','cloneNode','beforeend','slice','push','67950wQlZUu','86MiFGdx','afterbegin','map','6OVFtoH','replace'];_0x48e5=function(){return _0x55ca8f;};return _0x48e5();}export function getNodePath(_0x2738c1){const _0x132b4c=_0x39ec;return[_0x2738c1,...getParents(_0x2738c1)][_0x132b4c(0x11a)](0x0,-0x1)[_0x132b4c(0x11f)](_0x3b1022=>{const _0x5f0b97=_0x132b4c,_0xee7724=_0x5729c5(_0x3b1022);return _0x17ed7b(_0xee7724)[_0x5f0b97(0x112)](_0x3b1022);})[_0x132b4c(0x122)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa60e87=_0x261d;(function(_0x5b0c3a,_0x27a48f){const _0x4d6c27=_0x261d,_0x57734c=_0x5b0c3a();while(!![]){try{const _0x471fff=-parseInt(_0x4d6c27(0x1b7))/0x1*(parseInt(_0x4d6c27(0x1ca))/0x2)+-parseInt(_0x4d6c27(0x1c8))/0x3*(parseInt(_0x4d6c27(0x1d0))/0x4)+parseInt(_0x4d6c27(0x19e))/0x5+-parseInt(_0x4d6c27(0x19b))/0x6+parseInt(_0x4d6c27(0x1d2))/0x7*(parseInt(_0x4d6c27(0x1a0))/0x8)+parseInt(_0x4d6c27(0x1bd))/0x9*(parseInt(_0x4d6c27(0x1d1))/0xa)+-parseInt(_0x4d6c27(0x1d6))/0xb*(parseInt(_0x4d6c27(0x1c0))/0xc);if(_0x471fff===_0x27a48f)break;else _0x57734c['push'](_0x57734c['shift']());}catch(_0x19f887){_0x57734c['push'](_0x57734c['shift']());}}}(_0xb209,0x9e1fa));import _0x9e2cb7 from'morphdom';import{NodeWithChildren as _0x577c1f,Text as _0x4d63d0,Element as _0x99c864,isText as _0x4a6f7e,isDocument as _0x367983,isTag as _0x7b6b,cloneNode as _0x111494,getChildren as _0x4cb31e,prepend as _0x461d60,removeElement as _0x369bb3,textContent as _0x515b96,render as _0x10e6f5}from'./htmlparser.js';import{logWarning as _0x5ac12e}from'ckeditor5/src/utils.js';function _0xb209(){const _0x390772=['9RaAnvj','stream','tagName','60IiJmTu','length','document','parent','onStreamUpdate','del','sup','span[data-ck-html-streamer-word-chunk]','6EQbOLj','shouldBeStreamed','2asPThu','sub','forEach','includes','isStreaming','code','2056836lDMzJV','11303030GqlAYa','21KEuqMH','isWordSplitResult','querySelectorAll','span','693539RuWdVK','mark','isWordSplitSource','join','6941568HaUYGe','div','match','6388145RVGNqx','now','2352472gLhUqB','html-streamer-current-index-out-of-bounds','map','children','attribs','reverse','currentIndex','textNodeStyle','strong','delay','entries','options','stop','bind','replaceWith','getParsedDocumentNodeList','signal','from','timeoutAbortController','push','renderNode','splitTextNodeIntoWordNodes','childNodes','141844QQlqjY','cleanUpAnimations','addEventListener','nodesList','ins','abort'];_0xb209=function(){return _0x390772;};return _0xb209();}function _0x261d(_0x1d5005,_0x5b8caf){const _0xb2097f=_0xb209();return _0x261d=function(_0x261d0f,_0xecaebd){_0x261d0f=_0x261d0f-0x198;let _0x2619bf=_0xb2097f[_0x261d0f];return _0x2619bf;},_0x261d(_0x1d5005,_0x5b8caf);}export class HTMLStreamer{[_0xa60e87(0x1ab)];[_0xa60e87(0x1ce)]=!0x1;[_0xa60e87(0x1c2)]=null;[_0xa60e87(0x1ba)]=[];[_0xa60e87(0x1a6)]=0x0;[_0xa60e87(0x1b2)]=null;constructor(_0x3abbd6){const _0x2bcc6d=_0xa60e87;this[_0x2bcc6d(0x1ab)]={'delay':_0x3abbd6[_0x2bcc6d(0x1a9)]??0x14,'textNodeStyle':_0x3abbd6[_0x2bcc6d(0x1a7)],'onStreamUpdate':_0x3abbd6[_0x2bcc6d(0x1c4)]||(()=>{})};}async[_0xa60e87(0x1be)]({document:_0x5521ea,targetElement:_0x3265a3,abortSignal:_0x33637e}){const _0x516a2e=_0xa60e87;this[_0x516a2e(0x1ce)]&&this[_0x516a2e(0x1ac)](),_0x33637e?.[_0x516a2e(0x1b9)](_0x516a2e(0x1bc),this[_0x516a2e(0x1ac)][_0x516a2e(0x1ad)](this)),this[_0x516a2e(0x1c2)]=_0x111494(_0x5521ea,!0x0),this[_0x516a2e(0x1ba)]=this[_0x516a2e(0x1af)](),this[_0x516a2e(0x1ce)]=!0x0,this[_0x516a2e(0x1a6)]>this[_0x516a2e(0x1ba)][_0x516a2e(0x1c1)]&&(_0x5ac12e(_0x516a2e(0x1a1),{'currentIndex':this[_0x516a2e(0x1a6)],'nodeList':this[_0x516a2e(0x1ba)]}),this[_0x516a2e(0x1a6)]=this[_0x516a2e(0x1ba)][_0x516a2e(0x1c1)]);for(let _0x4fedd2=0x0;_0x4fedd2<this[_0x516a2e(0x1a6)];_0x4fedd2++)this[_0x516a2e(0x1ba)][_0x4fedd2][_0x516a2e(0x1c9)]=!0x0;let _0xd74fdb=0x0;for(let _0x50571b=this[_0x516a2e(0x1a6)];_0x50571b<this[_0x516a2e(0x1ba)][_0x516a2e(0x1c1)];_0x50571b++){const _0xddef53=Date[_0x516a2e(0x19f)](),_0x1e30b2=this[_0x516a2e(0x1ba)][_0x50571b],_0x3e5db1=_0xddef53-_0xd74fdb;_0x1e30b2[_0x516a2e(0x1c9)]=!0x0;let _0x59a7f4=_0x1e30b2[_0x516a2e(0x1c3)];for(;_0x59a7f4;)_0x59a7f4[_0x516a2e(0x1c9)]=!0x0,_0x59a7f4=_0x59a7f4[_0x516a2e(0x1c3)];if(_0x3e5db1<this[_0x516a2e(0x1ab)][_0x516a2e(0x1a9)])try{const {promise:_0x26a1d4,abortController:_0x151025}=mr(this[_0x516a2e(0x1ab)][_0x516a2e(0x1a9)]-_0x3e5db1);this[_0x516a2e(0x1b2)]=_0x151025,await _0x26a1d4;}catch(_0xcc0c87){return;}_0x9e2cb7(_0x3265a3,'<'+_0x3265a3[_0x516a2e(0x1bf)]+'>'+this[_0x516a2e(0x1b4)](this[_0x516a2e(0x1c2)])+'</'+_0x3265a3[_0x516a2e(0x1bf)]+'>',{'childrenOnly':!0x0}),this[_0x516a2e(0x1ab)][_0x516a2e(0x1c4)]&&this[_0x516a2e(0x1ab)][_0x516a2e(0x1c4)](),this[_0x516a2e(0x1a6)]=_0x50571b,_0xd74fdb=Date[_0x516a2e(0x19f)]();}this[_0x516a2e(0x1ce)]=!0x1;}[_0xa60e87(0x1b8)]({targetElement:_0x16c501}){const _0x2107e7=_0xa60e87;Array[_0x2107e7(0x1b1)](_0x16c501[_0x2107e7(0x1d4)](_0x2107e7(0x1c7)))[_0x2107e7(0x1a5)]()[_0x2107e7(0x1cc)](_0x3558b4=>{const _0x2f5cf8=_0x2107e7;_0x3558b4[_0x2f5cf8(0x1ae)](_0x3558b4[_0x2f5cf8(0x1b6)][0x0]);});}[_0xa60e87(0x1ac)](){const _0x2ea482=_0xa60e87;this[_0x2ea482(0x1ce)]=!0x1,this[_0x2ea482(0x1b2)]&&(this[_0x2ea482(0x1b2)][_0x2ea482(0x1bc)](),this[_0x2ea482(0x1b2)]=null);}[_0xa60e87(0x1b4)](_0x26b85b){const _0x2d6c9=_0xa60e87;let _0x20bf3f='';if(function(_0x253142){return _0x367983(_0x253142);}(_0x26b85b)){for(const _0x3a2151 of _0x26b85b[_0x2d6c9(0x1a3)])_0x20bf3f+=this[_0x2d6c9(0x1b4)](_0x3a2151);}else{if(ar(_0x26b85b)){if(!_0x26b85b[_0x2d6c9(0x1c9)])return'';const _0x5a1e1f=_0x26b85b,_0x1446fd=Object[_0x2d6c9(0x1aa)](_0x5a1e1f[_0x2d6c9(0x1a4)])[_0x2d6c9(0x1a2)](([_0x1f652c,_0x1e5a1d])=>_0x1f652c+'=\x22'+_0x1e5a1d+'\x22')[_0x2d6c9(0x19a)]('\x20');_0x20bf3f+='<'+_0x5a1e1f[_0x2d6c9(0x1bf)]+(_0x1446fd?'\x20'+_0x1446fd:'')+'>';for(const _0x10f3f2 of _0x4cb31e(_0x5a1e1f))_0x20bf3f+=this[_0x2d6c9(0x1b4)](_0x10f3f2);_0x20bf3f+='</'+_0x5a1e1f[_0x2d6c9(0x1bf)]+'>';}else{if(!cr(_0x26b85b))return'';if(!_0x26b85b[_0x2d6c9(0x1c9)])return'';!function(_0x213635){const _0x4a1b60=_0x2d6c9;if(!_0x213635[_0x4a1b60(0x1c3)]||!ar(_0x213635[_0x4a1b60(0x1c3)]))return!0x1;if(!hr[_0x4a1b60(0x1cd)](_0x213635[_0x4a1b60(0x1c3)][_0x4a1b60(0x1bf)]))return!0x1;return!_0x515b96(_0x213635)[_0x4a1b60(0x19d)](/^\s*[<>]\s*$/);}(_0x26b85b)?_0x20bf3f+=_0x10e6f5(_0x26b85b):_0x20bf3f+=_0x10e6f5(new _0x99c864(_0x2d6c9(0x1d5),{'data-ck-html-streamer-word-chunk':'','style':this[_0x2d6c9(0x1ab)][_0x2d6c9(0x1a7)]},[_0x26b85b]));}}return _0x20bf3f;}[_0xa60e87(0x1af)](){const _0x4c8c61=_0xa60e87,_0x5eaf70=[];return function(_0x7a6bab,_0x4b39a9){const _0x367ee9=_0x261d,_0x56800a=_0x532b33=>{const _0xb7c153=_0x261d;if(_0x4b39a9(_0x532b33),_0x532b33 instanceof _0x577c1f)for(let _0x4bdc9c=0x0;_0x4bdc9c<_0x532b33[_0xb7c153(0x1a3)][_0xb7c153(0x1c1)];_0x4bdc9c++){const _0x10cc2c=_0x532b33[_0xb7c153(0x1a3)][_0x4bdc9c];_0x56800a(_0x10cc2c);}};for(let _0x3d0b9f=0x0;_0x3d0b9f<_0x7a6bab[_0x367ee9(0x1a3)][_0x367ee9(0x1c1)];_0x3d0b9f++)_0x56800a(_0x7a6bab[_0x367ee9(0x1a3)][_0x3d0b9f]);}(this[_0x4c8c61(0x1c2)],_0x22cb44=>{const _0xeafdb6=_0x4c8c61;if(cr(_0x22cb44)){const _0x39b11c=this[_0xeafdb6(0x1b5)](_0x22cb44);_0x39b11c[_0xeafdb6(0x1c1)]&&_0x5eaf70[_0xeafdb6(0x1b3)](..._0x39b11c);}_0x22cb44[_0xeafdb6(0x199)]||_0x22cb44[_0xeafdb6(0x1d3)]||_0x5eaf70[_0xeafdb6(0x1b3)](_0x22cb44);}),_0x5eaf70;}[_0xa60e87(0x1b5)](_0x44f995){const _0x5f136e=_0xa60e87;if(_0x44f995[_0x5f136e(0x199)]||_0x44f995[_0x5f136e(0x1d3)])return[];const _0x549dc9=_0x515b96(_0x44f995)[_0x5f136e(0x19d)](/(?:\s*\S+\s*)/g),_0x19621f=[];if(_0x549dc9&&_0x549dc9[_0x5f136e(0x1c1)]>0x1){for(const _0x13a989 of _0x549dc9){const _0x2929ee=new _0x4d63d0(_0x13a989);_0x2929ee[_0x5f136e(0x1d3)]=!0x0,_0x461d60(_0x44f995,_0x2929ee),_0x19621f[_0x5f136e(0x1b3)](_0x2929ee);}_0x44f995[_0x5f136e(0x199)]=!0x0,_0x369bb3(_0x44f995);}return _0x19621f;}}const hr=['p','li','td','th',_0xa60e87(0x1d5),'h1','h2','h3','h4','h5','h6','b',_0xa60e87(0x1a8),'i','em',_0xa60e87(0x198),_0xa60e87(0x1c5),_0xa60e87(0x1bb),_0xa60e87(0x1c6),_0xa60e87(0x1cb),'a',_0xa60e87(0x1cf),_0xa60e87(0x19c)];function cr(_0x31286c){return _0x4a6f7e(_0x31286c);}function ar(_0x4ae20d){return _0x7b6b(_0x4ae20d);}function mr(_0x5c8cfb){const _0x57254f=new AbortController();return{'promise':new Promise((_0x3fe685,_0x2e128e)=>{const _0x5182f3=_0x261d,_0x44d11b=setTimeout(_0x3fe685,_0x5c8cfb);_0x57254f[_0x5182f3(0x1b0)][_0x5182f3(0x1b9)](_0x5182f3(0x1bc),()=>{clearTimeout(_0x44d11b),_0x2e128e();});}),'abortController':_0x57254f};}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aieditorintegration/aieditorintegration
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AIToggleButtonUI } from './aitogglebutton/aitogglebuttonui.js';
|
|
11
|
+
/**
|
|
12
|
+
* The AI Editor Integration plugin. It registers AI-related components in the editor
|
|
13
|
+
* and provides the necessary UI elements for AI functionality.
|
|
14
|
+
*
|
|
15
|
+
* This plugin works alongside context plugins that provide specific AI features,
|
|
16
|
+
* handling the editor-level integration and toolbar controls.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AIEditorIntegration extends Plugin {
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get requires(): readonly [typeof AIToggleButtonUI];
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "AIEditorIntegration";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get isOfficialPlugin(): true;
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
static get isPremiumPlugin(): true;
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x56b6(){var _0x10901f=['50RbjPIP','195542TuGBQv','5337612wUMCAd','AIEditorIntegration','4978143iEOPIG','9rNIgxj','4265368hkRzwM','pluginName','204ZfFuEl','33025YYFPzI','910539phRskv','requires','2830422dmTlQe','isOfficialPlugin','isPremiumPlugin'];_0x56b6=function(){return _0x10901f;};return _0x56b6();}var _0x402f7f=_0x5d1f;function _0x5d1f(_0xd9c468,_0x289acf){var _0x56b643=_0x56b6();return _0x5d1f=function(_0x5d1f45,_0x14101a){_0x5d1f45=_0x5d1f45-0x1c6;var _0x230f39=_0x56b643[_0x5d1f45];return _0x230f39;},_0x5d1f(_0xd9c468,_0x289acf);}(function(_0x3db818,_0xc3a7c1){var _0x3f4abe=_0x5d1f,_0x92e10e=_0x3db818();while(!![]){try{var _0x4d3590=-parseInt(_0x3f4abe(0x1d2))/0x1+-parseInt(_0x3f4abe(0x1c9))/0x2*(parseInt(_0x3f4abe(0x1cd))/0x3)+-parseInt(_0x3f4abe(0x1d0))/0x4*(parseInt(_0x3f4abe(0x1d1))/0x5)+-parseInt(_0x3f4abe(0x1ca))/0x6+-parseInt(_0x3f4abe(0x1d4))/0x7+parseInt(_0x3f4abe(0x1ce))/0x8+parseInt(_0x3f4abe(0x1cc))/0x9*(parseInt(_0x3f4abe(0x1c8))/0xa);if(_0x4d3590===_0xc3a7c1)break;else _0x92e10e['push'](_0x92e10e['shift']());}catch(_0x31c7fb){_0x92e10e['push'](_0x92e10e['shift']());}}}(_0x56b6,0x71517));import{Plugin as _0x3df95d}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x794c8e}from'./aitogglebutton/aitogglebuttonui.js';export class AIEditorIntegration extends _0x3df95d{static get[_0x402f7f(0x1d3)](){return[_0x794c8e];}static get[_0x402f7f(0x1cf)](){var _0x21239b=_0x402f7f;return _0x21239b(0x1cb);}static get[_0x402f7f(0x1c6)](){return!0x0;}static get[_0x402f7f(0x1c7)](){return!0x0;}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aieditorintegration/aitogglebutton/aitogglebuttonui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { AITabs } from '../../aitabs/aitabs.js';
|
|
11
|
+
/**
|
|
12
|
+
* Registers the `toggleAi` toolbar button that toggles the visibility of AI tabs.
|
|
13
|
+
*
|
|
14
|
+
* Context plugins can’t register toolbar items via the editor’s component factory, so this is provided as a dedicated editor plugin.
|
|
15
|
+
* Include this plugin in the editor configuration to enable the button.
|
|
16
|
+
*/
|
|
17
|
+
export declare class AIToggleButtonUI extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof AITabs];
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "AIToggleButtonUI";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x2cceac=_0x441f;(function(_0xb59cde,_0x16cca0){const _0x140b35=_0x441f,_0x52385b=_0xb59cde();while(!![]){try{const _0x259a15=-parseInt(_0x140b35(0x14b))/0x1+-parseInt(_0x140b35(0x149))/0x2*(parseInt(_0x140b35(0x14c))/0x3)+-parseInt(_0x140b35(0x146))/0x4+parseInt(_0x140b35(0x14e))/0x5+-parseInt(_0x140b35(0x140))/0x6+-parseInt(_0x140b35(0x147))/0x7*(parseInt(_0x140b35(0x13a))/0x8)+parseInt(_0x140b35(0x144))/0x9*(parseInt(_0x140b35(0x157))/0xa);if(_0x259a15===_0x16cca0)break;else _0x52385b['push'](_0x52385b['shift']());}catch(_0x39035d){_0x52385b['push'](_0x52385b['shift']());}}}(_0xacc1,0xa25ce));import{Plugin as _0x5adb4e}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x5c1f71}from'./toggleaicommand.js';import{ButtonView as _0x40224e,MenuBarMenuListItemButtonView as _0x5162be}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x36f67c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x11198b}from'../../aicore/utils/common-translations.js';import{AITabs as _0xaff691}from'../../aitabs/aitabs.js';function _0x441f(_0x1865e2,_0x382de1){const _0xacc112=_0xacc1();return _0x441f=function(_0x441f1e,_0x31d563){_0x441f1e=_0x441f1e-0x137;let _0x5e23b3=_0xacc112[_0x441f1e];return _0x5e23b3;},_0x441f(_0x1865e2,_0x382de1);}function _0xacc1(){const _0x19bf04=['isOn','requires','8ZtjjCM','ck-ai-toggle-button','value','menuBar:toggleAi','set','AI_TOGGLE_BUTTON_LABEL','2004408ZOijLn','locale','listenTo','get','5824728GwoSvG','isEnabled','381808thGUwR','1925077rAhWMI','_createAIUIButton','2qCnNTU','componentFactory','1137234SILSmO','2059845WlyHaO','init','3023250mgsCWC','editor','execute','commands','bind','toggleAi','isPremiumPlugin','isOfficialPlugin','add','40oITxhQ','AIToggleButtonUI','menuitemcheckbox','pluginName'];_0xacc1=function(){return _0x19bf04;};return _0xacc1();}export class AIToggleButtonUI extends _0x5adb4e{static get[_0x2cceac(0x139)](){return[_0xaff691];}static get[_0x2cceac(0x137)](){const _0x5c711a=_0x2cceac;return _0x5c711a(0x158);}static get[_0x2cceac(0x155)](){return!0x0;}static get[_0x2cceac(0x154)](){return!0x0;}[_0x2cceac(0x14d)](){const _0x262c8a=_0x2cceac,_0x33a9ee=this[_0x262c8a(0x14f)];_0x33a9ee[_0x262c8a(0x151)][_0x262c8a(0x156)](_0x262c8a(0x153),new _0x5c1f71(_0x33a9ee)),_0x33a9ee['ui'][_0x262c8a(0x14a)][_0x262c8a(0x156)](_0x262c8a(0x153),()=>{const _0x5e106b=_0x262c8a,_0xd88d59=this[_0x5e106b(0x148)](_0x40224e);return _0xd88d59[_0x5e106b(0x13e)]({'tooltip':!0x0,'class':_0x5e106b(0x13b)}),_0xd88d59;}),_0x33a9ee['ui'][_0x262c8a(0x14a)][_0x262c8a(0x156)](_0x262c8a(0x13d),()=>{const _0x4e202a=_0x262c8a,_0x50bb4a=this[_0x4e202a(0x148)](_0x5162be);return _0x50bb4a[_0x4e202a(0x13e)]({'role':_0x4e202a(0x159)}),_0x50bb4a;});}[_0x2cceac(0x148)](_0x5bde5e){const _0x2de739=_0x2cceac,_0x2dfc3e=this[_0x2de739(0x14f)],_0x483903=_0x2dfc3e[_0x2de739(0x151)][_0x2de739(0x143)](_0x2de739(0x153)),_0x1dd758=new _0x5bde5e(_0x2dfc3e[_0x2de739(0x141)]);return _0x1dd758[_0x2de739(0x13e)]({'label':_0x11198b(_0x2dfc3e[_0x2de739(0x141)],_0x2de739(0x13f)),'icon':_0x36f67c,'isToggleable':!0x0}),_0x1dd758[_0x2de739(0x152)](_0x2de739(0x145))['to'](_0x483903),_0x1dd758[_0x2de739(0x152)](_0x2de739(0x138))['to'](_0x483903,_0x2de739(0x13c),_0x276f55=>!!_0x276f55),this[_0x2de739(0x142)](_0x1dd758,_0x2de739(0x150),()=>{const _0x5accd2=_0x2de739;_0x483903[_0x5accd2(0x150)]();}),_0x1dd758;}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aieditorintegration/aitogglebutton/toggleaicommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
export declare class ToggleAICommand extends Command {
|
|
11
|
+
constructor(editor: Editor);
|
|
12
|
+
/**
|
|
13
|
+
* @inheritdoc
|
|
14
|
+
*/
|
|
15
|
+
execute(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x1046(_0x1bd311,_0x19a0ed){const _0x2c177a=_0x2c17();return _0x1046=function(_0x10464f,_0x1e1e31){_0x10464f=_0x10464f-0x97;let _0x3eecce=_0x2c177a[_0x10464f];return _0x3eecce;},_0x1046(_0x1bd311,_0x19a0ed);}function _0x2c17(){const _0x482779=['30mOwcfJ','1785035EmjNhM','2064898FjuGwd','editor','6aFMqED','170530BKrPHI','12243564ybyKVD','1139463JBSGXI','isEnabled','view','2NyZFbl','2504224YnsqRR','plugins','AITabs','value','isVisible','3nNNfHi','get','1723380IuoOsv','execute','8hWrPFQ','bind'];_0x2c17=function(){return _0x482779;};return _0x2c17();}const _0x5838b8=_0x1046;(function(_0x46a020,_0x57ca54){const _0x261d62=_0x1046,_0x5049de=_0x46a020();while(!![]){try{const _0x3a018c=parseInt(_0x261d62(0x9e))/0x1*(-parseInt(_0x261d62(0xa3))/0x2)+-parseInt(_0x261d62(0xa9))/0x3*(parseInt(_0x261d62(0xa4))/0x4)+parseInt(_0x261d62(0xab))/0x5+-parseInt(_0x261d62(0x9d))/0x6*(-parseInt(_0x261d62(0x9a))/0x7)+parseInt(_0x261d62(0x97))/0x8*(parseInt(_0x261d62(0xa0))/0x9)+parseInt(_0x261d62(0x99))/0xa*(-parseInt(_0x261d62(0x9b))/0xb)+parseInt(_0x261d62(0x9f))/0xc;if(_0x3a018c===_0x57ca54)break;else _0x5049de['push'](_0x5049de['shift']());}catch(_0x3a41f0){_0x5049de['push'](_0x5049de['shift']());}}}(_0x2c17,0x5e71d));import{Command as _0x436b2f}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x436b2f{constructor(_0x3b42ef){const _0x1e8a10=_0x1046;super(_0x3b42ef);const _0x5eab2d=_0x3b42ef[_0x1e8a10(0xa5)][_0x1e8a10(0xaa)](_0x1e8a10(0xa6))[_0x1e8a10(0xa2)];this[_0x1e8a10(0x98)](_0x1e8a10(0xa7))['to'](_0x5eab2d,_0x1e8a10(0xa8)),this[_0x1e8a10(0xa1)]=!0x0;}[_0x5838b8(0xac)](){const _0x55593a=_0x5838b8,_0x19e618=this[_0x55593a(0x9c)][_0x55593a(0xa5)][_0x55593a(0xaa)](_0x55593a(0xa6))[_0x55593a(0xa2)];_0x19e618[_0x55593a(0xa8)]=!_0x19e618[_0x55593a(0xa8)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1658b9=_0x4a4b;function _0x2a96(){var _0x2366fc=['config','900172cThGPp','define','10wtKADB','isPremiumPlugin','requires','210LpxBnG','isOfficialPlugin','234273JTXgKF','AIQuickActions','15416qikWCr','251178cyEMnx','pluginName','10YWJhyS','1467vyABIt','ai.quickActions','1987629uGKjxu','115044vnaqSu','216689JBsSWE'];_0x2a96=function(){return _0x2366fc;};return _0x2a96();}function _0x4a4b(_0xa9b595,_0x3765d7){var _0x2a9614=_0x2a96();return _0x4a4b=function(_0x4a4b43,_0x120c22){_0x4a4b43=_0x4a4b43-0x144;var _0x4643f0=_0x2a9614[_0x4a4b43];return _0x4643f0;},_0x4a4b(_0xa9b595,_0x3765d7);}(function(_0x39b9f5,_0x48f0ce){var _0x4687c5=_0x4a4b,_0x19a432=_0x39b9f5();while(!![]){try{var _0x12f50d=parseInt(_0x4687c5(0x153))/0x1+-parseInt(_0x4687c5(0x14e))/0x2*(parseInt(_0x4687c5(0x149))/0x3)+parseInt(_0x4687c5(0x14c))/0x4+-parseInt(_0x4687c5(0x145))/0x5*(-parseInt(_0x4687c5(0x156))/0x6)+-parseInt(_0x4687c5(0x148))/0x7+-parseInt(_0x4687c5(0x155))/0x8*(parseInt(_0x4687c5(0x146))/0x9)+-parseInt(_0x4687c5(0x151))/0xa*(-parseInt(_0x4687c5(0x14a))/0xb);if(_0x12f50d===_0x48f0ce)break;else _0x19a432['push'](_0x19a432['shift']());}catch(_0x26822a){_0x19a432['push'](_0x19a432['shift']());}}}(_0x2a96,0x28c15));import{Plugin as _0xd8f0b}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x456cb0}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0xa43f5b}from'./aiquickactionsediting.js';export class AIQuickActions extends _0xd8f0b{static get[_0x1658b9(0x150)](){return[_0x456cb0,_0xa43f5b];}static get[_0x1658b9(0x144)](){var _0x295534=_0x1658b9;return _0x295534(0x154);}static get[_0x1658b9(0x152)](){return!0x0;}static get[_0x1658b9(0x14f)](){return!0x0;}constructor(_0x4d52c3){var _0xb93c98=_0x1658b9;super(_0x4d52c3),_0x4d52c3[_0xb93c98(0x14b)][_0xb93c98(0x14d)](_0xb93c98(0x147),{'extraCommands':[],'removeCommands':[]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x36ea(){const _0x296b48=['label','args','has','ai-quick-actions-plugin-not-found','REVIEW','16qxXKZg','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','get','AIActions','getLimitElement','model','ask-ai','15197FATlrQ','activateTab','document','AIChatController','chat','actionName','selection','_handleAIActionsAction','locale','3510846yBoXik','schema','setSelection','removeSelectionFromChatContext','AIChat','editor','AIReviewMode','_handleAIReviewAction','displayedPrompt','handleAIReviewAction','_handleAIActionsActionLabel','addSelectionToChatContext','other','execute','type','4bNeOUq','getSelectedBlocks','ACTION','log','prompt','22418124lsyLHN','26LCaufH','parent','894UjDWuT','5304474wIZhWX','_expandSelectionIfCollapsed','176099LkfkSQ','sendMessage','1OWgBoc','_handleAIChatAction','executeAction','plugins','1070BjdtiO','change','focusPromptInput','icon','648680xlcxOq','view','3349202FwLnyT','isCollapsed','AITabs','startConversation','CHAT'];_0x36ea=function(){return _0x296b48;};return _0x36ea();}const _0xcb5720=_0x270f;(function(_0x59886f,_0x35740a){const _0x244660=_0x270f,_0x17991b=_0x59886f();while(!![]){try{const _0x32b538=-parseInt(_0x244660(0x159))/0x1*(-parseInt(_0x244660(0x163))/0x2)+parseInt(_0x244660(0x195))/0x3*(-parseInt(_0x244660(0x18c))/0x4)+parseInt(_0x244660(0x161))/0x5+parseInt(_0x244660(0x194))/0x6*(-parseInt(_0x244660(0x174))/0x7)+-parseInt(_0x244660(0x16d))/0x8*(parseInt(_0x244660(0x17d))/0x9)+-parseInt(_0x244660(0x15d))/0xa*(parseInt(_0x244660(0x157))/0xb)+-parseInt(_0x244660(0x191))/0xc*(-parseInt(_0x244660(0x192))/0xd);if(_0x32b538===_0x35740a)break;else _0x17991b['push'](_0x17991b['shift']());}catch(_0x6c8a7e){_0x17991b['push'](_0x17991b['shift']());}}}(_0x36ea,0xe95ff));import{Command as _0x1ee9f7}from'ckeditor5/src/core.js';function _0x270f(_0x36e2c3,_0x4da59a){const _0x36ea77=_0x36ea();return _0x270f=function(_0x270f64,_0x5f5826){_0x270f64=_0x270f64-0x157;let _0x486777=_0x36ea77[_0x270f64];return _0x486777;},_0x270f(_0x36e2c3,_0x4da59a);}import{CKEditorError as _0x362ed3,first as _0x344f9b}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x1773da}from'./aiquickactionsui.js';import{getTranslation as _0x33eb90}from'./utils/common-translations.js';export class AIQuickActionsCommand extends _0x1ee9f7{[_0xcb5720(0x18a)](_0x37e488){const _0x10ebc0=_0xcb5720;switch(_0x37e488[_0x10ebc0(0x18b)]){case _0x1773da[_0x10ebc0(0x167)]:if(!this[_0x10ebc0(0x182)][_0x10ebc0(0x15c)][_0x10ebc0(0x16a)](_0x10ebc0(0x181))){const _0x4a2060=_0x33eb90(this[_0x10ebc0(0x182)][_0x10ebc0(0x17c)],_0x10ebc0(0x16e),_0x10ebc0(0x181));throw new _0x362ed3(_0x10ebc0(0x16b),this[_0x10ebc0(0x182)],{'errorMessage':_0x4a2060});}this[_0x10ebc0(0x15a)](_0x37e488);break;case _0x1773da[_0x10ebc0(0x18e)]:if(!this[_0x10ebc0(0x182)][_0x10ebc0(0x15c)][_0x10ebc0(0x16a)](_0x10ebc0(0x170))){const _0x2c348c=_0x33eb90(this[_0x10ebc0(0x182)][_0x10ebc0(0x17c)],_0x10ebc0(0x16e),_0x10ebc0(0x170));throw new _0x362ed3(_0x10ebc0(0x16b),this[_0x10ebc0(0x182)],{'errorMessage':_0x2c348c});}this[_0x10ebc0(0x17b)](_0x37e488);break;case _0x1773da[_0x10ebc0(0x16c)]:if(!this[_0x10ebc0(0x182)][_0x10ebc0(0x15c)][_0x10ebc0(0x16a)](_0x10ebc0(0x183))){const _0x53c4d8=_0x33eb90(this[_0x10ebc0(0x182)][_0x10ebc0(0x17c)],_0x10ebc0(0x16e),_0x10ebc0(0x183));throw new _0x362ed3(_0x10ebc0(0x16b),this[_0x10ebc0(0x182)],{'errorMessage':_0x53c4d8});}this[_0x10ebc0(0x184)](_0x37e488);}}async[_0xcb5720(0x15a)](_0x3006c8){const _0x28769d=_0xcb5720,_0x58d6e3=this[_0x28769d(0x182)][_0x28769d(0x15c)][_0x28769d(0x16f)](_0x28769d(0x181)),_0x4994c5=this[_0x28769d(0x182)][_0x28769d(0x15c)][_0x28769d(0x16f)](_0x28769d(0x177));if(this[_0x28769d(0x182)][_0x28769d(0x15c)][_0x28769d(0x16f)](_0x28769d(0x165))[_0x28769d(0x162)][_0x28769d(0x175)](_0x28769d(0x178)),_0x28769d(0x173)===_0x3006c8['id'])_0x4994c5[_0x28769d(0x180)](),this[_0x28769d(0x196)](),await _0x58d6e3[_0x28769d(0x188)](),_0x58d6e3[_0x28769d(0x15f)]();else await _0x58d6e3[_0x28769d(0x166)](),await _0x58d6e3[_0x28769d(0x188)](),await _0x58d6e3[_0x28769d(0x158)]({'message':_0x3006c8[_0x28769d(0x190)]||_0x3006c8[_0x28769d(0x185)],'quickActionData':{'id':_0x3006c8['id'],'displayedPrompt':_0x3006c8[_0x28769d(0x185)]}});}[_0xcb5720(0x196)](){const _0x5cbcf4=_0xcb5720,_0x1addb2=this[_0x5cbcf4(0x182)],_0x29c43=_0x1addb2[_0x5cbcf4(0x172)][_0x5cbcf4(0x176)][_0x5cbcf4(0x17a)];if(!_0x29c43[_0x5cbcf4(0x164)])return;const _0x502582=_0x344f9b(_0x29c43[_0x5cbcf4(0x18d)]())||_0x1addb2[_0x5cbcf4(0x172)][_0x5cbcf4(0x17e)][_0x5cbcf4(0x171)](_0x29c43);_0x1addb2[_0x5cbcf4(0x172)][_0x5cbcf4(0x15e)](_0x3930c0=>{const _0x43624d=_0x5cbcf4;_0x3930c0[_0x43624d(0x17f)](_0x502582,'in');});}[_0xcb5720(0x187)](_0x16ccf2){const _0x3e3793=_0xcb5720;return _0x16ccf2[_0x3e3793(0x193)]?.[_0x3e3793(0x168)]&&_0x3e3793(0x189)!==_0x16ccf2[_0x3e3793(0x193)]?.['id']?_0x16ccf2[_0x3e3793(0x193)][_0x3e3793(0x168)]+':\x20'+_0x16ccf2[_0x3e3793(0x185)]:_0x16ccf2[_0x3e3793(0x185)];}async[_0xcb5720(0x17b)](_0x18fefe){const _0x2df6bf=_0xcb5720,_0x473b04=this[_0x2df6bf(0x182)][_0x2df6bf(0x15c)][_0x2df6bf(0x16f)](_0x2df6bf(0x170)),_0x1f4c05=_0x18fefe[_0x2df6bf(0x190)]?{'userMessage':_0x18fefe[_0x2df6bf(0x190)],'model':_0x18fefe[_0x2df6bf(0x172)]}:{'actionName':_0x18fefe[_0x2df6bf(0x179)]||_0x18fefe['id'],'args':_0x18fefe[_0x2df6bf(0x169)]},_0x37f49c=this[_0x2df6bf(0x187)](_0x18fefe);await _0x473b04[_0x2df6bf(0x15b)](_0x1f4c05,_0x37f49c,_0x18fefe[_0x2df6bf(0x160)]);}async[_0xcb5720(0x184)](_0x2dc5df){const _0x4adf36=_0xcb5720;console[_0x4adf36(0x18f)](_0x4adf36(0x186),_0x2dc5df);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5a9816=_0x787d;(function(_0x5bb734,_0xef0a2b){const _0x550454=_0x787d,_0x1d9827=_0x5bb734();while(!![]){try{const _0x59293f=-parseInt(_0x550454(0x200))/0x1+parseInt(_0x550454(0x1ed))/0x2+parseInt(_0x550454(0x1fb))/0x3*(parseInt(_0x550454(0x1f9))/0x4)+-parseInt(_0x550454(0x1ee))/0x5+-parseInt(_0x550454(0x1f3))/0x6*(-parseInt(_0x550454(0x1ff))/0x7)+parseInt(_0x550454(0x1f5))/0x8*(-parseInt(_0x550454(0x207))/0x9)+parseInt(_0x550454(0x204))/0xa;if(_0x59293f===_0xef0a2b)break;else _0x1d9827['push'](_0x1d9827['shift']());}catch(_0x40ac8e){_0x1d9827['push'](_0x1d9827['shift']());}}}(_0x2662,0xc292e));import{Plugin as _0x58e9b3}from'ckeditor5/src/core.js';import{AIQuickActionsCommand as _0x1b6e91}from'./aiquickactionscommand.js';function _0x787d(_0x6c900c,_0x50cdd4){const _0x266239=_0x2662();return _0x787d=function(_0x787d8,_0x22e2ce){_0x787d8=_0x787d8-0x1ec;let _0x20c992=_0x266239[_0x787d8];return _0x20c992;},_0x787d(_0x6c900c,_0x50cdd4);}function _0x2662(){const _0x442dca=['isOfficialPlugin','AIChat','2417107ISrJdi','743378tuCmnJ','has','AIQuickActionsEditing','editor','17667430gECzuE','commands','plugins','7115247lxPVGy','add','selection','1504786nJzhre','7274950tzeJOi','model','aiQuickAction','directChange','removeSelectionFromChatContext','6kRuRuq','change:range','8TMlLEi','document','isPremiumPlugin','init','8RKGEKa','get','1382232NaOayb','pluginName'];_0x2662=function(){return _0x442dca;};return _0x2662();}export class AIQuickActionsEditing extends _0x58e9b3{static get[_0x5a9816(0x1fc)](){const _0x7cf75=_0x5a9816;return _0x7cf75(0x202);}static get[_0x5a9816(0x1fd)](){return!0x0;}static get[_0x5a9816(0x1f7)](){return!0x0;}[_0x5a9816(0x1f8)](){const _0x214cc7=_0x5a9816,_0x660054=this[_0x214cc7(0x203)],_0x4c2545=new _0x1b6e91(this[_0x214cc7(0x203)]);if(_0x660054[_0x214cc7(0x205)][_0x214cc7(0x208)](_0x214cc7(0x1f0),_0x4c2545),_0x660054[_0x214cc7(0x206)][_0x214cc7(0x201)](_0x214cc7(0x1fe))){const _0x24baff=this[_0x214cc7(0x203)][_0x214cc7(0x206)][_0x214cc7(0x1fa)](_0x214cc7(0x1fe));_0x660054[_0x214cc7(0x1ef)][_0x214cc7(0x1f6)][_0x214cc7(0x1ec)]['on'](_0x214cc7(0x1f4),(_0x41ba9c,_0x5c4910)=>{const _0x53292f=_0x214cc7;_0x5c4910[_0x53292f(0x1f1)]&&_0x24baff[_0x53292f(0x1f2)]();});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2a102c=_0x2e08;(function(_0x4b1c65,_0x1fc4a0){const _0x5ac786=_0x2e08,_0x3bc0cd=_0x4b1c65();while(!![]){try{const _0x44215e=parseInt(_0x5ac786(0x224))/0x1*(parseInt(_0x5ac786(0x230))/0x2)+parseInt(_0x5ac786(0x252))/0x3+-parseInt(_0x5ac786(0x21f))/0x4+parseInt(_0x5ac786(0x211))/0x5+-parseInt(_0x5ac786(0x232))/0x6+-parseInt(_0x5ac786(0x25e))/0x7+parseInt(_0x5ac786(0x21b))/0x8;if(_0x44215e===_0x1fc4a0)break;else _0x3bc0cd['push'](_0x3bc0cd['shift']());}catch(_0x2ba64a){_0x3bc0cd['push'](_0x3bc0cd['shift']());}}}(_0x426f,0x9eecc));import{IconAIAdjustLength as _0x301669,IconAIAskAI as _0x36da2a,IconAIChangeTone as _0x3e79e9,IconAIChatCommands as _0x22b6f6,IconAIContinueWriting as _0x2e7cd3,IconAIGrammarCheck as _0x30505a,IconAIImproveWriting as _0x1872f2,IconAIOther as _0x3906e9,IconAIQuickActions as _0x308a0d,IconAITranslate as _0x409849}from'@ckeditor/ckeditor5-icons';import{Plugin as _0xe69488}from'ckeditor5/src/core.js';import{getTranslation as _0x18d411}from'./utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x5ad8aa}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x5378bb}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x348796,BalloonToolbar as _0x18fbf3}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x2e08(_0x5c1c48,_0x537409){const _0x426fd9=_0x426f();return _0x2e08=function(_0x2e08f1,_0x5a92b0){_0x2e08f1=_0x2e08f1-0x1ef;let _0x2bf629=_0x426fd9[_0x2e08f1];return _0x2bf629;},_0x2e08(_0x5c1c48,_0x537409);}function _0x426f(){const _0x56a4a7=['requires','get','japanese','includes','<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>','_initializeQuickActionsComponents','improve-writing','AIActions','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','isOfficialPlugin','AI_QUICK_ACTIONS_CHAT_COMMANDS','editor','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AIReviewMode','2983479eJnBFv','replace','type','attachToDom','getDefaultQuickActions','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','plugins','aiQuickActions','AI_QUICK_ACTIONS_IMPROVE_WRITING','AI_QUICK_ACTIONS_ADJUST_LENGTH','uiLanguage','explain','7365449VWKIhF','korean','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_ASK_AI','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_MORE_CASUAL','make-tone-friendly','_shouldIncludeAction','AI_QUICK_ACTIONS_MORE_DIRECT','translate-to-japanese','_quickActionsDefinition','find','AI_QUICK_ACTIONS_TRANSLATE','translate-to-italian','DisplayNames','config','AI_QUICK_ACTIONS_MAKE_LONGER','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_OTHER','fix-grammar','make-shorter','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','isPremiumPlugin','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_CONTINUE_WRITING','ACTION','ai.quickActions.removeCommands','chinese','ask-ai','make-longer','map','CHAT','translate-to-portuguese','push','summarize','_initializeQuickActionsDropdown','chat-commands','portuguese','English','translate-to-korean','AI_QUICK_ACTIONS_EXPLAIN','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','2794985RDEFCk','continue','locale','make-tone-professional','translate-to-chinese','french','change-tone','AI_QUICK_ACTIONS_MORE_CONFIDENT','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','componentFactory','6918624CKMCOZ','make-tone-direct','length','highlight-key-points','2883084gQLoeF','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','add','AI_QUICK_ACTIONS_HEADING','_initializeQuickActionsComponentsAndCommands','354707pFvxmq','actions','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','translate','AI_QUICK_ACTIONS_CHANGE_TONE','AIChat','AIQuickActionsUI','_getDefaultAndCustomActions','<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>','language','ai.quickActions.extraCommands','6RxxupB','italian','6351030Ndceyi','translate-to-french','REVIEW','filter','AI_QUICK_ACTIONS_SUMMARIZE','init','AI_QUICK_ACTIONS_MAKE_SHORTER','other','translate-to-russian','translate-to-english','pluginName','english','russian','adjust-length','make-tone-confident','has','make-tone-casual','forEach'];_0x426f=function(){return _0x56a4a7;};return _0x426f();}const Jt=_0x2a102c(0x22d),Vt=_0x2a102c(0x1f7),Xt=_0x2a102c(0x248);export var AIQuickActionType;!function(_0x226b59){const _0x5194d8=_0x2a102c;_0x226b59[_0x5194d8(0x205)]=_0x5194d8(0x205),_0x226b59[_0x5194d8(0x1ff)]=_0x5194d8(0x1ff),_0x226b59[_0x5194d8(0x234)]=_0x5194d8(0x234);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x55c685){const _0x4e3cc8=_0x2a102c;_0x55c685[_0x4e3cc8(0x205)]=_0x4e3cc8(0x22a),_0x55c685[_0x4e3cc8(0x1ff)]=_0x4e3cc8(0x24b),_0x55c685[_0x4e3cc8(0x234)]=_0x4e3cc8(0x251);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0xe69488{static get[_0x2a102c(0x244)](){return[_0x18fbf3];}static get[_0x2a102c(0x23c)](){const _0x2bc52b=_0x2a102c;return _0x2bc52b(0x22b);}static get[_0x2a102c(0x24d)](){return!0x0;}static get[_0x2a102c(0x1fc)](){return!0x0;}[_0x2a102c(0x237)](){const _0x2f2ff3=_0x2a102c;this[_0x2f2ff3(0x262)](this[_0x2f2ff3(0x22c)]()),this[_0x2f2ff3(0x223)]();}static[_0x2a102c(0x256)](_0x1458f0){return function(_0xf6eb6f){const _0x425000=_0x2e08,_0x47278e=new Intl[(_0x425000(0x1f4))](['en'],{'type':_0x425000(0x22e)})['of'](_0xf6eb6f[_0x425000(0x25c)]),_0x295e9e=_0x47278e||_0x425000(0x20c),_0x3a2dbc=[{'id':_0x425000(0x202),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x261)),'type':AIQuickActionType[_0x425000(0x205)],'icon':_0x36da2a},{'id':_0x425000(0x20a),'label':_0x18d411(_0xf6eb6f,_0x425000(0x24e)),'icon':_0x22b6f6,'actions':[{'id':_0x425000(0x25d),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x20e)),'prompt':Jt[_0x425000(0x253)]('%0',_0x295e9e),'type':AIQuickActionType[_0x425000(0x205)]},{'id':_0x425000(0x208),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x236)),'prompt':Vt[_0x425000(0x253)]('%0',_0x295e9e),'type':AIQuickActionType[_0x425000(0x205)]},{'id':_0x425000(0x21e),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x227)),'prompt':Xt[_0x425000(0x253)]('%0',_0x295e9e),'type':AIQuickActionType[_0x425000(0x205)]}]},{'id':_0x425000(0x24a),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x25a)),'type':AIQuickActionType[_0x425000(0x1ff)],'icon':_0x1872f2},{'id':_0x425000(0x212),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x1fe)),'type':AIQuickActionType[_0x425000(0x1ff)],'icon':_0x2e7cd3},{'id':_0x425000(0x1f9),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x250)),'type':AIQuickActionType[_0x425000(0x1ff)],'icon':_0x30505a},{'id':_0x425000(0x23f),'label':_0x18d411(_0xf6eb6f,_0x425000(0x25b)),'icon':_0x301669,'actions':[{'id':_0x425000(0x1fa),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x238)),'type':AIQuickActionType[_0x425000(0x1ff)]},{'id':_0x425000(0x203),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x1f6)),'type':AIQuickActionType[_0x425000(0x1ff)]}]},{'id':_0x425000(0x217),'label':_0x18d411(_0xf6eb6f,_0x425000(0x229)),'icon':_0x3e79e9,'actions':[{'id':_0x425000(0x242),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x263)),'type':AIQuickActionType[_0x425000(0x1ff)]},{'id':_0x425000(0x21c),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x266)),'type':AIQuickActionType[_0x425000(0x1ff)]},{'id':_0x425000(0x264),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x226)),'type':AIQuickActionType[_0x425000(0x1ff)]},{'id':_0x425000(0x240),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x218)),'type':AIQuickActionType[_0x425000(0x1ff)]},{'id':_0x425000(0x214),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x210)),'type':AIQuickActionType[_0x425000(0x1ff)]}]},{'id':_0x425000(0x228),'label':_0x18d411(_0xf6eb6f,_0x425000(0x1f2)),'icon':_0x409849,'actions':[{'id':_0x425000(0x23b),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x219)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x23d)}},{'id':_0x425000(0x215),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x260)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x201)}},{'id':_0x425000(0x233),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x257)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x216)}},{'id':_0x425000(0x1ef),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x1fd)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x246)}},{'id':_0x425000(0x206),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x20f)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x20b)}},{'id':_0x425000(0x20d),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x1fb)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x25f)}},{'id':_0x425000(0x1f3),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x24c)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x231)}},{'id':_0x425000(0x23a),'displayedPrompt':_0x18d411(_0xf6eb6f,_0x425000(0x220)),'type':AIQuickActionType[_0x425000(0x1ff)],'actionName':_0x425000(0x228),'args':{'language':_0x425000(0x23e)}}]},{'id':_0x425000(0x239),'label':_0x18d411(_0xf6eb6f,_0x425000(0x1f8)),'icon':_0x3906e9,'actions':[]}];return _0x3a2dbc;}(_0x1458f0);}[_0x2a102c(0x22c)](){const _0x2e5c4d=_0x2a102c,_0x39261f=AIQuickActionsUI[_0x2e5c4d(0x256)](this[_0x2e5c4d(0x24f)][_0x2e5c4d(0x213)]),_0x783e50=(this[_0x2e5c4d(0x24f)][_0x2e5c4d(0x1f5)][_0x2e5c4d(0x245)](_0x2e5c4d(0x22f))||[])[_0x2e5c4d(0x204)](_0x3ffbfe=>({..._0x3ffbfe,'icon':void 0x0}));return _0x39261f[_0x2e5c4d(0x1f1)](_0x44782a=>_0x2e5c4d(0x239)===_0x44782a['id'])[_0x2e5c4d(0x225)][_0x2e5c4d(0x207)](..._0x783e50),_0x39261f;}[_0x2a102c(0x223)](){const _0x193a89=_0x2a102c,_0x59dc54=new _0x348796(this[_0x193a89(0x24f)][_0x193a89(0x213)]);_0x59dc54[_0x193a89(0x255)](),this[_0x193a89(0x209)](_0x59dc54),this[_0x193a89(0x249)](_0x59dc54);}[_0x2a102c(0x209)](_0x201884){const _0x32b8af=_0x2a102c;this[_0x32b8af(0x24f)]['ui'][_0x32b8af(0x21a)][_0x32b8af(0x221)](_0x32b8af(0x259),_0x5ad8aa(this[_0x32b8af(0x24f)],this[_0x32b8af(0x1f0)],{'icon':_0x308a0d,'label':_0x18d411(this[_0x32b8af(0x24f)][_0x32b8af(0x213)],_0x32b8af(0x222))},_0x201884));}[_0x2a102c(0x262)](_0x3f85a4){const _0x1eb4f5=_0x2a102c;this[_0x1eb4f5(0x1f0)]=_0x3f85a4[_0x1eb4f5(0x204)](_0x1ad963=>{const _0x475ca5=_0x1eb4f5;if(_0x475ca5(0x225)in _0x1ad963){const _0x5ed471=_0x1ad963;return{..._0x5ed471,'actions':_0x5ed471[_0x475ca5(0x225)][_0x475ca5(0x204)](_0x8d037d=>{const {actions:_0x549018,..._0x2f1b5b}=_0x5ed471;return{..._0x8d037d,'parent':_0x2f1b5b};})[_0x475ca5(0x235)](_0x481b9e=>this[_0x475ca5(0x265)](_0x481b9e))};}return _0x1ad963;})[_0x1eb4f5(0x235)](_0xbc2441=>_0x1eb4f5(0x225)in _0xbc2441?_0xbc2441[_0x1eb4f5(0x225)][_0x1eb4f5(0x21d)]>0x0:this[_0x1eb4f5(0x265)](_0xbc2441));}[_0x2a102c(0x265)](_0x19a8a3){const _0x1bf1db=_0x2a102c,_0xd67e12=this[_0x1bf1db(0x24f)][_0x1bf1db(0x1f5)][_0x1bf1db(0x245)](_0x1bf1db(0x200))||[];return this[_0x1bf1db(0x24f)][_0x1bf1db(0x258)][_0x1bf1db(0x241)](AIQuickActionTypeToPluginName[_0x19a8a3[_0x1bf1db(0x254)]])&&!_0xd67e12[_0x1bf1db(0x247)](_0x19a8a3['id']);}[_0x2a102c(0x249)](_0x4b65f9){const _0x22fb8b=_0x2a102c;this[_0x22fb8b(0x1f0)][_0x22fb8b(0x243)](_0x57300b=>{const _0x26f87e=_0x22fb8b;if(_0x26f87e(0x225)in _0x57300b){const _0x21a676=_0x5ad8aa(this[_0x26f87e(0x24f)],_0x57300b[_0x26f87e(0x225)],_0x57300b,_0x4b65f9);this[_0x26f87e(0x24f)]['ui'][_0x26f87e(0x21a)][_0x26f87e(0x221)](_0x57300b['id'],_0x21a676),_0x57300b[_0x26f87e(0x225)][_0x26f87e(0x243)](_0x22ffaf=>{const _0x3522c5=_0x26f87e,_0x131c98=_0x5378bb(this[_0x3522c5(0x24f)],_0x22ffaf);this[_0x3522c5(0x24f)]['ui'][_0x3522c5(0x21a)][_0x3522c5(0x221)](_0x22ffaf['id'],_0x131c98);});}else{const _0x399887=_0x5378bb(this[_0x26f87e(0x24f)],_0x57300b);this[_0x26f87e(0x24f)]['ui'][_0x26f87e(0x21a)][_0x26f87e(0x221)](_0x57300b['id'],_0x399887);}});}}
|
|
23
|
+
const _0x4964da=_0x56da;(function(_0x3c487d,_0x2f581f){const _0x55e6b9=_0x56da,_0xaeaac2=_0x3c487d();while(!![]){try{const _0x37f62a=-parseInt(_0x55e6b9(0x13b))/0x1+-parseInt(_0x55e6b9(0x161))/0x2*(parseInt(_0x55e6b9(0x117))/0x3)+-parseInt(_0x55e6b9(0x16e))/0x4+parseInt(_0x55e6b9(0x18d))/0x5*(-parseInt(_0x55e6b9(0x15f))/0x6)+parseInt(_0x55e6b9(0x18c))/0x7*(parseInt(_0x55e6b9(0x17b))/0x8)+parseInt(_0x55e6b9(0x132))/0x9*(-parseInt(_0x55e6b9(0x171))/0xa)+parseInt(_0x55e6b9(0x12f))/0xb*(parseInt(_0x55e6b9(0x121))/0xc);if(_0x37f62a===_0x2f581f)break;else _0xaeaac2['push'](_0xaeaac2['shift']());}catch(_0x5eb508){_0xaeaac2['push'](_0xaeaac2['shift']());}}}(_0x36de,0x1ecf3));import{IconAIAdjustLength as _0x1ebff2,IconAIAskAI as _0xdc5b1b,IconAIChangeTone as _0x1c74dc,IconAIChatCommands as _0xb2db7b,IconAIContinueWriting as _0x5d552c,IconAIGrammarCheck as _0x106408,IconAIImproveWriting as _0x46ab7f,IconAIOther as _0x22dff7,IconAIQuickActions as _0x4e9c32,IconAITranslate as _0x2a223d}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x57fe2d}from'ckeditor5/src/core.js';import{getTranslation as _0x19898a}from'./utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x35b336}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x42699a}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x534220,BalloonToolbar as _0x4f5c5e}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x56da(_0x54abd8,_0x43ec7a){const _0x36de30=_0x36de();return _0x56da=function(_0x56da64,_0x140cfe){_0x56da64=_0x56da64-0x114;let _0xcc19bb=_0x36de30[_0x56da64];return _0xcc19bb;},_0x56da(_0x54abd8,_0x43ec7a);}function _0x36de(){const _0x573a41=['make-tone-friendly','148452fqOdQo','translate-to-english','type','other','AI_QUICK_ACTIONS_MORE_DIRECT','translate-to-french','includes','french','isPremiumPlugin','explain','_prepareQuickActionsDefinition','translate','componentFactory','translate-to-japanese','891GQQklQ','DisplayNames','actions','51777SojBQW','change-tone','language','ai.quickActions.extraCommands','continue','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','japanese','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','aiQuickActions','182242JBzjqM','English','forEach','AI_QUICK_ACTIONS_ASK_AI','adjust-length','improve-writing','make-tone-direct','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','AI_QUICK_ACTIONS_CHAT_COMMANDS','locale','AI_QUICK_ACTIONS_IMPROVE_WRITING','AI_QUICK_ACTIONS_OTHER','config','summarize','has','map','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_MAKE_SHORTER','highlight-key-points','ai.quickActions.removeCommands','AIReviewMode','filter','AI_QUICK_ACTIONS_EXPLAIN','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','AI_QUICK_ACTIONS_MORE_CONFIDENT','pluginName','make-tone-confident','korean','<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>','requires','<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>','translate-to-italian','AIQuickActionsUI','ask-ai','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_MORE_CASUAL','10776XEftxT','AI_QUICK_ACTIONS_MAKE_LONGER','2DaWNQF','AI_QUICK_ACTIONS_ADJUST_LENGTH','plugins','translate-to-portuguese','getDefaultQuickActions','AI_QUICK_ACTIONS_TRANSLATE','AIChat','AIActions','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_HEADING','_getDefaultAndCustomActions','make-longer','chinese','903388pNkqSF','ACTION','english','270pVdqIJ','make-tone-casual','init','find','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','<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>','_initializeQuickActionsDropdown','italian','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','CHAT','8xyGMUu','translate-to-chinese','replace','isOfficialPlugin','chat-commands','attachToDom','uiLanguage','push','_initializeQuickActionsComponentsAndCommands','length','portuguese','_shouldIncludeAction','add','_quickActionsDefinition','AI_QUICK_ACTIONS_CONTINUE_WRITING','translate-to-korean','get','1204490AYcbNe','680xwYAxL','editor','make-shorter','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','720750VxVbLN','AI_QUICK_ACTIONS_SUMMARIZE','REVIEW','russian','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','AI_QUICK_ACTIONS_CHANGE_TONE','make-tone-professional','translate-to-russian','fix-grammar'];_0x36de=function(){return _0x573a41;};return _0x36de();}const Vt=_0x4964da(0x157),Xt=_0x4964da(0x176),Zt=_0x4964da(0x159);export var AIQuickActionType;!function(_0x16682f){const _0xe3cfc6=_0x4964da;_0x16682f[_0xe3cfc6(0x17a)]=_0xe3cfc6(0x17a),_0x16682f[_0xe3cfc6(0x16f)]=_0xe3cfc6(0x16f),_0x16682f[_0xe3cfc6(0x119)]=_0xe3cfc6(0x119);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0xe1145c){const _0x36d9d6=_0x4964da;_0xe1145c[_0x36d9d6(0x17a)]=_0x36d9d6(0x167),_0xe1145c[_0x36d9d6(0x16f)]=_0x36d9d6(0x168),_0xe1145c[_0x36d9d6(0x119)]=_0x36d9d6(0x14f);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x57fe2d{static get[_0x4964da(0x158)](){return[_0x4f5c5e];}static get[_0x4964da(0x154)](){const _0x3e806a=_0x4964da;return _0x3e806a(0x15b);}static get[_0x4964da(0x17e)](){return!0x0;}static get[_0x4964da(0x129)](){return!0x0;}[_0x4964da(0x173)](){const _0x3489a=_0x4964da;this[_0x3489a(0x12b)](this[_0x3489a(0x16b)]()),this[_0x3489a(0x183)]();}static[_0x4964da(0x165)](_0x11412e){return function(_0xff5abc){const _0x468681=_0x56da,_0x5b72f9=new Intl[(_0x468681(0x130))](['en'],{'type':_0x468681(0x134)})['of'](_0xff5abc[_0x468681(0x181)]),_0x234ef9=_0x5b72f9||_0x468681(0x13c),_0x1a59b8=[{'id':_0x468681(0x15c),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x13e)),'type':AIQuickActionType[_0x468681(0x17a)],'icon':_0xdc5b1b},{'id':_0x468681(0x17f),'label':_0x19898a(_0xff5abc,_0x468681(0x143)),'icon':_0xb2db7b,'actions':[{'id':_0x468681(0x12a),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x151)),'prompt':Vt[_0x468681(0x17d)]('%0',_0x234ef9),'type':AIQuickActionType[_0x468681(0x17a)]},{'id':_0x468681(0x148),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x118)),'prompt':Xt[_0x468681(0x17d)]('%0',_0x234ef9),'type':AIQuickActionType[_0x468681(0x17a)]},{'id':_0x468681(0x14d),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x175)),'prompt':Zt[_0x468681(0x17d)]('%0',_0x234ef9),'type':AIQuickActionType[_0x468681(0x17a)]}]},{'id':_0x468681(0x140),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x145)),'type':AIQuickActionType[_0x468681(0x16f)],'icon':_0x46ab7f},{'id':_0x468681(0x136),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x189)),'type':AIQuickActionType[_0x468681(0x16f)],'icon':_0x5d552c},{'id':_0x468681(0x11f),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x139)),'type':AIQuickActionType[_0x468681(0x16f)],'icon':_0x106408},{'id':_0x468681(0x13f),'label':_0x19898a(_0xff5abc,_0x468681(0x162)),'icon':_0x1ebff2,'actions':[{'id':_0x468681(0x18f),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x14c)),'type':AIQuickActionType[_0x468681(0x16f)]},{'id':_0x468681(0x16c),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x160)),'type':AIQuickActionType[_0x468681(0x16f)]}]},{'id':_0x468681(0x133),'label':_0x19898a(_0xff5abc,_0x468681(0x11c)),'icon':_0x1c74dc,'actions':[{'id':_0x468681(0x172),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x15e)),'type':AIQuickActionType[_0x468681(0x16f)]},{'id':_0x468681(0x141),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x125)),'type':AIQuickActionType[_0x468681(0x16f)]},{'id':_0x468681(0x120),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x14b)),'type':AIQuickActionType[_0x468681(0x16f)]},{'id':_0x468681(0x155),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x153)),'type':AIQuickActionType[_0x468681(0x16f)]},{'id':_0x468681(0x11d),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x11b)),'type':AIQuickActionType[_0x468681(0x16f)]}]},{'id':_0x468681(0x12c),'label':_0x19898a(_0xff5abc,_0x468681(0x166)),'icon':_0x2a223d,'actions':[{'id':_0x468681(0x122),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x137)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x170)}},{'id':_0x468681(0x17c),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x115)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x16d)}},{'id':_0x468681(0x126),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x179)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x128)}},{'id':_0x468681(0x12e),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x114)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x138)}},{'id':_0x468681(0x164),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x15d)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x185)}},{'id':_0x468681(0x18a),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x152)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x156)}},{'id':_0x468681(0x15a),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x116)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x178)}},{'id':_0x468681(0x11e),'displayedPrompt':_0x19898a(_0xff5abc,_0x468681(0x142)),'type':AIQuickActionType[_0x468681(0x16f)],'actionName':_0x468681(0x12c),'args':{'language':_0x468681(0x11a)}}]},{'id':_0x468681(0x124),'label':_0x19898a(_0xff5abc,_0x468681(0x146)),'icon':_0x22dff7,'actions':[]}];return _0x1a59b8;}(_0x11412e);}[_0x4964da(0x16b)](){const _0x416693=_0x4964da,_0x373e45=AIQuickActionsUI[_0x416693(0x165)](this[_0x416693(0x18e)][_0x416693(0x144)]),_0x3f0e9f=(this[_0x416693(0x18e)][_0x416693(0x147)][_0x416693(0x18b)](_0x416693(0x135))||[])[_0x416693(0x14a)](_0x2b3da0=>({..._0x2b3da0,'icon':void 0x0}));return _0x373e45[_0x416693(0x174)](_0x321cb3=>_0x416693(0x124)===_0x321cb3['id'])[_0x416693(0x131)][_0x416693(0x182)](..._0x3f0e9f),_0x373e45;}[_0x4964da(0x183)](){const _0x34f9e1=_0x4964da,_0x4a8c44=new _0x534220(this[_0x34f9e1(0x18e)][_0x34f9e1(0x144)]);_0x4a8c44[_0x34f9e1(0x180)](),this[_0x34f9e1(0x177)](_0x4a8c44),this[_0x34f9e1(0x169)](_0x4a8c44);}[_0x4964da(0x177)](_0x421874){const _0x3dc4ff=_0x4964da;this[_0x3dc4ff(0x18e)]['ui'][_0x3dc4ff(0x12d)][_0x3dc4ff(0x187)](_0x3dc4ff(0x13a),_0x35b336(this[_0x3dc4ff(0x18e)],this[_0x3dc4ff(0x188)],{'icon':_0x4e9c32,'label':_0x19898a(this[_0x3dc4ff(0x18e)][_0x3dc4ff(0x144)],_0x3dc4ff(0x16a))},_0x421874));}[_0x4964da(0x12b)](_0x4dd63e){const _0xaab5b8=_0x4964da;this[_0xaab5b8(0x188)]=_0x4dd63e[_0xaab5b8(0x14a)](_0xb1576a=>{const _0x50b270=_0xaab5b8;if(_0x50b270(0x131)in _0xb1576a){const _0x18ffb5=_0xb1576a;return{..._0x18ffb5,'actions':_0x18ffb5[_0x50b270(0x131)][_0x50b270(0x14a)](_0x42ac19=>{const {actions:_0x141b3d,..._0x2f55f7}=_0x18ffb5;return{..._0x42ac19,'parent':_0x2f55f7};})[_0x50b270(0x150)](_0x396df9=>this[_0x50b270(0x186)](_0x396df9))};}return _0xb1576a;})[_0xaab5b8(0x150)](_0x7633f=>_0xaab5b8(0x131)in _0x7633f?_0x7633f[_0xaab5b8(0x131)][_0xaab5b8(0x184)]>0x0:this[_0xaab5b8(0x186)](_0x7633f));}[_0x4964da(0x186)](_0x193d56){const _0x17b0df=_0x4964da,_0x9f1fa5=this[_0x17b0df(0x18e)][_0x17b0df(0x147)][_0x17b0df(0x18b)](_0x17b0df(0x14e))||[];return this[_0x17b0df(0x18e)][_0x17b0df(0x163)][_0x17b0df(0x149)](AIQuickActionTypeToPluginName[_0x193d56[_0x17b0df(0x123)]])&&!_0x9f1fa5[_0x17b0df(0x127)](_0x193d56['id']);}[_0x4964da(0x169)](_0x6eb555){const _0xcca7c5=_0x4964da;this[_0xcca7c5(0x188)][_0xcca7c5(0x13d)](_0x48fb73=>{const _0xb2b7e0=_0xcca7c5;if(_0xb2b7e0(0x131)in _0x48fb73){const _0x2b003a=_0x35b336(this[_0xb2b7e0(0x18e)],_0x48fb73[_0xb2b7e0(0x131)],_0x48fb73,_0x6eb555);this[_0xb2b7e0(0x18e)]['ui'][_0xb2b7e0(0x12d)][_0xb2b7e0(0x187)](_0x48fb73['id'],_0x2b003a),_0x48fb73[_0xb2b7e0(0x131)][_0xb2b7e0(0x13d)](_0x2869f8=>{const _0x5c6072=_0xb2b7e0,_0x3f2fac=_0x42699a(this[_0x5c6072(0x18e)],_0x2869f8);this[_0x5c6072(0x18e)]['ui'][_0x5c6072(0x12d)][_0x5c6072(0x187)](_0x2869f8['id'],_0x3f2fac);});}else{const _0x50fa3d=_0x42699a(this[_0xb2b7e0(0x18e)],_0x48fb73);this[_0xb2b7e0(0x18e)]['ui'][_0xb2b7e0(0x12d)][_0xb2b7e0(0x187)](_0x48fb73['id'],_0x50fa3d);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5af03f,_0x679eae){const _0x151ccc=_0x3843,_0x2d89f0=_0x5af03f();while(!![]){try{const _0x296f0a=-parseInt(_0x151ccc(0x184))/0x1+-parseInt(_0x151ccc(0x18b))/0x2*(parseInt(_0x151ccc(0x185))/0x3)+parseInt(_0x151ccc(0x17e))/0x4*(parseInt(_0x151ccc(0x18d))/0x5)+parseInt(_0x151ccc(0x182))/0x6+-parseInt(_0x151ccc(0x191))/0x7*(-parseInt(_0x151ccc(0x17f))/0x8)+-parseInt(_0x151ccc(0x187))/0x9+parseInt(_0x151ccc(0x192))/0xa;if(_0x296f0a===_0x679eae)break;else _0x2d89f0['push'](_0x2d89f0['shift']());}catch(_0x10ce96){_0x2d89f0['push'](_0x2d89f0['shift']());}}}(_0x3764,0x925a8));import{ButtonView as _0x368413}from'ckeditor5/src/ui.js';function _0x3764(){const _0x3b6174=['7wpatHn','114150yjmPje','aiQuickAction','focus','view','12084gocRED','7455544hBLSmc','execute','menuitem','345648sPWtEo','commands','207133TVgBke','3fdYnIq','locale','2289393PyVein','displayedPrompt','set','icon','115622VyyHSO','editing','195xnTdhr','bindTemplate','parent','extendTemplate'];_0x3764=function(){return _0x3b6174;};return _0x3764();}import{IconAIQuickActions as _0x3a47b5}from'@ckeditor/ckeditor5-icons';function _0x3843(_0x2cc3b9,_0x382466){const _0x376413=_0x3764();return _0x3843=function(_0x3843d8,_0x4fc915){_0x3843d8=_0x3843d8-0x17c;let _0x459bdf=_0x376413[_0x3843d8];return _0x459bdf;},_0x3843(_0x2cc3b9,_0x382466);}export function aiQuickActionsButtonCreator(_0x38811d,_0x1003a2,_0x48c98f=!0x1,_0x5896f8=!0x0){return()=>{const _0x728013=_0x3843,_0x494545=_0x38811d[_0x728013(0x186)],_0x381695=new _0x368413(_0x494545),_0x1627c5=_0x381695[_0x728013(0x18e)];_0x381695[_0x728013(0x190)]({'on':{'mouseenter':_0x1627c5['to'](()=>{const _0x2e885b=_0x728013;_0x381695[_0x2e885b(0x17c)]();})}});const _0x1ef4d2=_0x1003a2[_0x728013(0x18a)]??_0x1003a2[_0x728013(0x18f)]?.[_0x728013(0x18a)];return _0x381695[_0x728013(0x189)]({'label':_0x1003a2[_0x728013(0x188)],'withText':_0x48c98f,'role':_0x728013(0x181),'icon':_0x5896f8?_0x1ef4d2??_0x3a47b5:void 0x0,'tooltip':!_0x48c98f}),_0x381695['on'](_0x728013(0x180),()=>{const _0x95577=_0x728013;_0x38811d[_0x95577(0x18c)][_0x95577(0x17d)][_0x95577(0x17c)](),_0x38811d[_0x95577(0x183)][_0x95577(0x180)](_0x95577(0x193),_0x1003a2);}),_0x381695;};}
|