@ckeditor/ckeditor5-ai 47.0.0-alpha.2 → 47.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +50 -37
- package/dist/index.css +68 -38
- 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 +5 -0
- package/lang/translations/ar.po +171 -171
- package/lang/translations/bg.po +155 -155
- package/lang/translations/bn.po +155 -155
- package/lang/translations/ca.po +155 -155
- package/lang/translations/cs.po +159 -159
- package/lang/translations/da.po +155 -155
- package/lang/translations/de.po +155 -155
- package/lang/translations/el.po +155 -155
- package/lang/translations/es.po +155 -155
- package/lang/translations/et.po +155 -155
- package/lang/translations/fi.po +155 -155
- package/lang/translations/fr.po +155 -155
- package/lang/translations/he.po +155 -155
- package/lang/translations/hi.po +155 -155
- package/lang/translations/hu.po +155 -155
- package/lang/translations/id.po +151 -151
- package/lang/translations/it.po +155 -155
- package/lang/translations/ja.po +151 -151
- package/lang/translations/ko.po +151 -151
- package/lang/translations/lt.po +159 -159
- package/lang/translations/lv.po +159 -159
- package/lang/translations/ms.po +151 -151
- package/lang/translations/nl.po +155 -155
- package/lang/translations/no.po +155 -155
- package/lang/translations/pl.po +159 -159
- package/lang/translations/pt-br.po +155 -155
- package/lang/translations/pt.po +155 -155
- package/lang/translations/ro.po +159 -159
- package/lang/translations/ru.po +159 -159
- package/lang/translations/sk.po +159 -159
- package/lang/translations/sr.po +159 -159
- package/lang/translations/sv.po +155 -155
- package/lang/translations/th.po +151 -151
- package/lang/translations/tr.po +155 -155
- package/lang/translations/uk.po +159 -159
- package/lang/translations/vi.po +151 -151
- package/lang/translations/zh-cn.po +151 -151
- package/lang/translations/zh.po +151 -151
- package/package.json +16 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.d.ts +2 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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.d.ts +2 -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.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -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.d.ts +2 -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/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.d.ts +24 -8
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +12 -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.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +19 -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.d.ts +30 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
- 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.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
- 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.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/index.js +1 -1
- package/theme/aichat/aichatfeed.css +6 -2
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27a2ff=_0x4978;(function(_0x17926b,_0x89a9df){const _0xe5f765=_0x4978,_0x36c840=_0x17926b();while(!![]){try{const _0x4e84bd=parseInt(_0xe5f765(0xe9))/0x1+parseInt(_0xe5f765(0xd7))/0x2+-parseInt(_0xe5f765(0x126))/0x3*(parseInt(_0xe5f765(0x10b))/0x4)+parseInt(_0xe5f765(0xe0))/0x5*(parseInt(_0xe5f765(0xe6))/0x6)+-parseInt(_0xe5f765(0x110))/0x7*(-parseInt(_0xe5f765(0x11a))/0x8)+-parseInt(_0xe5f765(0xcc))/0x9+-parseInt(_0xe5f765(0xdf))/0xa;if(_0x4e84bd===_0x89a9df)break;else _0x36c840['push'](_0x36c840['shift']());}catch(_0x197978){_0x36c840['push'](_0x36c840['shift']());}}}(_0xf52b,0x47ba7));import{IconAIAdjustLength as _0x11c3ee,IconAIAskAI as _0x2193f1,IconAIChangeTone as _0xfbd787,IconAIChatCommands as _0x404256,IconAIContinueWriting as _0x1308ed,IconAIGrammarCheck as _0x3b1220,IconAIImproveWriting as _0x41c20c,IconAIOther as _0x5d00f7,IconAIQuickActions as _0x346ff0,IconAITranslate as _0xc35236}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x515f99}from'ckeditor5/src/core.js';import{getTranslation as _0x1cd71c}from'./utils/common-translations.js';function _0x4978(_0x2565ce,_0x23f0c5){const _0xf52b1a=_0xf52b();return _0x4978=function(_0x49789a,_0x6df769){_0x49789a=_0x49789a-0xca;let _0x4041d7=_0xf52b1a[_0x49789a];return _0x4041d7;},_0x4978(_0x2565ce,_0x23f0c5);}import{aiQuickActionsDropdownCreator as _0x13cf17}from'./ui/aiquickactionsdropdowncreator.js';function _0xf52b(){const _0x1e9492=['french','<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>','AIActions','map','pluginName','explain','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','continue','_quickActionsDefinition','_initializeQuickActionsComponentsAndCommands','config','fix-grammar','adjust-length','translate-to-portuguese','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','language','AI_QUICK_ACTIONS_CONTINUE_WRITING','highlight-key-points','isOfficialPlugin','type','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','ai.quickActions.removeCommands','make-tone-direct','36Soinag','translate-to-italian','uiLanguage','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','REVIEW','35UkansF','forEach','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','chat-commands','AI_QUICK_ACTIONS_CHAT_COMMANDS','AI_QUICK_ACTIONS_OTHER','has','improve-writing','translate-to-french','make-tone-friendly','493160qMwLpk','other','attachToDom','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','translate-to-chinese','get','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','ask-ai','AI_QUICK_ACTIONS_IMPROVE_WRITING','portuguese','init','actions','68295NnvXwT','make-tone-confident','make-shorter','replace','<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>','AI_QUICK_ACTIONS_HEADING','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','add','make-tone-casual','AI_QUICK_ACTIONS_MAKE_LONGER','italian','AI_QUICK_ACTIONS_MAKE_SHORTER','AI_QUICK_ACTIONS_SUMMARIZE','AI_QUICK_ACTIONS_MORE_CONFIDENT','change-tone','AI_QUICK_ACTIONS_ADJUST_LENGTH','translate','chinese','push','aiQuickActions','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_TRANSLATE','make-tone-professional','_getDefaultAndCustomActions','summarize','make-longer','CHAT','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','russian','_initializeQuickActionsDropdown','AI_QUICK_ACTIONS_MORE_DIRECT','translate-to-english','4562685XmReyz','ACTION','translate-to-korean','includes','English','filter','AIQuickActionsUI','japanese','AIReviewMode','AI_QUICK_ACTIONS_MORE_FRIENDLY','requires','827518VBVNXY','DisplayNames','isPremiumPlugin','getDefaultQuickActions','_shouldIncludeAction','translate-to-japanese','AIChat','AI_QUICK_ACTIONS_MORE_CASUAL','5668010EuDOCL','15AQDPuT','translate-to-russian','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','componentFactory','AI_QUICK_ACTIONS_CHANGE_TONE','<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>','597306CjsgXP','english','_prepareQuickActionsDefinition','551813GTTsvP','editor','ai.quickActions.extraCommands','length','korean','find','plugins','AI_QUICK_ACTIONS_EXPLAIN','locale','AI_QUICK_ACTIONS_ASK_AI'];_0xf52b=function(){return _0x1e9492;};return _0xf52b();}import{aiQuickActionsButtonCreator as _0x4339b2}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x38d832,BalloonToolbar as _0x1e4c5b}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';const zt=_0x27a2ff(0x12a),Wt=_0x27a2ff(0xe5),Jt=_0x27a2ff(0xf4);export var AIQuickActionType;!function(_0xcc188d){const _0x13abcd=_0x27a2ff;_0xcc188d[_0x13abcd(0x140)]=_0x13abcd(0x140),_0xcc188d[_0x13abcd(0xcd)]=_0x13abcd(0xcd),_0xcc188d[_0x13abcd(0x10f)]=_0x13abcd(0x10f);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x5d29e9){const _0x2ee733=_0x27a2ff;_0x5d29e9[_0x2ee733(0x140)]=_0x2ee733(0xdd),_0x5d29e9[_0x2ee733(0xcd)]=_0x2ee733(0xf5),_0x5d29e9[_0x2ee733(0x10f)]=_0x2ee733(0xd4);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x515f99{static get[_0x27a2ff(0xd6)](){return[_0x1e4c5b];}static get[_0x27a2ff(0xf7)](){const _0x55aeba=_0x27a2ff;return _0x55aeba(0xd2);}static get[_0x27a2ff(0x106)](){return!0x0;}static get[_0x27a2ff(0xd9)](){return!0x0;}[_0x27a2ff(0x124)](){const _0x281e15=_0x27a2ff;this[_0x281e15(0xe8)](this[_0x281e15(0x13d)]()),this[_0x281e15(0xfc)]();}static[_0x27a2ff(0xda)](_0xc693bf){return function(_0x586b4b){const _0x3e828f=_0x4978,_0x214663=new Intl[(_0x3e828f(0xd8))](['en'],{'type':_0x3e828f(0x103)})['of'](_0x586b4b[_0x3e828f(0x10d)]),_0x470df3=_0x214663||_0x3e828f(0xd0),_0x41ac24=[{'id':_0x3e828f(0x121),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xf2)),'type':AIQuickActionType[_0x3e828f(0x140)],'icon':_0x2193f1},{'id':_0x3e828f(0x113),'label':_0x1cd71c(_0x586b4b,_0x3e828f(0x114)),'icon':_0x404256,'actions':[{'id':_0x3e828f(0xf8),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xf0)),'prompt':zt[_0x3e828f(0x129)]('%0',_0x470df3),'type':AIQuickActionType[_0x3e828f(0x140)]},{'id':_0x3e828f(0x13e),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x132)),'prompt':Wt[_0x3e828f(0x129)]('%0',_0x470df3),'type':AIQuickActionType[_0x3e828f(0x140)]},{'id':_0x3e828f(0x105),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x141)),'prompt':Jt[_0x3e828f(0x129)]('%0',_0x470df3),'type':AIQuickActionType[_0x3e828f(0x140)]}]},{'id':_0x3e828f(0x117),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x122)),'type':AIQuickActionType[_0x3e828f(0xcd)],'icon':_0x41c20c},{'id':_0x3e828f(0xfa),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x104)),'type':AIQuickActionType[_0x3e828f(0xcd)],'icon':_0x1308ed},{'id':_0x3e828f(0xfe),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xe2)),'type':AIQuickActionType[_0x3e828f(0xcd)],'icon':_0x3b1220},{'id':_0x3e828f(0xff),'label':_0x1cd71c(_0x586b4b,_0x3e828f(0x135)),'icon':_0x11c3ee,'actions':[{'id':_0x3e828f(0x128),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x131)),'type':AIQuickActionType[_0x3e828f(0xcd)]},{'id':_0x3e828f(0x13f),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x12f)),'type':AIQuickActionType[_0x3e828f(0xcd)]}]},{'id':_0x3e828f(0x134),'label':_0x1cd71c(_0x586b4b,_0x3e828f(0xe4)),'icon':_0xfbd787,'actions':[{'id':_0x3e828f(0x12e),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xde)),'type':AIQuickActionType[_0x3e828f(0xcd)]},{'id':_0x3e828f(0x10a),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xca)),'type':AIQuickActionType[_0x3e828f(0xcd)]},{'id':_0x3e828f(0x119),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xd5)),'type':AIQuickActionType[_0x3e828f(0xcd)]},{'id':_0x3e828f(0x127),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x133)),'type':AIQuickActionType[_0x3e828f(0xcd)]},{'id':_0x3e828f(0x13c),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x11d)),'type':AIQuickActionType[_0x3e828f(0xcd)]}]},{'id':_0x3e828f(0x136),'label':_0x1cd71c(_0x586b4b,_0x3e828f(0x13b)),'icon':_0xc35236,'actions':[{'id':_0x3e828f(0xcb),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x120)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0xe7)}},{'id':_0x3e828f(0x11e),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x10e)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0x137)}},{'id':_0x3e828f(0x118),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x112)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0xf3)}},{'id':_0x3e828f(0xdc),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x101)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0xd3)}},{'id':_0x3e828f(0x100),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x12c)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0x123)}},{'id':_0x3e828f(0xce),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0xf9)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0xed)}},{'id':_0x3e828f(0x10c),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x108)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0x130)}},{'id':_0x3e828f(0xe1),'displayedPrompt':_0x1cd71c(_0x586b4b,_0x3e828f(0x102)),'type':AIQuickActionType[_0x3e828f(0xcd)],'actionName':_0x3e828f(0x136),'args':{'language':_0x3e828f(0x142)}}]},{'id':_0x3e828f(0x11b),'label':_0x1cd71c(_0x586b4b,_0x3e828f(0x115)),'icon':_0x5d00f7,'actions':[]}];return _0x41ac24;}(_0xc693bf);}[_0x27a2ff(0x13d)](){const _0x3007a4=_0x27a2ff,_0x477eeb=AIQuickActionsUI[_0x3007a4(0xda)](this[_0x3007a4(0xea)][_0x3007a4(0xf1)]),_0x36cd60=(this[_0x3007a4(0xea)][_0x3007a4(0xfd)][_0x3007a4(0x11f)](_0x3007a4(0xeb))||[])[_0x3007a4(0xf6)](_0x42804e=>({..._0x42804e,'icon':void 0x0}));return _0x477eeb[_0x3007a4(0xee)](_0x1645c7=>_0x3007a4(0x11b)===_0x1645c7['id'])[_0x3007a4(0x125)][_0x3007a4(0x138)](..._0x36cd60),_0x477eeb;}[_0x27a2ff(0xfc)](){const _0x5b2f33=_0x27a2ff,_0xbbb63a=new _0x38d832(this[_0x5b2f33(0xea)][_0x5b2f33(0xf1)]);_0xbbb63a[_0x5b2f33(0x11c)](),this[_0x5b2f33(0x143)](_0xbbb63a),this[_0x5b2f33(0x13a)](_0xbbb63a);}[_0x27a2ff(0x143)](_0x4c9f66){const _0x218ab7=_0x27a2ff;this[_0x218ab7(0xea)]['ui'][_0x218ab7(0xe3)][_0x218ab7(0x12d)](_0x218ab7(0x139),_0x13cf17(this[_0x218ab7(0xea)],this[_0x218ab7(0xfb)],{'icon':_0x346ff0,'label':_0x1cd71c(this[_0x218ab7(0xea)][_0x218ab7(0xf1)],_0x218ab7(0x12b))},_0x4c9f66));}[_0x27a2ff(0xe8)](_0x4dd925){const _0xd04ce6=_0x27a2ff;this[_0xd04ce6(0xfb)]=_0x4dd925[_0xd04ce6(0xf6)](_0x1d7a16=>{const _0x9bbd1a=_0xd04ce6;if(_0x9bbd1a(0x125)in _0x1d7a16){const _0x3d9c26=_0x1d7a16;return{..._0x3d9c26,'actions':_0x3d9c26[_0x9bbd1a(0x125)][_0x9bbd1a(0xf6)](_0x5f0e54=>{const {actions:_0x16a34e,..._0x6ce711}=_0x3d9c26;return{..._0x5f0e54,'parent':_0x6ce711};})[_0x9bbd1a(0xd1)](_0x2c7369=>this[_0x9bbd1a(0xdb)](_0x2c7369))};}return _0x1d7a16;})[_0xd04ce6(0xd1)](_0x45a828=>_0xd04ce6(0x125)in _0x45a828?_0x45a828[_0xd04ce6(0x125)][_0xd04ce6(0xec)]>0x0:this[_0xd04ce6(0xdb)](_0x45a828));}[_0x27a2ff(0xdb)](_0x570fb9){const _0x4030d2=_0x27a2ff,_0x1d1be8=this[_0x4030d2(0xea)][_0x4030d2(0xfd)][_0x4030d2(0x11f)](_0x4030d2(0x109))||[];return this[_0x4030d2(0xea)][_0x4030d2(0xef)][_0x4030d2(0x116)](AIQuickActionTypeToPluginName[_0x570fb9[_0x4030d2(0x107)]])&&!_0x1d1be8[_0x4030d2(0xcf)](_0x570fb9['id']);}[_0x27a2ff(0x13a)](_0x196817){const _0x39362a=_0x27a2ff;this[_0x39362a(0xfb)][_0x39362a(0x111)](_0x4f2478=>{const _0x1b5719=_0x39362a;if(_0x1b5719(0x125)in _0x4f2478){const _0x448422=_0x13cf17(this[_0x1b5719(0xea)],_0x4f2478[_0x1b5719(0x125)],_0x4f2478,_0x196817);this[_0x1b5719(0xea)]['ui'][_0x1b5719(0xe3)][_0x1b5719(0x12d)](_0x4f2478['id'],_0x448422),_0x4f2478[_0x1b5719(0x125)][_0x1b5719(0x111)](_0x2e77fc=>{const _0x1fb61a=_0x1b5719,_0x105761=_0x4339b2(this[_0x1fb61a(0xea)],_0x2e77fc);this[_0x1fb61a(0xea)]['ui'][_0x1fb61a(0xe3)][_0x1fb61a(0x12d)](_0x2e77fc['id'],_0x105761);});}else{const _0x1ed1f9=_0x4339b2(this[_0x1b5719(0xea)],_0x4f2478);this[_0x1b5719(0xea)]['ui'][_0x1b5719(0xe3)][_0x1b5719(0x12d)](_0x4f2478['id'],_0x1ed1f9);}});}}
|
|
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);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2bc7ad,_0x2d0798){const _0x5e896a=_0x5b11,_0x3e1074=_0x2bc7ad();while(!![]){try{const _0x2aaa2b=-parseInt(_0x5e896a(0x83))/0x1*(-parseInt(_0x5e896a(0x7f))/0x2)+-parseInt(_0x5e896a(0x8f))/0x3+-parseInt(_0x5e896a(0x82))/0x4*(-parseInt(_0x5e896a(0x8b))/0x5)+parseInt(_0x5e896a(0x87))/0x6*(-parseInt(_0x5e896a(0x86))/0x7)+parseInt(_0x5e896a(0x7d))/0x8+-parseInt(_0x5e896a(0x80))/0x9*(-parseInt(_0x5e896a(0x81))/0xa)+-parseInt(_0x5e896a(0x91))/0xb;if(_0x2aaa2b===_0x2d0798)break;else _0x3e1074['push'](_0x3e1074['shift']());}catch(_0x38a39e){_0x3e1074['push'](_0x3e1074['shift']());}}}(_0x3510,0x68ec7));function _0x5b11(_0x31bb97,_0x3fbf8e){const _0x3510da=_0x3510();return _0x5b11=function(_0x5b114b,_0x2c68f8){_0x5b114b=_0x5b114b-0x7c;let _0x62e86=_0x3510da[_0x5b114b];return _0x62e86;},_0x5b11(_0x31bb97,_0x3fbf8e);}import{ButtonView as _0x2587d1}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x4b8adc}from'@ckeditor/ckeditor5-icons';function _0x3510(){const _0x3ac134=['1602vqWWOf','37680DjjliV','340hZbYto','309195SQajKM','parent','icon','5677LbvBQc','942NfOvbZ','displayedPrompt','aiQuickAction','commands','37435FfgsFj','locale','focus','view','2368419OekXJB','execute','10913958qYEmyI','extendTemplate','editing','set','menuitem','3306048JchQpH','bindTemplate','4QeHsrb'];_0x3510=function(){return _0x3ac134;};return _0x3510();}export function aiQuickActionsButtonCreator(_0x253069,_0x20b4fa,_0x19bbaf=!0x1,_0x4bba78=!0x0){return()=>{const _0x5b1af1=_0x5b11,_0x1b6abe=_0x253069[_0x5b1af1(0x8c)],_0x5c84e8=new _0x2587d1(_0x1b6abe),_0xdc9aa1=_0x5c84e8[_0x5b1af1(0x7e)];_0x5c84e8[_0x5b1af1(0x92)]({'on':{'mouseenter':_0xdc9aa1['to'](()=>{const _0x31e1eb=_0x5b1af1;_0x5c84e8[_0x31e1eb(0x8d)]();})}});const _0x433927=_0x20b4fa[_0x5b1af1(0x85)]??_0x20b4fa[_0x5b1af1(0x84)]?.[_0x5b1af1(0x85)];return _0x5c84e8[_0x5b1af1(0x94)]({'label':_0x20b4fa[_0x5b1af1(0x88)],'withText':_0x19bbaf,'role':_0x5b1af1(0x7c),'icon':_0x4bba78?_0x433927??_0x4b8adc:void 0x0,'tooltip':!_0x19bbaf}),_0x5c84e8['on'](_0x5b1af1(0x90),()=>{const _0x225a47=_0x5b1af1;_0x253069[_0x225a47(0x93)][_0x225a47(0x8e)][_0x225a47(0x8d)](),_0x253069[_0x225a47(0x8a)][_0x225a47(0x90)](_0x225a47(0x89),_0x20b4fa);}),_0x5c84e8;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x363e(){const _0x523049=['extendTemplate','_isMovingToNestedMenu','74932UctLUT','ck-dropdown-menu__nested-menu__panel','bind','contains','_createListItems','260aailSI','_hideNestedPanel','div','locale','delete','_createGroupActionsList','2003457BCgCQv','destroy','mouseleave','ck-ai-quick-actions-group-panel','clear','_setupGroupMenuBehavior','isVisible','4056647YCNiVV','optionsListView','forEach','_openNestedPanels','relatedTarget','ck-rounded-corners','items','menu','ck-ai-quick-actions-group-button','label','content','_createActionButton','menuitem','keystrokes','_bodyCollection','1392612rHgJRC','ck-reset_all','element','ck-ai-quick-actions','add','.ck-ai-quick-actions-group-list','children','actions','get','340gjeknQ','eastSouth','setTemplate','ck-ai-quick-actions-group-list','rtl','focusCycler','pin','1482532cyrCzg','_showNestedPanel','render','isOn','role','2xTMyuy','.ck-ai-quick-actions-group-panel','ArrowLeft','bindTemplate','24oZxnbL','ArrowRight','_createActionGroupButton','7090523kjjONt','set','_focusables','100872BEIiyX','uiLanguageDirection','show','.ck-ai-quick-actions-group-button','focus','ck-dropdown-menu-list','addEventListener','24XVSPUE','icon','focusTracker','detachFromDom','closest','hide','addMany','_hideAllNestedPanels','key'];_0x363e=function(){return _0x523049;};return _0x363e();}const _0x294653=_0x5344;(function(_0x2d9050,_0x41f58c){const _0x2893eb=_0x5344,_0x186e12=_0x2d9050();while(!![]){try{const _0x5045a1=parseInt(_0x2893eb(0x235))/0x1+parseInt(_0x2893eb(0x23a))/0x2*(-parseInt(_0x2893eb(0x20f))/0x3)+parseInt(_0x2893eb(0x204))/0x4*(-parseInt(_0x2893eb(0x209))/0x5)+parseInt(_0x2893eb(0x225))/0x6+-parseInt(_0x2893eb(0x216))/0x7*(-parseInt(_0x2893eb(0x1f9))/0x8)+-parseInt(_0x2893eb(0x244))/0x9*(-parseInt(_0x2893eb(0x22e))/0xa)+parseInt(_0x2893eb(0x241))/0xb*(-parseInt(_0x2893eb(0x23e))/0xc);if(_0x5045a1===_0x41f58c)break;else _0x186e12['push'](_0x186e12['shift']());}catch(_0x1e62f0){_0x186e12['push'](_0x186e12['shift']());}}}(_0x363e,0xdc7ec));import{View as _0x17d47a,ListItemView as _0x88772f,ListView as _0x3d518c,BalloonPanelView as _0x17c74e,DropdownMenuPanelPositioningFunctions as _0x740a36,DropdownMenuButtonView as _0x263d19,ViewCollection as _0x41dc7d,FocusCycler as _0x445323}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x3629ab}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x54cc19,KeystrokeHandler as _0x2cc915}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x5ec9fc}from'./aiquickactionsbuttoncreator.js';const qs=_0x294653(0x21d),ys=_0x294653(0x222);function _0x5344(_0x3efda6,_0x586721){const _0x363e2b=_0x363e();return _0x5344=function(_0x534472,_0x68a6e4){_0x534472=_0x534472-0x1f3;let _0x4c1f4c=_0x363e2b[_0x534472];return _0x4c1f4c;},_0x5344(_0x3efda6,_0x586721);}export class AIQuickActionsDropdownContentView extends _0x17d47a{[_0x294653(0x224)];[_0x294653(0x217)];[_0x294653(0x1fb)];[_0x294653(0x223)];[_0x294653(0x243)];[_0x294653(0x233)];[_0x294653(0x219)]=new Set();constructor(_0x541afc,_0x1c5d5f,_0x3b94cf,_0x326769){const _0x3862f8=_0x294653,_0x5c84a1=_0x541afc[_0x3862f8(0x20c)];super(_0x5c84a1),this[_0x3862f8(0x224)]=_0x326769;const _0x4f7cb9=this[_0x3862f8(0x208)](_0x541afc,_0x1c5d5f,_0x3b94cf);this[_0x3862f8(0x217)]=new _0x3d518c(_0x5c84a1),this[_0x3862f8(0x217)][_0x3862f8(0x239)]=qs,this[_0x3862f8(0x217)][_0x3862f8(0x21c)][_0x3862f8(0x1ff)](_0x4f7cb9),this[_0x3862f8(0x1fb)]=new _0x54cc19(),this[_0x3862f8(0x223)]=new _0x2cc915(),this[_0x3862f8(0x243)]=_0x4f7cb9,this[_0x3862f8(0x233)]=new _0x445323({'focusables':this[_0x3862f8(0x243)],'focusTracker':this[_0x3862f8(0x1fb)],'keystrokeHandler':this[_0x3862f8(0x223)]}),this[_0x3862f8(0x230)]({'tag':_0x3862f8(0x20b),'attributes':{'class':['ck',_0x3862f8(0x226),_0x3862f8(0x228),_0x3862f8(0x21b)],'dir':_0x5c84a1[_0x3862f8(0x1f3)]},'children':[this[_0x3862f8(0x217)]]});}[_0x294653(0x208)](_0x690111,_0x57b661,_0x5594e5){const _0x15ed8c=_0x294653,_0x2b1b36=new _0x41dc7d();return _0x57b661[_0x15ed8c(0x218)](_0x1ae260=>{const _0x4bc253=_0x15ed8c;_0x4bc253(0x22c)in _0x1ae260?_0x2b1b36[_0x4bc253(0x229)](this[_0x4bc253(0x240)](_0x690111,_0x1ae260,_0x5594e5)):_0x2b1b36[_0x4bc253(0x229)](this[_0x4bc253(0x221)](_0x690111,_0x1ae260));}),_0x2b1b36;}[_0x294653(0x221)](_0x34cd10,_0x518bff){const _0x1dbe6a=_0x294653,_0x56c174=new _0x88772f(this[_0x1dbe6a(0x20c)]),_0x29bb07=_0x5ec9fc(_0x34cd10,_0x518bff,!0x0)();return _0x56c174[_0x1dbe6a(0x22b)][_0x1dbe6a(0x229)](_0x29bb07),_0x56c174;}[_0x294653(0x240)](_0x5992b2,_0x1b53a8,_0x43503b){const _0x103e30=_0x294653,_0x3a63ad=new _0x88772f(this[_0x103e30(0x20c)]),_0xf6343a=new _0x263d19(this[_0x103e30(0x20c)]),_0x2b586e=_0xf6343a[_0x103e30(0x23d)],_0x3811fc=_0x103e30(0x232)===_0x43503b[_0x103e30(0x20c)][_0x103e30(0x1f3)]?_0x103e30(0x23f):_0x103e30(0x23c),_0x229a6f=this[_0x103e30(0x20e)](_0x5992b2,_0x1b53a8[_0x103e30(0x22c)],_0x43503b);_0xf6343a[_0x103e30(0x242)]({'label':_0x1b53a8[_0x103e30(0x21f)],'withText':!0x0,'role':ys,'icon':_0x1b53a8[_0x103e30(0x1fa)]??_0x3629ab}),_0xf6343a[_0x103e30(0x202)]({'on':{'mouseenter':_0x2b586e['to'](()=>{const _0x5e4d98=_0x103e30;_0xf6343a[_0x5e4d98(0x1f6)]();})}});const _0x599ac2=new _0x17c74e(this[_0x103e30(0x20c)]);return _0x599ac2[_0x103e30(0x202)]({'attributes':{'class':['ck',_0x103e30(0x226),_0x103e30(0x212),_0x103e30(0x205)]},'on':{'keydown':_0x2b586e['to'](_0x8cd5bc=>{const _0x539e32=_0x103e30;_0x8cd5bc[_0x539e32(0x201)]==_0x3811fc&&(_0xf6343a[_0x539e32(0x1f6)](),this[_0x539e32(0x20a)](_0x599ac2));})}}),_0xf6343a[_0x103e30(0x206)](_0x103e30(0x238))['to'](_0x599ac2,_0x103e30(0x215)),this[_0x103e30(0x224)][_0x103e30(0x229)](_0x599ac2),_0x599ac2[_0x103e30(0x220)][_0x103e30(0x229)](_0x229a6f),this[_0x103e30(0x214)](_0xf6343a,_0x599ac2),_0x3a63ad[_0x103e30(0x22b)][_0x103e30(0x229)](_0xf6343a),_0x3a63ad;}[_0x294653(0x20e)](_0x59d2bb,_0x157617,_0x406d4c){const _0x113f88=_0x294653,_0xa6dd7a=new _0x3d518c(this[_0x113f88(0x20c)]);return _0xa6dd7a[_0x113f88(0x202)]({'attributes':{'class':['ck',_0x113f88(0x226),_0x113f88(0x231),_0x113f88(0x1f7)]}}),_0x157617[_0x113f88(0x218)](_0x3b5b7c=>{const _0x5c5376=_0x113f88,_0x3c1f2b=new _0x88772f(this[_0x5c5376(0x20c)]),_0xaf5510=_0x5ec9fc(_0x59d2bb,_0x3b5b7c,!0x0,!0x1)();_0x3c1f2b[_0x5c5376(0x22b)][_0x5c5376(0x229)](_0xaf5510),_0x406d4c[_0x5c5376(0x1fb)][_0x5c5376(0x229)](_0xaf5510),_0xa6dd7a[_0x5c5376(0x21c)][_0x5c5376(0x229)](_0x3c1f2b);}),_0xa6dd7a;}[_0x294653(0x214)](_0xe24bc2,_0x4af1ee){const _0x313b6e=_0x294653,_0x2a2771=_0xe24bc2[_0x313b6e(0x23d)],_0x4b5599=_0x313b6e(0x232)===_0xe24bc2[_0x313b6e(0x20c)][_0x313b6e(0x1f3)]?_0x313b6e(0x23c):_0x313b6e(0x23f);_0xe24bc2[_0x313b6e(0x202)]({'attributes':{'class':[_0x313b6e(0x21e)]},'on':{'mouseenter':_0x2a2771['to'](()=>{const _0x5e97df=_0x313b6e;this[_0x5e97df(0x236)](_0x4af1ee,_0xe24bc2);}),'mouseleave':_0x2a2771['to'](_0x122b14=>{const _0x1ee7fe=_0x313b6e,_0x18af3c=_0x122b14[_0x1ee7fe(0x21a)];this[_0x1ee7fe(0x203)](_0x18af3c,_0x4af1ee)||this[_0x1ee7fe(0x20a)](_0x4af1ee);}),'keydown':_0x2a2771['to'](_0x5169dd=>{const _0x1f85ed=_0x313b6e;_0x5169dd[_0x1f85ed(0x201)]==_0x4b5599&&(this[_0x1f85ed(0x236)](_0x4af1ee,_0xe24bc2),_0x4af1ee[_0x1f85ed(0x220)][_0x1f85ed(0x22d)](0x0)[_0x1f85ed(0x1f6)]());})}}),_0x4af1ee['on'](_0x313b6e(0x237),()=>{const _0x5b2e51=_0x313b6e;_0x4af1ee[_0x5b2e51(0x227)]?.[_0x5b2e51(0x1f8)](_0x5b2e51(0x211),_0x223a8e=>{const _0x590d2b=_0x5b2e51,_0x5ef00f=_0x223a8e[_0x590d2b(0x21a)];_0xe24bc2[_0x590d2b(0x227)]?.[_0x590d2b(0x207)](_0x5ef00f)||this[_0x590d2b(0x203)](_0x5ef00f,_0x4af1ee)||this[_0x590d2b(0x20a)](_0x4af1ee);});});}[_0x294653(0x236)](_0x57e059,_0x18a933){const _0x386d3d=_0x294653;this[_0x386d3d(0x219)][_0x386d3d(0x218)](_0x5146b4=>{const _0x109c00=_0x386d3d;_0x5146b4!==_0x57e059&&_0x5146b4[_0x109c00(0x215)]&&_0x5146b4[_0x109c00(0x1fe)]();}),_0x57e059[_0x386d3d(0x1f4)](),_0x57e059[_0x386d3d(0x234)]({'positions':[_0x740a36[_0x386d3d(0x22f)]],'target':_0x18a933[_0x386d3d(0x227)],'fitInViewport':!0x0}),this[_0x386d3d(0x219)][_0x386d3d(0x229)](_0x57e059);}[_0x294653(0x20a)](_0x509f11){const _0x541b03=_0x294653;_0x509f11[_0x541b03(0x1fe)](),this[_0x541b03(0x219)][_0x541b03(0x20d)](_0x509f11);}[_0x294653(0x200)](){const _0x210c17=_0x294653;this[_0x210c17(0x219)][_0x210c17(0x218)](_0x389bc2=>_0x389bc2[_0x210c17(0x1fe)]()),this[_0x210c17(0x219)][_0x210c17(0x213)]();}[_0x294653(0x203)](_0x2c2689,_0x291016){const _0x17e805=_0x294653;if(!_0x2c2689)return!0x1;if(_0x291016[_0x17e805(0x227)]?.[_0x17e805(0x207)](_0x2c2689))return!0x0;const _0x40142e=_0x2c2689;return _0x40142e[_0x17e805(0x1fd)]&&(null!==_0x40142e[_0x17e805(0x1fd)](_0x17e805(0x23b))||null!==_0x40142e[_0x17e805(0x1fd)](_0x17e805(0x22a))||null!==_0x40142e[_0x17e805(0x1fd)](_0x17e805(0x1f5)));}[_0x294653(0x210)](){const _0x471b88=_0x294653;this[_0x471b88(0x200)](),this[_0x471b88(0x224)][_0x471b88(0x1fc)](),super[_0x471b88(0x210)]();}[_0x294653(0x1f6)](){const _0x2e52c9=_0x294653;this[_0x2e52c9(0x217)][_0x2e52c9(0x1f6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x38d68b,_0x1a8ddc){const _0x3a9097=_0x7911,_0xf1919f=_0x38d68b();while(!![]){try{const _0x1d47af=-parseInt(_0x3a9097(0x154))/0x1*(parseInt(_0x3a9097(0x14f))/0x2)+parseInt(_0x3a9097(0x15b))/0x3*(parseInt(_0x3a9097(0x15f))/0x4)+-parseInt(_0x3a9097(0x15d))/0x5+parseInt(_0x3a9097(0x153))/0x6+-parseInt(_0x3a9097(0x158))/0x7+-parseInt(_0x3a9097(0x14d))/0x8+parseInt(_0x3a9097(0x150))/0x9*(parseInt(_0x3a9097(0x159))/0xa);if(_0x1d47af===_0x1a8ddc)break;else _0xf1919f['push'](_0xf1919f['shift']());}catch(_0x32b498){_0xf1919f['push'](_0xf1919f['shift']());}}}(_0x11d2,0xa3bad));import{createDropdown as _0x2a302d}from'ckeditor5/src/ui.js';function _0x11d2(){const _0x8cdbd2=['label','5105786XYpGzC','710OsERqo','buttonView','141QhJqvD','add','1455355gmpHMm','ck-ai-quick-actions-dropdown','25820cbVYCJ','8448208BlOXES','locale','264926FvCYrH','321705OPGnth','children','panelView','1819446VMtIzu','3orpIMR','icon','set'];_0x11d2=function(){return _0x8cdbd2;};return _0x11d2();}import{IconAIQuickActions as _0x5e8184}from'@ckeditor/ckeditor5-icons';function _0x7911(_0x6a4e31,_0x8e0784){const _0x11d2f4=_0x11d2();return _0x7911=function(_0x7911f8,_0x333d66){_0x7911f8=_0x7911f8-0x14d;let _0x412996=_0x11d2f4[_0x7911f8];return _0x412996;},_0x7911(_0x6a4e31,_0x8e0784);}import{AIQuickActionsDropdownContentView as _0x50a953}from'./aiquickactionsdropdowncontentview.js';export function aiQuickActionsDropdownCreator(_0xbb065f,_0x7a1e5c,_0x5dcaac,_0x4a8356){return()=>{const _0x38ed16=_0x7911,_0x470b6e=_0xbb065f[_0x38ed16(0x14e)],_0x1c5e21=_0x2a302d(_0x470b6e);_0x1c5e21[_0x38ed16(0x15a)][_0x38ed16(0x156)]({'icon':_0x5dcaac[_0x38ed16(0x155)]??_0x5e8184,'label':_0x5dcaac[_0x38ed16(0x157)],'tooltip':!0x0}),_0x1c5e21[_0x38ed16(0x156)]({'class':_0x38ed16(0x15e)});const _0x37908b=new _0x50a953(_0xbb065f,_0x7a1e5c,_0x1c5e21,_0x4a8356);return _0x1c5e21[_0x38ed16(0x152)][_0x38ed16(0x151)][_0x38ed16(0x15c)](_0x37908b),_0x1c5e21;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xff94a2,_0x1d22c2,_0x1bb1dd){const t=_0xff94a2['t'];switch(_0x1d22c2){case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x1bb1dd);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});default:return _0x1d22c2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xbd24(_0x580ef7,_0x37357c){const _0x54be9e=_0x54be();return _0xbd24=function(_0xbd2419,_0x249ca6){_0xbd2419=_0xbd2419-0x1c5;let _0x22a069=_0x54be9e[_0xbd2419];return _0x22a069;},_0xbd24(_0x580ef7,_0x37357c);}const _0x166a18=_0xbd24;(function(_0x2292e3,_0x3b7680){const _0x5d35d3=_0xbd24,_0xe56587=_0x2292e3();while(!![]){try{const _0x1eb135=parseInt(_0x5d35d3(0x1ec))/0x1*(-parseInt(_0x5d35d3(0x1e5))/0x2)+-parseInt(_0x5d35d3(0x1cb))/0x3+-parseInt(_0x5d35d3(0x1cd))/0x4+-parseInt(_0x5d35d3(0x1f1))/0x5+-parseInt(_0x5d35d3(0x1e1))/0x6*(-parseInt(_0x5d35d3(0x1fa))/0x7)+-parseInt(_0x5d35d3(0x1f3))/0x8*(parseInt(_0x5d35d3(0x1fb))/0x9)+-parseInt(_0x5d35d3(0x1e7))/0xa*(-parseInt(_0x5d35d3(0x1e4))/0xb);if(_0x1eb135===_0x3b7680)break;else _0xe56587['push'](_0xe56587['shift']());}catch(_0x4805f3){_0xe56587['push'](_0xe56587['shift']());}}}(_0x54be,0xdf4e7));export const AI_REVIEW_CHECKS=[{'id':_0x166a18(0x1ff),'title':_0x166a18(0x1d7),'description':_0x166a18(0x1fc),'isParameterized':!0x0},{'id':_0x166a18(0x1ca),'title':_0x166a18(0x1da),'description':_0x166a18(0x1c6),'isParameterized':!0x1},{'id':_0x166a18(0x204),'title':_0x166a18(0x1ce),'description':_0x166a18(0x1f8),'isParameterized':!0x1},{'id':_0x166a18(0x1d0),'title':_0x166a18(0x1d6),'description':_0x166a18(0x1d1),'isParameterized':!0x1},{'id':_0x166a18(0x1f0),'title':_0x166a18(0x1fd),'description':_0x166a18(0x1e8),'isParameterized':!0x0,'options':[{'formType':_0x166a18(0x1f5),'label':_0x166a18(0x1fd),'default':_0x166a18(0x1d9),'data':[{'label':_0x166a18(0x1c5),'id':_0x166a18(0x1d9)},{'label':_0x166a18(0x1d5),'id':_0x166a18(0x1eb)}]}]},{'id':_0x166a18(0x1f9),'title':_0x166a18(0x1fe),'description':_0x166a18(0x1e9),'isParameterized':!0x0,'options':[{'formType':_0x166a18(0x1f5),'label':_0x166a18(0x1fe),'default':_0x166a18(0x1f6),'data':[{'label':_0x166a18(0x200),'id':_0x166a18(0x1f6)},{'label':_0x166a18(0x1f4),'id':_0x166a18(0x1e0)},{'label':_0x166a18(0x1de),'id':_0x166a18(0x208)},{'label':_0x166a18(0x1c8),'id':_0x166a18(0x1dc)},{'label':_0x166a18(0x1f7),'id':_0x166a18(0x202)}]}]},{'id':_0x166a18(0x1ed),'title':_0x166a18(0x1ea),'description':_0x166a18(0x1d3),'isParameterized':!0x0,'useArgs':!0x0,'options':[{'formType':_0x166a18(0x1f5),'label':_0x166a18(0x1e3),'argsKey':_0x166a18(0x1dd),'data':[{'label':_0x166a18(0x1cf),'id':_0x166a18(0x1db)},{'label':_0x166a18(0x1cc),'id':_0x166a18(0x1df)},{'label':_0x166a18(0x1ef),'id':_0x166a18(0x206)},{'label':_0x166a18(0x1d8),'id':_0x166a18(0x205)},{'label':_0x166a18(0x1ee),'id':_0x166a18(0x209)},{'label':_0x166a18(0x1d4),'id':_0x166a18(0x207)},{'label':_0x166a18(0x1e2),'id':_0x166a18(0x1e6)},{'label':_0x166a18(0x201),'id':_0x166a18(0x1f2)},{'label':_0x166a18(0x1c9),'id':_0x166a18(0x1d2)},{'label':_0x166a18(0x1c7),'id':_0x166a18(0x203)}]}]}];function _0x54be(){const _0x25c512=['1220HlcmAd','Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','Translate','shorter','998DPBwzt','translate','Chinese\x20(Simplified)','French','make','6599540zYONyO','portuguese','8UTrWPK','Direct','dropdown','casual','Professional','Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','make-tone','252JQZnVk','7746309HattPV','Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','Adjust\x20length','Adjust\x20tone\x20and\x20style','custom','Casual','Portuguese','professional','italian','clarity','german','french','japanese','friendly','chinese','Longer','Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','Italian','Confident','Korean','correctness','3701958tPsefd','Spanish','5457040DSKfnj','Clarity','English','readability','Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','korean','Translate\x20the\x20text\x20into\x20another\x20language.','Japanese','Shorter','Readability','Custom\x20command','German','longer','Correctness','english','confident','language','Friendly','spanish','direct','244074dkaWzt','Russian','Select\x20language','441419uYUNoP','1336hqcajN','russian'];_0x54be=function(){return _0x25c512;};return _0x54be();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x13c107=_0x52ae;(function(_0x283546,_0x5ad49c){var _0x8346ae=_0x52ae,_0x3e3f6b=_0x283546();while(!![]){try{var _0x5d1c23=parseInt(_0x8346ae(0x1dd))/0x1*(parseInt(_0x8346ae(0x1e4))/0x2)+parseInt(_0x8346ae(0x1e1))/0x3+parseInt(_0x8346ae(0x1d7))/0x4*(-parseInt(_0x8346ae(0x1d9))/0x5)+-parseInt(_0x8346ae(0x1da))/0x6+-parseInt(_0x8346ae(0x1de))/0x7*(parseInt(_0x8346ae(0x1df))/0x8)+parseInt(_0x8346ae(0x1db))/0x9*(parseInt(_0x8346ae(0x1dc))/0xa)+-parseInt(_0x8346ae(0x1e3))/0xb*(-parseInt(_0x8346ae(0x1e5))/0xc);if(_0x5d1c23===_0x5ad49c)break;else _0x3e3f6b['push'](_0x3e3f6b['shift']());}catch(_0x41a50c){_0x3e3f6b['push'](_0x3e3f6b['shift']());}}}(_0x5960,0xdb674));import{ContextPlugin as _0x312ebd}from'ckeditor5/src/core.js';import{AIReviewModeController as _0x5dbacf}from'./aireviewmodecontroller.js';import{AIReviewModeUI as _0x42f25f}from'./aireviewmodeui.js';import{AIReviewModeEditing as _0x30f3f8}from'./aireviewmodeediting.js';export class AIReviewMode extends _0x312ebd{static get[_0x13c107(0x1d8)](){return[_0x5dbacf,_0x42f25f,_0x30f3f8];}static get[_0x13c107(0x1e0)](){var _0x4757ec=_0x13c107;return _0x4757ec(0x1d6);}static get[_0x13c107(0x1e2)](){return!0x0;}static get[_0x13c107(0x1e6)](){return!0x0;}}function _0x52ae(_0x44e5ac,_0x1e6549){var _0x59602e=_0x5960();return _0x52ae=function(_0x52aec4,_0x2fd8a3){_0x52aec4=_0x52aec4-0x1d6;var _0x1ba3b6=_0x59602e[_0x52aec4];return _0x1ba3b6;},_0x52ae(_0x44e5ac,_0x1e6549);}function _0x5960(){var _0x3dc446=['1264VuLdiZ','pluginName','4161678IhCULe','isOfficialPlugin','484Wpczhd','856306qtPXbo','220152UpPZAc','isPremiumPlugin','AIReviewMode','268DaXUYL','requires','21445YPupXC','6289530xNEuxz','6892929uhurgv','10sXvDoZ','1nSDiAD','51135KEsESK'];_0x5960=function(){return _0x3dc446;};return _0x5960();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e2f17=_0x2192;(function(_0x3cf390,_0x1fcce4){const _0x1cd83a=_0x2192,_0x3f22fc=_0x3cf390();while(!![]){try{const _0xdef346=-parseInt(_0x1cd83a(0x1f8))/0x1*(parseInt(_0x1cd83a(0x1aa))/0x2)+parseInt(_0x1cd83a(0x1d5))/0x3*(parseInt(_0x1cd83a(0x1c5))/0x4)+parseInt(_0x1cd83a(0x1f7))/0x5+-parseInt(_0x1cd83a(0x1ba))/0x6*(parseInt(_0x1cd83a(0x1c8))/0x7)+parseInt(_0x1cd83a(0x225))/0x8*(-parseInt(_0x1cd83a(0x1fe))/0x9)+parseInt(_0x1cd83a(0x1b0))/0xa*(parseInt(_0x1cd83a(0x1fb))/0xb)+-parseInt(_0x1cd83a(0x1d1))/0xc;if(_0xdef346===_0x1fcce4)break;else _0x3f22fc['push'](_0x3f22fc['shift']());}catch(_0x443f27){_0x3f22fc['push'](_0x3f22fc['shift']());}}}(_0x5753,0x6670b));import{ContextPlugin as _0x2e5d57}from'ckeditor5/src/core.js';import{CKEditorError as _0x1017b6,logError as _0x8d58de}from'ckeditor5/src/utils.js';import{AIConnector as _0x4f5e6d}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x4fa5e1}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x5e63e4}from'./model/aireviewsystemcheckrun.js';function _0x2192(_0x4ae4e5,_0x82dac1){const _0x5753e3=_0x5753();return _0x2192=function(_0x219240,_0x1b6f1e){_0x219240=_0x219240-0x1a7;let _0x4251f0=_0x5753e3[_0x219240];return _0x4251f0;},_0x2192(_0x4ae4e5,_0x82dac1);}import{AIReviewCustomCheckRun as _0x4c2259}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x224193}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x3c0d20}from'./aireviewcheckdefinitions.js';function _0x5753(){const _0x366529=['ready','_aiConnector','193730eSVObv','rejectChange','reviewCheckResultRejected','data','_onReviewModeRunLeave','getActiveChanges','dismissChange','_OPTIONS_DATA_','showActionsWhenResultIsReady','ck-ai-review-mode-diff','24KSwcWj','clearAllMarkers','switchToReadOnly','setCheckResultTitle','aireviewmode-no-current-check-run','retryReview','abortReviewStream','replaceAll','locale','result','markChangePositionInEditorContent','4bzGVgn','getCheckById','options','284319VVcQqU','switchToEdit','showCheckRunResults','AI_MODEL_DESCRIPTION_','markAllChangesAsAccepted','message','get','params','pluginName','6359568bmVvRA','aireviewmode-check-run-failed','find','translate','2006877PQdsKM','context','map','label','diffContent','resetActiveStateInResults','setAvailableChecks','title','finishReview','_OPTIONS_LABEL','getReviewCheckList','_aiReviewModeEditing','_aiReviewCheckList','_getTranslationWithDefault','includes','custom','isOfficialPlugin','updateChangeState','restart','reviewCheckResultAdded','processedResultsCount','loading','rejected','AI_REVIEW_CHECK_','model','prompt','markChangeAsRejected','AIReviewModeController','reviewCheckResultAccepted','contentInitial','description','showReviewCheckList','ai-request-aborted','plugins','3704860hHuWvJ','3asUZyE','ai.reviewMode.translations','args','374IIxhyD','_onDiffChange','showGeneralErrorView','2403LPGkha','_TITLE','_translateReviewChecks','applyChange','_isDiffOn','_aiReviewModeUi','_DESCRIPTION','getDocumentData','add','leaveReviewModeResultList','toUpperCase','error-chunk','isCustom','AIConnector','finished','status','getContentElement','toggleDiff','isPremiumPlugin','abort','acceptChange','runReviewCheck','classList','aborted','reviewCheckResultReady','scrollToChangeInEditorContent','addResultChanges','accepted','length','remove','leaveReviewMode','config','forceReadyState','AIReviewModeUI','stopListening','models','_currentReviewCheckRun','error-general','aireviewmode-source-check-not-found','5832AlCpdG','showChunkErrorView','reviewCheckRunUpdated','showCheckRunResult','start','checks','ck-ai-review-mode-highlights','init','_logError','change','isChangeActive','showReviewCompletedView','getAll','listenTo','markChangeAsAccepted','source','contentNew','AIReviewModeEditing','changes','requires','acceptAllChanges','507962nIsBIV','documentData','setItemAsActive','scrollToSuggestionInDocument'];_0x5753=function(){return _0x366529;};return _0x5753();}import{getTranslation as _0x487dca}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x2e5d57{[_0x4e2f17(0x1af)];[_0x4e2f17(0x203)];[_0x4e2f17(0x1e0)];[_0x4e2f17(0x1e1)];[_0x4e2f17(0x222)];[_0x4e2f17(0x202)]=!0x1;static get[_0x4e2f17(0x1a8)](){return[_0x4f5e6d];}static get[_0x4e2f17(0x1d0)](){const _0x1f890e=_0x4e2f17;return _0x1f890e(0x1f0);}static get[_0x4e2f17(0x1e5)](){return!0x0;}static get[_0x4e2f17(0x210)](){return!0x0;}async[_0x4e2f17(0x22c)](){const _0x5a927e=_0x4e2f17;this[_0x5a927e(0x1af)]=this[_0x5a927e(0x1d6)][_0x5a927e(0x1f6)][_0x5a927e(0x1ce)](_0x5a927e(0x20b)),this[_0x5a927e(0x203)]=this[_0x5a927e(0x1d6)][_0x5a927e(0x1f6)][_0x5a927e(0x1ce)](_0x5a927e(0x21f)),this[_0x5a927e(0x1e0)]=this[_0x5a927e(0x1d6)][_0x5a927e(0x1f6)][_0x5a927e(0x1ce)](_0x5a927e(0x236));const _0x118f0f=this[_0x5a927e(0x1d6)][_0x5a927e(0x21d)][_0x5a927e(0x1ce)](_0x5a927e(0x1f9));if(_0x118f0f){for(const _0x18275a of _0x3c0d20)_0x5a927e(0x1d4)===_0x18275a['id']&&(_0x18275a[_0x5a927e(0x1c7)][0x0][_0x5a927e(0x1b3)]=_0x118f0f);}const _0xd7882e=this[_0x5a927e(0x200)](_0x3c0d20);this[_0x5a927e(0x1e1)]=new _0x4fa5e1(_0xd7882e);const _0x56da85=this[_0x5a927e(0x1e1)][_0x5a927e(0x22a)][_0x5a927e(0x1d3)](_0x257bb0=>_0x5a927e(0x1e4)===_0x257bb0['id']);if(_0x56da85){const _0x5b954b=await new _0x224193({'connector':this[_0x5a927e(0x1af)]})[_0x5a927e(0x231)]();_0x56da85[_0x5a927e(0x221)]=_0x5b954b[_0x5a927e(0x1d7)](_0x24a3df=>({..._0x24a3df,'description':this[_0x5a927e(0x1e2)](_0x5a927e(0x1cb)+_0x24a3df['id'][_0x5a927e(0x208)](),_0x24a3df[_0x5a927e(0x1f3)])}));}this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1df),()=>{const _0x36ae3d=_0x5a927e;this[_0x36ae3d(0x203)][_0x36ae3d(0x1db)](this[_0x36ae3d(0x1e1)][_0x36ae3d(0x22a)]);}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x213),async(_0x3eca8b,_0x2d1e2e)=>{const _0x312259=_0x5a927e,_0x56faa7=this[_0x312259(0x1e1)][_0x312259(0x1c6)](_0x2d1e2e['id']);if(_0x56faa7){this[_0x312259(0x1fc)](this[_0x312259(0x202)]),_0x2d1e2e[_0x312259(0x20a)]?this[_0x312259(0x222)]=new _0x4c2259(_0x2d1e2e[_0x312259(0x1fa)][_0x312259(0x1ee)],_0x2d1e2e[_0x312259(0x1fa)][_0x312259(0x1ed)],this[_0x312259(0x1e0)][_0x312259(0x205)](),_0x56faa7,this[_0x312259(0x1af)]):this[_0x312259(0x222)]=new _0x5e63e4(this[_0x312259(0x1e0)][_0x312259(0x205)](),_0x56faa7,this[_0x312259(0x1af)],_0x2d1e2e[_0x312259(0x1cf)],_0x2d1e2e[_0x312259(0x1fa)]),this[_0x312259(0x203)][_0x312259(0x1bd)](this[_0x312259(0x222)][_0x312259(0x1dc)]),this[_0x312259(0x222)]['on'](_0x312259(0x227),(_0x20eab9,_0x258c9a)=>{const _0x17eadf=_0x312259;_0x17eadf(0x1b3)===_0x258c9a[_0x17eadf(0x20d)]||_0x17eadf(0x1ea)===_0x258c9a[_0x17eadf(0x20d)]?(this[_0x17eadf(0x1e0)][_0x17eadf(0x1bc)](),this[_0x17eadf(0x203)][_0x17eadf(0x1ca)](_0x258c9a)):_0x17eadf(0x20c)===_0x258c9a[_0x17eadf(0x20d)]?this[_0x17eadf(0x203)][_0x17eadf(0x230)]():_0x17eadf(0x1ae)===_0x258c9a[_0x17eadf(0x20d)]?this[_0x17eadf(0x203)][_0x17eadf(0x1b8)]():_0x17eadf(0x223)===_0x258c9a[_0x17eadf(0x20d)]?this[_0x17eadf(0x203)][_0x17eadf(0x1fd)]():_0x17eadf(0x209)===_0x258c9a[_0x17eadf(0x20d)]?this[_0x17eadf(0x203)][_0x17eadf(0x226)]():_0x17eadf(0x215)===_0x258c9a[_0x17eadf(0x20d)]&&(this[_0x17eadf(0x222)]&&this[_0x17eadf(0x222)][_0x17eadf(0x1e9)]>0x0?setTimeout(()=>{const _0x5e7f96=_0x17eadf;this[_0x5e7f96(0x222)]?.[_0x5e7f96(0x21e)]();},0x0):this[_0x17eadf(0x1b4)](!0x0));}),this[_0x312259(0x222)]['on'](_0x312259(0x1e8),(_0xf954d3,_0x409795)=>{const _0x5c8058=_0x312259;if(!this[_0x5c8058(0x222)])throw new _0x1017b6(_0x5c8058(0x1be),this);const _0x1fac2c=this[_0x5c8058(0x1e0)][_0x5c8058(0x1d9)](_0x409795[_0x5c8058(0x1c3)][_0x5c8058(0x1f2)],_0x409795[_0x5c8058(0x1c3)][_0x5c8058(0x235)]);_0x409795[_0x5c8058(0x234)][_0x5c8058(0x218)](_0x409795[_0x5c8058(0x1c3)]['id'],_0x1fac2c);}),this[_0x312259(0x222)]['on'](_0x312259(0x216),(_0x376f66,_0x1c1620)=>{const _0x409f78=_0x312259;for(const _0x293c62 of _0x1c1620[_0x409f78(0x1a7)])this[_0x409f78(0x203)][_0x409f78(0x228)](_0x293c62);this[_0x409f78(0x1e0)][_0x409f78(0x1c4)](_0x1c1620[_0x409f78(0x1a7)],_0x1c1620[_0x409f78(0x234)][_0x409f78(0x1ab)]);}),this[_0x312259(0x222)]['on'](_0x312259(0x1f1),(_0x36d263,_0x149b53)=>{const _0x530129=_0x312259;this[_0x530129(0x203)][_0x530129(0x1e6)](_0x149b53[_0x530129(0x22e)]['id'],_0x530129(0x219));}),this[_0x312259(0x222)]['on'](_0x312259(0x1b2),(_0x2bd779,_0x3ad23e)=>{const _0x41ea48=_0x312259;this[_0x41ea48(0x203)][_0x41ea48(0x1e6)](_0x3ad23e[_0x41ea48(0x22e)]['id'],_0x41ea48(0x1eb));});try{await this[_0x312259(0x222)][_0x312259(0x229)]();}catch(_0x2d551a){_0x2d551a instanceof Error&&_0x2d551a[_0x312259(0x1cd)][_0x312259(0x1e3)](_0x312259(0x1f5))||(_0x2d551a instanceof _0x1017b6?this[_0x312259(0x22d)](_0x2d551a):this[_0x312259(0x22d)](new _0x1017b6(_0x312259(0x1d2),this,{'error':_0x2d551a})));}}else this[_0x312259(0x22d)](new _0x1017b6(_0x312259(0x224),this,{'checkId':_0x2d1e2e['id']}));}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x21c),()=>{const _0x1560bd=_0x5a927e;this[_0x1560bd(0x1b4)]();}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x207),()=>{const _0x4e1231=_0x5a927e;this[_0x4e1231(0x1b4)](!0x0);}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1c0),()=>{const _0xf519e3=_0x5a927e;this[_0xf519e3(0x222)]&&this[_0xf519e3(0x222)][_0xf519e3(0x211)]();}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1dd),()=>{const _0x28bc65=_0x5a927e;this[_0x28bc65(0x1b4)](!0x0);}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1a9),()=>{const _0x5be5fd=_0x5a927e;if(!this[_0x5be5fd(0x222)])return;const _0x47a2e5=this[_0x5be5fd(0x222)][_0x5be5fd(0x1b5)]();_0x47a2e5[_0x5be5fd(0x21a)]&&(this[_0x5be5fd(0x1e0)][_0x5be5fd(0x201)](_0x47a2e5[_0x5be5fd(0x1d7)](_0x3b845a=>_0x3b845a['id'])),this[_0x5be5fd(0x222)][_0x5be5fd(0x1cc)]());}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x212),(_0x48d6a7,_0x46d27e)=>{const _0x5c8495=_0x5a927e;this[_0x5c8495(0x222)]&&this[_0x5c8495(0x222)][_0x5c8495(0x22f)](_0x46d27e['id'])&&(this[_0x5c8495(0x1e0)][_0x5c8495(0x201)]([_0x46d27e['id']]),this[_0x5c8495(0x222)][_0x5c8495(0x233)](_0x46d27e['id']));}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1b6),(_0x1ce800,_0x377acb)=>{const _0x3a8974=_0x5a927e;this[_0x3a8974(0x222)]&&this[_0x3a8974(0x222)][_0x3a8974(0x22f)](_0x377acb['id'])&&(this[_0x3a8974(0x1e0)][_0x3a8974(0x1b1)](_0x377acb['id']),this[_0x3a8974(0x222)][_0x3a8974(0x1ef)](_0x377acb['id']));}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x20f),(_0x298d77,_0x3c4aac)=>{const _0x4f099b=_0x5a927e;this[_0x4f099b(0x202)]=_0x3c4aac['on'],this[_0x4f099b(0x1fc)](this[_0x4f099b(0x202)]);}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1bf),async()=>{const _0x2ddfcb=_0x5a927e;this[_0x2ddfcb(0x222)]&&await this[_0x2ddfcb(0x222)][_0x2ddfcb(0x1e7)]();}),this[_0x5a927e(0x232)](this[_0x5a927e(0x203)],_0x5a927e(0x1ad),async(_0xfa6e0d,_0x371a0d)=>{const _0x188a38=_0x5a927e,{source:_0x2b397a}=_0x371a0d;this[_0x188a38(0x203)][_0x188a38(0x1da)](),_0x2b397a[_0x188a38(0x1ac)](),this[_0x188a38(0x1e0)][_0x188a38(0x217)]({'id':_0x371a0d['id']});});}[_0x4e2f17(0x1b4)](_0x59b1f6=!0x1){const _0x3ba647=_0x4e2f17;this[_0x3ba647(0x222)]&&(this[_0x3ba647(0x222)][_0x3ba647(0x211)](),this[_0x3ba647(0x222)][_0x3ba647(0x220)](),this[_0x3ba647(0x222)]=void 0x0),_0x59b1f6&&this[_0x3ba647(0x203)][_0x3ba647(0x1f4)](),this[_0x3ba647(0x1e0)][_0x3ba647(0x1bb)](),this[_0x3ba647(0x1e0)][_0x3ba647(0x1c9)]();const _0x42b0d8=this[_0x3ba647(0x1e0)][_0x3ba647(0x20e)]();_0x42b0d8&&(_0x42b0d8[_0x3ba647(0x214)][_0x3ba647(0x21b)](_0x3ba647(0x1b9)),_0x42b0d8[_0x3ba647(0x214)][_0x3ba647(0x21b)](_0x3ba647(0x22b)));}[_0x4e2f17(0x1fc)](_0x135c50){const _0x48bf49=_0x4e2f17,_0x411849=this[_0x48bf49(0x1e0)][_0x48bf49(0x20e)]();_0x411849&&(_0x411849[_0x48bf49(0x214)][_0x48bf49(0x21b)](_0x48bf49(0x1b9)),_0x411849[_0x48bf49(0x214)][_0x48bf49(0x21b)](_0x48bf49(0x22b)),_0x411849[_0x48bf49(0x214)][_0x48bf49(0x206)](_0x135c50?_0x48bf49(0x1b9):_0x48bf49(0x22b)));}[_0x4e2f17(0x200)](_0x1c29bc){const _0x48f839=_0x4e2f17;return _0x1c29bc[_0x48f839(0x1d7)](_0x11e889=>{const _0x55ed23=_0x48f839,_0x5d4894=_0x55ed23(0x1ec)+_0x11e889['id'][_0x55ed23(0x208)]()[_0x55ed23(0x1c1)]('-','_'),_0x9da89a={..._0x11e889,'title':this[_0x55ed23(0x1e2)](_0x5d4894+_0x55ed23(0x1ff),_0x11e889[_0x55ed23(0x1dc)]),'description':this[_0x55ed23(0x1e2)](_0x5d4894+_0x55ed23(0x204),_0x11e889[_0x55ed23(0x1f3)])};return _0x11e889[_0x55ed23(0x1c7)]&&(_0x9da89a[_0x55ed23(0x1c7)]=_0x11e889[_0x55ed23(0x1c7)][_0x55ed23(0x1d7)](_0x4eb624=>({..._0x4eb624,'label':this[_0x55ed23(0x1e2)](_0x5d4894+_0x55ed23(0x1de),_0x4eb624[_0x55ed23(0x1d8)]||''),'data':_0x4eb624[_0x55ed23(0x1b3)]?_0x4eb624[_0x55ed23(0x1b3)][_0x55ed23(0x1d7)](_0x1442ea=>({..._0x1442ea,'label':this[_0x55ed23(0x1e2)](_0x5d4894+_0x55ed23(0x1b7)+_0x1442ea['id'][_0x55ed23(0x208)](),_0x1442ea[_0x55ed23(0x1d8)])})):void 0x0}))),_0x9da89a;});}[_0x4e2f17(0x1e2)](_0x505353,_0xd69a51){const _0x2c7fad=_0x4e2f17,_0x1f1d41=this[_0x2c7fad(0x1d6)][_0x2c7fad(0x1c2)],_0x4e6afb=_0x487dca(_0x1f1d41,_0x505353);return _0x4e6afb===_0x505353?_0xd69a51:_0x4e6afb;}[_0x4e2f17(0x22d)](_0x5736fa){const _0x198485=_0x4e2f17;_0x8d58de(_0x5736fa[_0x198485(0x1cd)]),this[_0x198485(0x203)][_0x198485(0x1fd)]();}}
|
|
23
|
+
const _0x251b1f=_0x2061;(function(_0x1ed74e,_0x535896){const _0x43392f=_0x2061,_0x3d99ac=_0x1ed74e();while(!![]){try{const _0xd4ceed=-parseInt(_0x43392f(0x166))/0x1+-parseInt(_0x43392f(0xe5))/0x2*(-parseInt(_0x43392f(0x13c))/0x3)+parseInt(_0x43392f(0xee))/0x4*(parseInt(_0x43392f(0xdc))/0x5)+-parseInt(_0x43392f(0x127))/0x6*(parseInt(_0x43392f(0x128))/0x7)+-parseInt(_0x43392f(0x106))/0x8+parseInt(_0x43392f(0x177))/0x9*(-parseInt(_0x43392f(0x130))/0xa)+parseInt(_0x43392f(0x146))/0xb;if(_0xd4ceed===_0x535896)break;else _0x3d99ac['push'](_0x3d99ac['shift']());}catch(_0x46a1bf){_0x3d99ac['push'](_0x3d99ac['shift']());}}}(_0x47a0,0xdcb61));import{ContextPlugin as _0x447ad4}from'ckeditor5/src/core.js';import{CKEditorError as _0x401a4a,logError as _0x313c3d,scrollAncestorsToShowTarget as _0x696a62,scrollViewportToShowTarget as _0x85accb}from'ckeditor5/src/utils.js';import{AIConnector as _0x55d274}from'../aicore/aiconnector.js';function _0x47a0(){const _0x23c5f3=['showGeneralErrorView','showReviewCheckList','getChangeElement','80lsBtJp','params','aireviewmode-check-run-failed','contentInitial','panel','acceptChange','AI_MODEL_DESCRIPTION_','_aiReviewModeEditing','showChangeBalloon','emitter','_aiConnector','pluginName','reviewCheckRunUpdated','reviewCheckResultAccepted','getMarkerElementForChange','switchToReadOnly','diffContent','showCheckRunResults','start','args','contentNew','rejectChange','AIReviewModeController','aireviewmode-source-check-not-found','13705720ShaptN','documentData','loading','closest','isChangeActive','abortReviewStream','abort','content','changeId','plugins','length','_changeActivationSource','isCustom','hideChangeBalloon','.ck-ai-review-mode__check-run-result','reviewCheckResultActivated','label','setActiveStateInResults','showActionsWhenResultIsReady','markAllChangesAsAccepted','AI_REVIEW_CHECK_','activateChange','error-chunk','AIReviewModeEditing','AIConnector','prompt','description','_aiReviewCheckList','finishReview','ai-request-aborted','getReviewCheckList','runReviewCheck','toggleDiff','2176134uFVsIh','28AMwAxX','get','changes','restart','replaceAll','showReviewCompletedView','getActiveChanges','includes','4220mYLWvx','model','getDocumentData','clearAllMarkers','setCheckResultTitle','markChangePositionInEditorContent','showChunkErrorView','_translateReviewChecks','retryReview','message','_currentReviewCheckRun','rejected','1473OxevOB','ai.reviewMode.translations','getContentElement','source','getAll','addResultChanges','_OPTIONS_DATA_','accepted','change','leaveReviewMode','25426082kxlRTV','_aiReviewModeUi','leaveReviewModeResultList','dismissChange','_getTranslationWithDefault','options','reviewCheckResultAdded','aborted','switchToEdit','status','_onReviewModeRunLeave','updateChangeState','_onDiffChange','reviewCheckResultDeactivated','translate','applyChange','remove','classList','listenTo','isPremiumPlugin','showCheckRunResult','add','forceReadyState','title','_isDiffOn','find','reviewCheckResultRejected','domElement','config','deactivateChange','data','ready','568663IwcxMH','result','context','_TITLE','error-general','reviewCheckResultReady','custom','changeMarkerClick','acceptAllChanges','markChangeAsAccepted','aireviewmode-no-current-check-run','_OPTIONS_LABEL','_logError','isOfficialPlugin','setAvailableChecks','getCheckById','toUpperCase','9432TNeSZO','processedResultsCount','stopListening','models','map','447470PkEDAw','checks','showNoChangesView','_DESCRIPTION','resetActiveStateInResults','finished','AIReviewModeUI','ck-ai-review-mode-diff','markChangeAsRejected','3982snoQkt','locale','init','requires','unmodified','ck-ai-review-mode-highlights'];_0x47a0=function(){return _0x23c5f3;};return _0x47a0();}import{AIReviewCheckList as _0x1a1afd}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x5d0a75}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x1eda90}from'./model/aireviewcustomcheckrun.js';function _0x2061(_0x2d2768,_0x4899ab){const _0x47a096=_0x47a0();return _0x2061=function(_0x20616f,_0x4b6000){_0x20616f=_0x20616f-0xda;let _0x25c27=_0x47a096[_0x20616f];return _0x25c27;},_0x2061(_0x2d2768,_0x4899ab);}import{AIReviewModels as _0x5cb2e2}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x54f0fe}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x2eb01}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x447ad4{[_0x251b1f(0xf8)];[_0x251b1f(0x147)];[_0x251b1f(0xf5)];[_0x251b1f(0x121)];[_0x251b1f(0x13a)];[_0x251b1f(0x15e)]=!0x1;[_0x251b1f(0x111)]=null;static get[_0x251b1f(0xe8)](){return[_0x55d274];}static get[_0x251b1f(0xf9)](){const _0x2ba12a=_0x251b1f;return _0x2ba12a(0x104);}static get[_0x251b1f(0x173)](){return!0x0;}static get[_0x251b1f(0x159)](){return!0x0;}async[_0x251b1f(0xe7)](){const _0x4d27c1=_0x251b1f;this[_0x4d27c1(0xf8)]=this[_0x4d27c1(0x168)][_0x4d27c1(0x10f)][_0x4d27c1(0x129)](_0x4d27c1(0x11e)),this[_0x4d27c1(0x147)]=this[_0x4d27c1(0x168)][_0x4d27c1(0x10f)][_0x4d27c1(0x129)](_0x4d27c1(0xe2)),this[_0x4d27c1(0xf5)]=this[_0x4d27c1(0x168)][_0x4d27c1(0x10f)][_0x4d27c1(0x129)](_0x4d27c1(0x11d));const _0x246adc=this[_0x4d27c1(0x168)][_0x4d27c1(0x162)][_0x4d27c1(0x129)](_0x4d27c1(0x13d));if(_0x246adc){for(const _0x49d9c5 of _0x54f0fe)_0x4d27c1(0x154)===_0x49d9c5['id']&&(_0x49d9c5[_0x4d27c1(0x14b)][0x0][_0x4d27c1(0x164)]=_0x246adc);}const _0x29fab7=this[_0x4d27c1(0x137)](_0x54f0fe);this[_0x4d27c1(0x121)]=new _0x1a1afd(_0x29fab7);const _0x4d6e1a=this[_0x4d27c1(0x121)][_0x4d27c1(0xdd)][_0x4d27c1(0x15f)](_0x3ca305=>_0x4d27c1(0x16c)===_0x3ca305['id']);if(_0x4d6e1a){const _0x4d29d1=await new _0x5cb2e2({'connector':this[_0x4d27c1(0xf8)]})[_0x4d27c1(0x140)]();_0x4d6e1a[_0x4d27c1(0xda)]=_0x4d29d1[_0x4d27c1(0xdb)](_0x108c0a=>({..._0x108c0a,'description':this[_0x4d27c1(0x14a)](_0x4d27c1(0xf4)+_0x108c0a['id'][_0x4d27c1(0x176)](),_0x108c0a[_0x4d27c1(0x120)])}));}this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x124),()=>{const _0x590ea1=_0x4d27c1;this[_0x590ea1(0x147)][_0x590ea1(0x174)](this[_0x590ea1(0x121)][_0x590ea1(0xdd)]);}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x125),async(_0x36b671,_0x1e02a4)=>{const _0x31494d=_0x4d27c1,_0x50ec6d=this[_0x31494d(0x121)][_0x31494d(0x175)](_0x1e02a4['id']);if(_0x50ec6d){this[_0x31494d(0x152)](this[_0x31494d(0x15e)]),_0x1e02a4[_0x31494d(0x112)]?this[_0x31494d(0x13a)]=new _0x1eda90(_0x1e02a4[_0x31494d(0x101)][_0x31494d(0x11f)],_0x1e02a4[_0x31494d(0x101)][_0x31494d(0x131)],this[_0x31494d(0xf5)][_0x31494d(0x132)](),_0x50ec6d,this[_0x31494d(0xf8)]):this[_0x31494d(0x13a)]=new _0x5d0a75(this[_0x31494d(0xf5)][_0x31494d(0x132)](),_0x50ec6d,this[_0x31494d(0xf8)],_0x1e02a4[_0x31494d(0xef)],_0x1e02a4[_0x31494d(0x101)]),this[_0x31494d(0x147)][_0x31494d(0x134)](this[_0x31494d(0x13a)][_0x31494d(0x15d)]),this[_0x31494d(0x13a)]['on'](_0x31494d(0xfa),(_0x7c7050,_0x4cbd45)=>{const _0x4fc284=_0x31494d;_0x4fc284(0x164)===_0x4cbd45[_0x4fc284(0x14f)]||_0x4fc284(0x108)===_0x4cbd45[_0x4fc284(0x14f)]?(this[_0x4fc284(0xf5)][_0x4fc284(0xfd)](),this[_0x4fc284(0x147)][_0x4fc284(0xff)](_0x4cbd45)):_0x4fc284(0xe1)===_0x4cbd45[_0x4fc284(0x14f)]?this[_0x4fc284(0x147)][_0x4fc284(0x12d)]():_0x4fc284(0x165)===_0x4cbd45[_0x4fc284(0x14f)]?this[_0x4fc284(0x147)][_0x4fc284(0x118)]():_0x4fc284(0xe9)===_0x4cbd45[_0x4fc284(0x14f)]?this[_0x4fc284(0x147)][_0x4fc284(0xde)]():_0x4fc284(0x16a)===_0x4cbd45[_0x4fc284(0x14f)]?this[_0x4fc284(0x147)][_0x4fc284(0xeb)]():_0x4fc284(0x11c)===_0x4cbd45[_0x4fc284(0x14f)]?this[_0x4fc284(0x147)][_0x4fc284(0x136)]():_0x4fc284(0x14d)===_0x4cbd45[_0x4fc284(0x14f)]&&(this[_0x4fc284(0x13a)]&&this[_0x4fc284(0x13a)][_0x4fc284(0x178)]>0x0?setTimeout(()=>{const _0x350ef4=_0x4fc284;this[_0x350ef4(0x13a)]?.[_0x350ef4(0x15c)]();},0x0):this[_0x4fc284(0x150)](!0x0));}),this[_0x31494d(0x13a)]['on'](_0x31494d(0x14c),(_0xf745df,_0x47fe27)=>{const _0x31d401=_0x31494d;if(!this[_0x31d401(0x13a)])throw new _0x401a4a(_0x31d401(0x170),this);const _0xf34ea1=this[_0x31d401(0xf5)][_0x31d401(0xfe)](_0x47fe27[_0x31d401(0x167)][_0x31d401(0xf1)],_0x47fe27[_0x31d401(0x167)][_0x31d401(0x102)]);_0x47fe27[_0x31d401(0x13f)][_0x31d401(0x141)](_0x47fe27[_0x31d401(0x167)]['id'],_0xf34ea1);}),this[_0x31494d(0x13a)]['on'](_0x31494d(0x16b),(_0x5e9677,_0x3b0183)=>{const _0x13b151=_0x31494d;for(const _0x363737 of _0x3b0183[_0x13b151(0x12a)])this[_0x13b151(0x147)][_0x13b151(0x15a)](_0x363737);this[_0x13b151(0xf5)][_0x13b151(0x135)](_0x3b0183[_0x13b151(0x12a)],_0x3b0183[_0x13b151(0x13f)][_0x13b151(0x107)]);}),this[_0x31494d(0x13a)]['on'](_0x31494d(0xfb),(_0x48a820,_0x3cb5ac)=>{const _0x31a116=_0x31494d;this[_0x31a116(0x147)][_0x31a116(0x151)](_0x3cb5ac[_0x31a116(0x144)]['id'],_0x31a116(0x143));}),this[_0x31494d(0x13a)]['on'](_0x31494d(0x160),(_0x37c189,_0x2aea40)=>{const _0x530835=_0x31494d;this[_0x530835(0x147)][_0x530835(0x151)](_0x2aea40[_0x530835(0x144)]['id'],_0x530835(0x13b));}),this[_0x31494d(0x13a)]['on'](_0x31494d(0x115),(_0x15a99b,_0x28139f)=>{const _0x1b6c30=_0x31494d;this[_0x1b6c30(0x147)][_0x1b6c30(0x117)](_0x28139f[_0x1b6c30(0x144)]['id']);const _0x16f13=this[_0x1b6c30(0xf5)][_0x1b6c30(0xfc)](_0x28139f[_0x1b6c30(0x144)]['id']);if(_0x16f13){if(_0x1b6c30(0x10d)===this[_0x1b6c30(0x111)]){const _0x3455d0=this[_0x1b6c30(0x147)][_0x1b6c30(0xed)](_0x28139f[_0x1b6c30(0x144)]['id']);_0x3455d0&&_0x696a62(_0x3455d0[_0x1b6c30(0x109)](_0x1b6c30(0x114))||_0x3455d0);}else{if(_0x1b6c30(0xf2)===this[_0x1b6c30(0x111)]){const _0x3033c9={'target':_0x16f13[_0x1b6c30(0x161)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x85accb(_0x3033c9);}}this[_0x1b6c30(0x147)][_0x1b6c30(0xf6)](_0x28139f[_0x1b6c30(0x144)],_0x16f13[_0x1b6c30(0x161)]);}}),this[_0x31494d(0x13a)]['on'](_0x31494d(0x153),()=>{const _0x33c53a=_0x31494d;this[_0x33c53a(0x147)][_0x33c53a(0xe0)]();});try{await this[_0x31494d(0x13a)][_0x31494d(0x100)]();}catch(_0x328458){_0x328458 instanceof Error&&_0x328458[_0x31494d(0x139)][_0x31494d(0x12f)](_0x31494d(0x123))||(_0x328458 instanceof _0x401a4a?this[_0x31494d(0x172)](_0x328458):this[_0x31494d(0x172)](new _0x401a4a(_0x31494d(0xf0),this,{'error':_0x328458})));}}else this[_0x31494d(0x172)](new _0x401a4a(_0x31494d(0x105),this,{'checkId':_0x1e02a4['id']}));}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x145),()=>{const _0x4d23ad=_0x4d27c1;this[_0x4d23ad(0x150)]();}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x148),()=>{const _0x70cd9c=_0x4d27c1;this[_0x70cd9c(0x150)](!0x0);}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x10b),()=>{const _0x224e15=_0x4d27c1;this[_0x224e15(0x13a)]&&this[_0x224e15(0x13a)][_0x224e15(0x10c)]();}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x122),()=>{const _0x1ed530=_0x4d27c1;this[_0x1ed530(0x150)](!0x0);}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x16e),()=>{const _0x30ab83=_0x4d27c1;if(!this[_0x30ab83(0x13a)])return;const _0x4d054d=this[_0x30ab83(0x13a)][_0x30ab83(0x12e)]();_0x4d054d[_0x30ab83(0x110)]&&(this[_0x30ab83(0xf5)][_0x30ab83(0x155)](_0x4d054d[_0x30ab83(0xdb)](_0x4c2b5f=>_0x4c2b5f['id'])),this[_0x30ab83(0x13a)][_0x30ab83(0x119)]());}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0xf3),(_0x17dcb4,_0x5ca9d2)=>{const _0x9ba4a9=_0x4d27c1;this[_0x9ba4a9(0x13a)]&&this[_0x9ba4a9(0x13a)][_0x9ba4a9(0x10a)](_0x5ca9d2['id'])&&(this[_0x9ba4a9(0xf5)][_0x9ba4a9(0x155)]([_0x5ca9d2['id']]),this[_0x9ba4a9(0x13a)][_0x9ba4a9(0x16f)](_0x5ca9d2['id']),this[_0x9ba4a9(0x147)][_0x9ba4a9(0x113)]());}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x149),(_0x556180,_0x40432e)=>{const _0x2e7269=_0x4d27c1;this[_0x2e7269(0x13a)]&&this[_0x2e7269(0x13a)][_0x2e7269(0x10a)](_0x40432e['id'])&&(this[_0x2e7269(0xf5)][_0x2e7269(0x103)](_0x40432e['id']),this[_0x2e7269(0x13a)][_0x2e7269(0xe4)](_0x40432e['id']),this[_0x2e7269(0x147)][_0x2e7269(0x113)]());}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x126),(_0x2d4466,_0x33432a)=>{const _0x188269=_0x4d27c1;this[_0x188269(0x15e)]=_0x33432a['on'],this[_0x188269(0x152)](this[_0x188269(0x15e)]);}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x138),async()=>{const _0x5706b0=_0x4d27c1;this[_0x5706b0(0x13a)]&&await this[_0x5706b0(0x13a)][_0x5706b0(0x12b)]();}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x11b),(_0x4ef9f1,_0x2bc15d)=>{const _0x5ea645=_0x4d27c1;this[_0x5ea645(0x13a)]&&(this[_0x5ea645(0x111)]=_0x5ea645(0xf2),this[_0x5ea645(0x13a)][_0x5ea645(0x11b)](_0x2bc15d['id']));}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0x147)],_0x4d27c1(0x163),()=>{const _0xebe239=_0x4d27c1;this[_0xebe239(0x13a)]&&this[_0xebe239(0x13a)][_0xebe239(0x163)]();}),this[_0x4d27c1(0x158)](this[_0x4d27c1(0xf5)][_0x4d27c1(0xf7)],_0x4d27c1(0x16d),(_0x386b84,_0x32a42e)=>{const _0x7b4d2d=_0x4d27c1;this[_0x7b4d2d(0x13a)]&&(this[_0x7b4d2d(0x111)]=_0x7b4d2d(0x10d),this[_0x7b4d2d(0x13a)][_0x7b4d2d(0x11b)](_0x32a42e[_0x7b4d2d(0x10e)]));});}[_0x251b1f(0x150)](_0x9b9c63=!0x1){const _0x3217f7=_0x251b1f;this[_0x3217f7(0x13a)]&&(this[_0x3217f7(0x13a)][_0x3217f7(0x10c)](),this[_0x3217f7(0x13a)][_0x3217f7(0x179)](),this[_0x3217f7(0x13a)]=void 0x0),_0x9b9c63&&this[_0x3217f7(0x147)][_0x3217f7(0xec)](),this[_0x3217f7(0xf5)][_0x3217f7(0x133)](),this[_0x3217f7(0xf5)][_0x3217f7(0x14e)](),this[_0x3217f7(0x111)]=null;const _0x40687e=this[_0x3217f7(0xf5)][_0x3217f7(0x13e)]();_0x40687e&&(_0x40687e[_0x3217f7(0x157)][_0x3217f7(0x156)](_0x3217f7(0xe3)),_0x40687e[_0x3217f7(0x157)][_0x3217f7(0x156)](_0x3217f7(0xea)));}[_0x251b1f(0x152)](_0x361c90){const _0x3f995e=_0x251b1f,_0x1647b0=this[_0x3f995e(0xf5)][_0x3f995e(0x13e)]();_0x1647b0&&(_0x1647b0[_0x3f995e(0x157)][_0x3f995e(0x156)](_0x3f995e(0xe3)),_0x1647b0[_0x3f995e(0x157)][_0x3f995e(0x156)](_0x3f995e(0xea)),_0x1647b0[_0x3f995e(0x157)][_0x3f995e(0x15b)](_0x361c90?_0x3f995e(0xe3):_0x3f995e(0xea)));}[_0x251b1f(0x137)](_0x345ef){const _0x39daba=_0x251b1f;return _0x345ef[_0x39daba(0xdb)](_0x273a2f=>{const _0x31793f=_0x39daba,_0x5cff14=_0x31793f(0x11a)+_0x273a2f['id'][_0x31793f(0x176)]()[_0x31793f(0x12c)]('-','_'),_0x56dd02={..._0x273a2f,'title':this[_0x31793f(0x14a)](_0x5cff14+_0x31793f(0x169),_0x273a2f[_0x31793f(0x15d)]),'description':this[_0x31793f(0x14a)](_0x5cff14+_0x31793f(0xdf),_0x273a2f[_0x31793f(0x120)])};return _0x273a2f[_0x31793f(0x14b)]&&(_0x56dd02[_0x31793f(0x14b)]=_0x273a2f[_0x31793f(0x14b)][_0x31793f(0xdb)](_0x5f22be=>({..._0x5f22be,'label':this[_0x31793f(0x14a)](_0x5cff14+_0x31793f(0x171),_0x5f22be[_0x31793f(0x116)]||''),'data':_0x5f22be[_0x31793f(0x164)]?_0x5f22be[_0x31793f(0x164)][_0x31793f(0xdb)](_0x196732=>({..._0x196732,'label':this[_0x31793f(0x14a)](_0x5cff14+_0x31793f(0x142)+_0x196732['id'][_0x31793f(0x176)](),_0x196732[_0x31793f(0x116)])})):void 0x0}))),_0x56dd02;});}[_0x251b1f(0x14a)](_0x9fb945,_0x7c6323){const _0x47b565=_0x251b1f,_0x16cc25=this[_0x47b565(0x168)][_0x47b565(0xe6)],_0x586675=_0x2eb01(_0x16cc25,_0x9fb945);return _0x586675===_0x9fb945?_0x7c6323:_0x586675;}[_0x251b1f(0x172)](_0xff8c16){const _0x1f3dab=_0x251b1f;_0x313c3d(_0xff8c16[_0x1f3dab(0x139)]),this[_0x1f3dab(0x147)][_0x1f3dab(0xeb)]();}}
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
* @module ai/aireviewmode/aireviewmodeediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { InsertOperation, MarkerOperation, ModelPosition, type Operation } from 'ckeditor5/src/engine.js';
|
|
10
|
-
import {
|
|
9
|
+
import { InsertOperation, MarkerOperation, ModelPosition, ModelRange, type Operation } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { type Emitter } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import { type Context, ContextPlugin, type Editor } from 'ckeditor5/src/core.js';
|
|
11
12
|
import { DocumentCompare } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
13
|
import { type AIReviewCheckResultChange } from './model/aireviewcheckresultchange.js';
|
|
13
14
|
import { AIEditing } from '../aicore/aiediting.js';
|
|
@@ -28,6 +29,14 @@ export declare class AIReviewModeEditing extends ContextPlugin {
|
|
|
28
29
|
* @inheritDoc
|
|
29
30
|
*/
|
|
30
31
|
static get isPremiumPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
constructor(context: Context | Editor);
|
|
36
|
+
/**
|
|
37
|
+
* Exposes the event emitter to allow listening to specific events.
|
|
38
|
+
*/
|
|
39
|
+
get emitter(): Emitter;
|
|
31
40
|
/**
|
|
32
41
|
* @inheritDoc
|
|
33
42
|
*/
|
|
@@ -84,12 +93,10 @@ export declare class AIReviewModeEditing extends ContextPlugin {
|
|
|
84
93
|
applyChange(changeIds: Array<string>): void;
|
|
85
94
|
rejectChange(changeId: string): void;
|
|
86
95
|
getContentElement(): HTMLElement | null;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
id: string;
|
|
92
|
-
}): void;
|
|
96
|
+
getMarkerElementForChange(changeId: string): {
|
|
97
|
+
modelRange: ModelRange;
|
|
98
|
+
domElement: HTMLElement;
|
|
99
|
+
} | null;
|
|
93
100
|
}
|
|
94
101
|
export type AIDocumentDataElement = {
|
|
95
102
|
path: Array<number>;
|
|
@@ -127,3 +134,12 @@ export type AIReviewModeChangeData = AIReviewModeChangeRange & {
|
|
|
127
134
|
content: () => string;
|
|
128
135
|
context: () => string;
|
|
129
136
|
};
|
|
137
|
+
export type AIReviewModeChangeMarkerClickedEvent = {
|
|
138
|
+
name: 'changeMarkerClick';
|
|
139
|
+
args: [
|
|
140
|
+
{
|
|
141
|
+
markerId: string;
|
|
142
|
+
changeId: string;
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
};
|