@ckeditor/ckeditor5-ai 47.0.0-alpha.1 → 47.0.0-alpha.3
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 +59 -38
- package/dist/index.css +77 -39
- 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 +40 -1
- 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/aiconfig.d.ts +5 -0
- 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.d.ts +31 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +37 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +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.d.ts +2 -19
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
- 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 +24 -2
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
- 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.d.ts +1 -0
- 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.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +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.d.ts +3 -2
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls.css +4 -0
- package/theme/aichat/aichatfeed.css +10 -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
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/src/aireviewmode/utils/common-translations.d.ts +0 -9
- package/src/aireviewmode/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e0868=_0xae8e;function _0xae8e(_0x4b5b32,_0x9ab965){const _0x9419af=_0x9419();return _0xae8e=function(_0xae8e6f,_0x19edde){_0xae8e6f=_0xae8e6f-0xa9;let _0x4901e5=_0x9419af[_0xae8e6f];return _0x4901e5;},_0xae8e(_0x4b5b32,_0x9ab965);}(function(_0x101232,_0x14b403){const _0x4ff3a6=_0xae8e,_0x5af25f=_0x101232();while(!![]){try{const _0x1ffedc=parseInt(_0x4ff3a6(0xc4))/0x1+-parseInt(_0x4ff3a6(0x11f))/0x2+-parseInt(_0x4ff3a6(0x10f))/0x3*(parseInt(_0x4ff3a6(0xe5))/0x4)+parseInt(_0x4ff3a6(0x10a))/0x5*(parseInt(_0x4ff3a6(0xd6))/0x6)+-parseInt(_0x4ff3a6(0xc1))/0x7*(parseInt(_0x4ff3a6(0xe0))/0x8)+-parseInt(_0x4ff3a6(0xc2))/0x9*(parseInt(_0x4ff3a6(0xfd))/0xa)+parseInt(_0x4ff3a6(0x118))/0xb;if(_0x1ffedc===_0x14b403)break;else _0x5af25f['push'](_0x5af25f['shift']());}catch(_0x4c2089){_0x5af25f['push'](_0x5af25f['shift']());}}}(_0x9419,0x7d36a));import{IconAIAdjustLength as _0x274000,IconAIAskAI as _0x39117d,IconAIChangeTone as _0x3e0f57,IconAIChatCommands as _0x53dc4e,IconAIContinueWriting as _0x22f19b,IconAIGrammarCheck as _0x36ac01,IconAIImproveWriting as _0x2ee413,IconAIOther as _0xc80403,IconAIQuickActions as _0x505405,IconAITranslate as _0x5d5f2b}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x1540f8}from'ckeditor5/src/core.js';import{getTranslation as _0x251cd9}from'./utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x400983}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x358021}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x18b454,BalloonToolbar as _0x548310}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';const Ft=_0x5e0868(0xb5),zt=_0x5e0868(0xa9),Wt=_0x5e0868(0x111);export var AIQuickActionType;!function(_0x5e1fea){const _0x235d1a=_0x5e0868;_0x5e1fea[_0x235d1a(0xee)]=_0x235d1a(0xee),_0x5e1fea[_0x235d1a(0xbc)]=_0x235d1a(0xbc),_0x5e1fea[_0x235d1a(0xf0)]=_0x235d1a(0xf0);}(AIQuickActionType||(AIQuickActionType={}));function _0x9419(){const _0xb325d4=['457046RItBZB','other','AI_QUICK_ACTIONS_IMPROVE_WRITING','config','italian','<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.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','length','ask-ai','make-tone-professional','isPremiumPlugin','highlight-key-points','adjust-length','translate-to-english','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_MORE_DIRECT','<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_CHANGE_TONE','AIQuickActionsUI','_getDefaultAndCustomActions','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','add','make-tone-friendly','ACTION','requires','find','AI_QUICK_ACTIONS_CHAT_COMMANDS','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','1694OrMaLH','18EyFzuu','translate-to-chinese','80207PKHabC','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','_shouldIncludeAction','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_MAKE_LONGER','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_ADJUST_LENGTH','fix-grammar','make-longer','chat-commands','locale','filter','summarize','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','pluginName','English','1524816YJvrsm','includes','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_OTHER','explain','get','improve-writing','english','type','push','19160CfQDAh','AI_QUICK_ACTIONS_EXPLAIN','AI_QUICK_ACTIONS_TRANSLATE','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AIReviewMode','20StupGE','has','translate-to-japanese','_initializeQuickActionsDropdown','forEach','attachToDom','portuguese','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','CHAT','make-tone-confident','REVIEW','translate','DisplayNames','AI_QUICK_ACTIONS_MAKE_SHORTER','japanese','continue','make-tone-casual','AI_QUICK_ACTIONS_HEADING','replace','translate-to-french','translate-to-russian','french','translate-to-portuguese','727480npGZdK','init','AIActions','actions','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','korean','chinese','editor','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','AI_QUICK_ACTIONS_CONTINUE_WRITING','AIChat','translate-to-korean','translate-to-italian','10vuHVGo','_quickActionsDefinition','uiLanguage','componentFactory','AI_QUICK_ACTIONS_ASK_AI','578373eaNrUg','language','<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>','make-tone-direct','map','isOfficialPlugin','change-tone','ai.quickActions.extraCommands','AI_QUICK_ACTIONS_SUMMARIZE','20261549RXpUDU','make-shorter','AI_QUICK_ACTIONS_MORE_CONFIDENT','russian','aiQuickActions','getDefaultQuickActions','plugins'];_0x9419=function(){return _0xb325d4;};return _0x9419();}export var AIQuickActionTypeToPluginName;!function(_0x285375){const _0x17912a=_0x5e0868;_0x285375[_0x17912a(0xee)]=_0x17912a(0x107),_0x285375[_0x17912a(0xbc)]=_0x17912a(0xff),_0x285375[_0x17912a(0xf0)]=_0x17912a(0xe4);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x1540f8{static get[_0x5e0868(0xbd)](){return[_0x548310];}static get[_0x5e0868(0xd4)](){const _0xd1ae8c=_0x5e0868;return _0xd1ae8c(0xb7);}static get[_0x5e0868(0x114)](){return!0x0;}static get[_0x5e0868(0xaf)](){return!0x0;}[_0x5e0868(0xfe)](){const _0x490086=_0x5e0868;this[_0x490086(0xc7)](this[_0x490086(0xb8)]()),this[_0x490086(0xb3)]();}static[_0x5e0868(0x11d)](_0x5ec5f6){return function(_0x4c5eda){const _0x1a6508=_0xae8e,_0x4aa483=new Intl[(_0x1a6508(0xf2))](['en'],{'type':_0x1a6508(0x110)})['of'](_0x4c5eda[_0x1a6508(0x10c)]),_0x22744d=_0x4aa483||_0x1a6508(0xd5),_0x5e3ea7=[{'id':_0x1a6508(0xad),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x10e)),'type':AIQuickActionType[_0x1a6508(0xee)],'icon':_0x39117d},{'id':_0x1a6508(0xcf),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xbf)),'icon':_0x53dc4e,'actions':[{'id':_0x1a6508(0xda),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xe1)),'prompt':Ft[_0x1a6508(0xf8)]('%0',_0x22744d),'type':AIQuickActionType[_0x1a6508(0xee)]},{'id':_0x1a6508(0xd2),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x117)),'prompt':zt[_0x1a6508(0xf8)]('%0',_0x22744d),'type':AIQuickActionType[_0x1a6508(0xee)]},{'id':_0x1a6508(0xb0),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xd3)),'prompt':Wt[_0x1a6508(0xf8)]('%0',_0x22744d),'type':AIQuickActionType[_0x1a6508(0xee)]}]},{'id':_0x1a6508(0xdc),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x121)),'type':AIQuickActionType[_0x1a6508(0xbc)],'icon':_0x2ee413},{'id':_0x1a6508(0xf5),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x106)),'type':AIQuickActionType[_0x1a6508(0xbc)],'icon':_0x22f19b},{'id':_0x1a6508(0xcd),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc8)),'type':AIQuickActionType[_0x1a6508(0xbc)],'icon':_0x36ac01},{'id':_0x1a6508(0xb1),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xcc)),'icon':_0x274000,'actions':[{'id':_0x1a6508(0x119),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xf3)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xce),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc9)),'type':AIQuickActionType[_0x1a6508(0xbc)]}]},{'id':_0x1a6508(0x115),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xb6)),'icon':_0x3e0f57,'actions':[{'id':_0x1a6508(0xf6),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xd8)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0x112),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xb4)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xbb),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xca)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xef),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x11a)),'type':AIQuickActionType[_0x1a6508(0xbc)]},{'id':_0x1a6508(0xae),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc5)),'type':AIQuickActionType[_0x1a6508(0xbc)]}]},{'id':_0x1a6508(0xf1),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xe2)),'icon':_0x5d5f2b,'actions':[{'id':_0x1a6508(0xb2),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xab)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xdd)}},{'id':_0x1a6508(0xc3),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xcb)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x103)}},{'id':_0x1a6508(0xf9),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x101)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xfb)}},{'id':_0x1a6508(0xe7),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0x105)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xf4)}},{'id':_0x1a6508(0xfc),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xe3)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0xeb)}},{'id':_0x1a6508(0x108),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xc0)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x102)}},{'id':_0x1a6508(0x109),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xed)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x123)}},{'id':_0x1a6508(0xfa),'displayedPrompt':_0x251cd9(_0x4c5eda,_0x1a6508(0xb9)),'type':AIQuickActionType[_0x1a6508(0xbc)],'actionName':_0x1a6508(0xf1),'args':{'language':_0x1a6508(0x11b)}}]},{'id':_0x1a6508(0x120),'label':_0x251cd9(_0x4c5eda,_0x1a6508(0xd9)),'icon':_0xc80403,'actions':[]}];return _0x5e3ea7;}(_0x5ec5f6);}[_0x5e0868(0xb8)](){const _0xb0d515=_0x5e0868,_0x16c4f3=AIQuickActionsUI[_0xb0d515(0x11d)](this[_0xb0d515(0x104)][_0xb0d515(0xd0)]),_0x52f186=(this[_0xb0d515(0x104)][_0xb0d515(0x122)][_0xb0d515(0xdb)](_0xb0d515(0x116))||[])[_0xb0d515(0x113)](_0xf3eed9=>({..._0xf3eed9,'icon':void 0x0}));return _0x16c4f3[_0xb0d515(0xbe)](_0x353a64=>_0xb0d515(0x120)===_0x353a64['id'])[_0xb0d515(0x100)][_0xb0d515(0xdf)](..._0x52f186),_0x16c4f3;}[_0x5e0868(0xb3)](){const _0x533e6b=_0x5e0868,_0x3297be=new _0x18b454(this[_0x533e6b(0x104)][_0x533e6b(0xd0)]);_0x3297be[_0x533e6b(0xea)](),this[_0x533e6b(0xe8)](_0x3297be),this[_0x533e6b(0xec)](_0x3297be);}[_0x5e0868(0xe8)](_0x45ffed){const _0x479e15=_0x5e0868;this[_0x479e15(0x104)]['ui'][_0x479e15(0x10d)][_0x479e15(0xba)](_0x479e15(0x11c),_0x400983(this[_0x479e15(0x104)],this[_0x479e15(0x10b)],{'icon':_0x505405,'label':_0x251cd9(this[_0x479e15(0x104)][_0x479e15(0xd0)],_0x479e15(0xf7))},_0x45ffed));}[_0x5e0868(0xc7)](_0xeba46){const _0x40be7c=_0x5e0868;this[_0x40be7c(0x10b)]=_0xeba46[_0x40be7c(0x113)](_0x57a3c7=>{const _0x8d2902=_0x40be7c;if(_0x8d2902(0x100)in _0x57a3c7){const _0x2726e9=_0x57a3c7;return{..._0x2726e9,'actions':_0x2726e9[_0x8d2902(0x100)][_0x8d2902(0x113)](_0x2f9416=>{const {actions:_0x39fe94,..._0x3f8313}=_0x2726e9;return{..._0x2f9416,'parent':_0x3f8313};})[_0x8d2902(0xd1)](_0x3a51ee=>this[_0x8d2902(0xc6)](_0x3a51ee))};}return _0x57a3c7;})[_0x40be7c(0xd1)](_0x1dcb5b=>_0x40be7c(0x100)in _0x1dcb5b?_0x1dcb5b[_0x40be7c(0x100)][_0x40be7c(0xac)]>0x0:this[_0x40be7c(0xc6)](_0x1dcb5b));}[_0x5e0868(0xc6)](_0x231e09){const _0x91ca37=_0x5e0868,_0x270242=this[_0x91ca37(0x104)][_0x91ca37(0x122)][_0x91ca37(0xdb)](_0x91ca37(0xaa))||[];return this[_0x91ca37(0x104)][_0x91ca37(0x11e)][_0x91ca37(0xe6)](AIQuickActionTypeToPluginName[_0x231e09[_0x91ca37(0xde)]])&&!_0x270242[_0x91ca37(0xd7)](_0x231e09['id']);}[_0x5e0868(0xec)](_0x34279a){const _0x173526=_0x5e0868;this[_0x173526(0x10b)][_0x173526(0xe9)](_0x32e7a9=>{const _0x2e80d1=_0x173526;if(_0x2e80d1(0x100)in _0x32e7a9){const _0x5dbd71=_0x400983(this[_0x2e80d1(0x104)],_0x32e7a9[_0x2e80d1(0x100)],_0x32e7a9,_0x34279a);this[_0x2e80d1(0x104)]['ui'][_0x2e80d1(0x10d)][_0x2e80d1(0xba)](_0x32e7a9['id'],_0x5dbd71),_0x32e7a9[_0x2e80d1(0x100)][_0x2e80d1(0xe9)](_0x5b6527=>{const _0x5ad369=_0x2e80d1,_0x21369a=_0x358021(this[_0x5ad369(0x104)],_0x5b6527);this[_0x5ad369(0x104)]['ui'][_0x5ad369(0x10d)][_0x5ad369(0xba)](_0x5b6527['id'],_0x21369a);});}else{const _0x36f32c=_0x358021(this[_0x2e80d1(0x104)],_0x32e7a9);this[_0x2e80d1(0x104)]['ui'][_0x2e80d1(0x10d)][_0x2e80d1(0xba)](_0x32e7a9['id'],_0x36f32c);}});}}
|
|
23
|
+
const _0x50aede=_0xa784;(function(_0x22a785,_0x8f74a5){const _0x10e6e1=_0xa784,_0x1b2d4f=_0x22a785();while(!![]){try{const _0x1b8e62=parseInt(_0x10e6e1(0x20a))/0x1*(parseInt(_0x10e6e1(0x1f8))/0x2)+-parseInt(_0x10e6e1(0x1ef))/0x3+parseInt(_0x10e6e1(0x239))/0x4+-parseInt(_0x10e6e1(0x22c))/0x5+parseInt(_0x10e6e1(0x1e6))/0x6*(parseInt(_0x10e6e1(0x231))/0x7)+parseInt(_0x10e6e1(0x244))/0x8+-parseInt(_0x10e6e1(0x227))/0x9;if(_0x1b8e62===_0x8f74a5)break;else _0x1b2d4f['push'](_0x1b2d4f['shift']());}catch(_0x48e378){_0x1b2d4f['push'](_0x1b2d4f['shift']());}}}(_0x4693,0x5dccc));import{IconAIAdjustLength as _0x1b506d,IconAIAskAI as _0x421026,IconAIChangeTone as _0x56f9ca,IconAIChatCommands as _0x3bb9e3,IconAIContinueWriting as _0x2e8816,IconAIGrammarCheck as _0x404f32,IconAIImproveWriting as _0x3ebfe8,IconAIOther as _0x20f098,IconAIQuickActions as _0x2d0431,IconAITranslate as _0x35a76b}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x2289af}from'ckeditor5/src/core.js';import{getTranslation as _0x75d56d}from'./utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x5b3709}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x44cd54}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x444d3a,BalloonToolbar as _0x23c694}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';const ne=_0x50aede(0x224),ae=_0x50aede(0x220),ce=_0x50aede(0x208);function _0xa784(_0x144f18,_0x44b168){const _0x4693cf=_0x4693();return _0xa784=function(_0xa78459,_0x5f58a8){_0xa78459=_0xa78459-0x1d1;let _0x487024=_0x4693cf[_0xa78459];return _0x487024;},_0xa784(_0x144f18,_0x44b168);}function _0x4693(){const _0x30d35b=['translate-to-korean','make-tone-direct','translate-to-portuguese','pluginName','REVIEW','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','translate-to-french','isOfficialPlugin','<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>','isPremiumPlugin','AI_QUICK_ACTIONS_CHAT_COMMANDS','make-tone-friendly','<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>','translate-to-chinese','AI_QUICK_ACTIONS_ADJUST_LENGTH','1704168HGCFXq','AI_QUICK_ACTIONS_MORE_FRIENDLY','make-shorter','AI_QUICK_ACTIONS_MAKE_LONGER','AI_QUICK_ACTIONS_TRANSLATE','1432760BBvmgC','AIQuickActionsUI','explain','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','replace','1197518MeELGX','translate-to-italian','language','chinese','requires','ACTION','_initializeQuickActionsComponentsAndCommands','map','1647324dhudZd','summarize','AI_QUICK_ACTIONS_CHANGE_TONE','get','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','attachToDom','_quickActionsDefinition','AI_QUICK_ACTIONS_MORE_CASUAL','AIReviewMode','adjust-length','translate-to-russian','1573080LlSlUo','AIActions','AI_QUICK_ACTIONS_MORE_CONFIDENT','ai.quickActions.removeCommands','aiQuickActions','fix-grammar','includes','_prepareQuickActionsDefinition','DisplayNames','uiLanguage','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','highlight-key-points','russian','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','config','AIChat','find','filter','AI_QUICK_ACTIONS_IMPROVE_WRITING','actions','editor','CHAT','_initializeQuickActionsDropdown','other','AI_QUICK_ACTIONS_SUMMARIZE','length','forEach','12SLVPAn','English','AI_QUICK_ACTIONS_MORE_DIRECT','make-longer','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_EXPLAIN','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','getDefaultQuickActions','658794malera','AI_QUICK_ACTIONS_MAKE_SHORTER','continue','chat-commands','add','english','korean','make-tone-confident','AI_QUICK_ACTIONS_HEADING','118iytxuU','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_OTHER','japanese','change-tone','translate-to-japanese','portuguese','translate-to-english','type','plugins','push','french','AI_QUICK_ACTIONS_ASK_AI','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','_getDefaultAndCustomActions','translate','<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>','make-tone-casual','2188HNQRpa','locale','make-tone-professional','AI_QUICK_ACTIONS_CONTINUE_WRITING','has','italian','init','_shouldIncludeAction','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','ask-ai','improve-writing','componentFactory','ai.quickActions.extraCommands','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'];_0x4693=function(){return _0x30d35b;};return _0x4693();}export var AIQuickActionType;!function(_0x37d83e){const _0x418c47=_0x50aede;_0x37d83e[_0x418c47(0x1e0)]=_0x418c47(0x1e0),_0x37d83e[_0x418c47(0x236)]=_0x418c47(0x236),_0x37d83e[_0x418c47(0x21c)]=_0x418c47(0x21c);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x36acbe){const _0x30f458=_0x50aede;_0x36acbe[_0x30f458(0x1e0)]=_0x30f458(0x1da),_0x36acbe[_0x30f458(0x236)]=_0x30f458(0x245),_0x36acbe[_0x30f458(0x21c)]=_0x30f458(0x241);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x2289af{static get[_0x50aede(0x235)](){return[_0x23c694];}static get[_0x50aede(0x21b)](){const _0x451417=_0x50aede;return _0x451417(0x22d);}static get[_0x50aede(0x21f)](){return!0x0;}static get[_0x50aede(0x221)](){return!0x0;}[_0x50aede(0x210)](){const _0xb1fdbc=_0x50aede;this[_0xb1fdbc(0x1d2)](this[_0xb1fdbc(0x206)]()),this[_0xb1fdbc(0x237)]();}static[_0x50aede(0x1ee)](_0x203a97){return function(_0x481cfb){const _0x3d16c9=_0xa784,_0x142535=new Intl[(_0x3d16c9(0x1d3))](['en'],{'type':_0x3d16c9(0x233)})['of'](_0x481cfb[_0x3d16c9(0x1d4)]),_0x58aa26=_0x142535||_0x3d16c9(0x1e7),_0x4135df=[{'id':_0x3d16c9(0x213),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x204)),'type':AIQuickActionType[_0x3d16c9(0x1e0)],'icon':_0x421026},{'id':_0x3d16c9(0x1f2),'label':_0x75d56d(_0x481cfb,_0x3d16c9(0x222)),'icon':_0x3bb9e3,'actions':[{'id':_0x3d16c9(0x22e),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1eb)),'prompt':ne[_0x3d16c9(0x230)]('%0',_0x58aa26),'type':AIQuickActionType[_0x3d16c9(0x1e0)]},{'id':_0x3d16c9(0x23a),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1e3)),'prompt':ae[_0x3d16c9(0x230)]('%0',_0x58aa26),'type':AIQuickActionType[_0x3d16c9(0x1e0)]},{'id':_0x3d16c9(0x1d6),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x217)),'prompt':ce[_0x3d16c9(0x230)]('%0',_0x58aa26),'type':AIQuickActionType[_0x3d16c9(0x1e0)]}]},{'id':_0x3d16c9(0x214),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1dd)),'type':AIQuickActionType[_0x3d16c9(0x236)],'icon':_0x3ebfe8},{'id':_0x3d16c9(0x1f1),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x20d)),'type':AIQuickActionType[_0x3d16c9(0x236)],'icon':_0x2e8816},{'id':_0x3d16c9(0x249),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x23d)),'type':AIQuickActionType[_0x3d16c9(0x236)],'icon':_0x404f32},{'id':_0x3d16c9(0x242),'label':_0x75d56d(_0x481cfb,_0x3d16c9(0x226)),'icon':_0x1b506d,'actions':[{'id':_0x3d16c9(0x229),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1f0)),'type':AIQuickActionType[_0x3d16c9(0x236)]},{'id':_0x3d16c9(0x1e9),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x22a)),'type':AIQuickActionType[_0x3d16c9(0x236)]}]},{'id':_0x3d16c9(0x1fc),'label':_0x75d56d(_0x481cfb,_0x3d16c9(0x23b)),'icon':_0x56f9ca,'actions':[{'id':_0x3d16c9(0x209),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x240)),'type':AIQuickActionType[_0x3d16c9(0x236)]},{'id':_0x3d16c9(0x219),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1e8)),'type':AIQuickActionType[_0x3d16c9(0x236)]},{'id':_0x3d16c9(0x223),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x228)),'type':AIQuickActionType[_0x3d16c9(0x236)]},{'id':_0x3d16c9(0x1f6),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x246)),'type':AIQuickActionType[_0x3d16c9(0x236)]},{'id':_0x3d16c9(0x20c),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x21d)),'type':AIQuickActionType[_0x3d16c9(0x236)]}]},{'id':_0x3d16c9(0x207),'label':_0x75d56d(_0x481cfb,_0x3d16c9(0x22b)),'icon':_0x35a76b,'actions':[{'id':_0x3d16c9(0x1ff),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1d8)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x1f4)}},{'id':_0x3d16c9(0x225),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1ea)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x234)}},{'id':_0x3d16c9(0x21e),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1d5)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x203)}},{'id':_0x3d16c9(0x1fd),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x212)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x1fb)}},{'id':_0x3d16c9(0x21a),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1f9)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x1fe)}},{'id':_0x3d16c9(0x218),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x1ed)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x1f5)}},{'id':_0x3d16c9(0x232),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x205)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x20f)}},{'id':_0x3d16c9(0x243),'displayedPrompt':_0x75d56d(_0x481cfb,_0x3d16c9(0x22f)),'type':AIQuickActionType[_0x3d16c9(0x236)],'actionName':_0x3d16c9(0x207),'args':{'language':_0x3d16c9(0x1d7)}}]},{'id':_0x3d16c9(0x1e2),'label':_0x75d56d(_0x481cfb,_0x3d16c9(0x1fa)),'icon':_0x20f098,'actions':[]}];return _0x4135df;}(_0x203a97);}[_0x50aede(0x206)](){const _0x14c4b2=_0x50aede,_0x536957=AIQuickActionsUI[_0x14c4b2(0x1ee)](this[_0x14c4b2(0x1df)][_0x14c4b2(0x20b)]),_0x2d4ea4=(this[_0x14c4b2(0x1df)][_0x14c4b2(0x1d9)][_0x14c4b2(0x23c)](_0x14c4b2(0x216))||[])[_0x14c4b2(0x238)](_0x50bad7=>({..._0x50bad7,'icon':void 0x0}));return _0x536957[_0x14c4b2(0x1db)](_0x377d0c=>_0x14c4b2(0x1e2)===_0x377d0c['id'])[_0x14c4b2(0x1de)][_0x14c4b2(0x202)](..._0x2d4ea4),_0x536957;}[_0x50aede(0x237)](){const _0x5ce65b=_0x50aede,_0x48c10b=new _0x444d3a(this[_0x5ce65b(0x1df)][_0x5ce65b(0x20b)]);_0x48c10b[_0x5ce65b(0x23e)](),this[_0x5ce65b(0x1e1)](_0x48c10b),this[_0x5ce65b(0x1ec)](_0x48c10b);}[_0x50aede(0x1e1)](_0x105500){const _0x10c52c=_0x50aede;this[_0x10c52c(0x1df)]['ui'][_0x10c52c(0x215)][_0x10c52c(0x1f3)](_0x10c52c(0x248),_0x5b3709(this[_0x10c52c(0x1df)],this[_0x10c52c(0x23f)],{'icon':_0x2d0431,'label':_0x75d56d(this[_0x10c52c(0x1df)][_0x10c52c(0x20b)],_0x10c52c(0x1f7))},_0x105500));}[_0x50aede(0x1d2)](_0x1b7b1a){const _0x50eff7=_0x50aede;this[_0x50eff7(0x23f)]=_0x1b7b1a[_0x50eff7(0x238)](_0x4327f3=>{const _0x2359d5=_0x50eff7;if(_0x2359d5(0x1de)in _0x4327f3){const _0x35d894=_0x4327f3;return{..._0x35d894,'actions':_0x35d894[_0x2359d5(0x1de)][_0x2359d5(0x238)](_0x2e6828=>{const {actions:_0x383ef1,..._0x55895a}=_0x35d894;return{..._0x2e6828,'parent':_0x55895a};})[_0x2359d5(0x1dc)](_0x5c863d=>this[_0x2359d5(0x211)](_0x5c863d))};}return _0x4327f3;})[_0x50eff7(0x1dc)](_0x35775f=>_0x50eff7(0x1de)in _0x35775f?_0x35775f[_0x50eff7(0x1de)][_0x50eff7(0x1e4)]>0x0:this[_0x50eff7(0x211)](_0x35775f));}[_0x50aede(0x211)](_0x3298){const _0x36522e=_0x50aede,_0x4618e6=this[_0x36522e(0x1df)][_0x36522e(0x1d9)][_0x36522e(0x23c)](_0x36522e(0x247))||[];return this[_0x36522e(0x1df)][_0x36522e(0x201)][_0x36522e(0x20e)](AIQuickActionTypeToPluginName[_0x3298[_0x36522e(0x200)]])&&!_0x4618e6[_0x36522e(0x1d1)](_0x3298['id']);}[_0x50aede(0x1ec)](_0x4e622e){const _0x5954bb=_0x50aede;this[_0x5954bb(0x23f)][_0x5954bb(0x1e5)](_0x565ec9=>{const _0x546550=_0x5954bb;if(_0x546550(0x1de)in _0x565ec9){const _0x45910b=_0x5b3709(this[_0x546550(0x1df)],_0x565ec9[_0x546550(0x1de)],_0x565ec9,_0x4e622e);this[_0x546550(0x1df)]['ui'][_0x546550(0x215)][_0x546550(0x1f3)](_0x565ec9['id'],_0x45910b),_0x565ec9[_0x546550(0x1de)][_0x546550(0x1e5)](_0xcb5925=>{const _0x32c9ce=_0x546550,_0xad0bbd=_0x44cd54(this[_0x32c9ce(0x1df)],_0xcb5925);this[_0x32c9ce(0x1df)]['ui'][_0x32c9ce(0x215)][_0x32c9ce(0x1f3)](_0xcb5925['id'],_0xad0bbd);});}else{const _0x231fd4=_0x44cd54(this[_0x546550(0x1df)],_0x565ec9);this[_0x546550(0x1df)]['ui'][_0x546550(0x215)][_0x546550(0x1f3)](_0x565ec9['id'],_0x231fd4);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x45d6(){const _0x5de471=['266832qLQfsk','2142234VYEBMr','extendTemplate','execute','focus','set','2idaltb','aiQuickAction','bindTemplate','10097353dTfsie','parent','3657696rrZZJc','273901AJMrTS','displayedPrompt','editing','5560795PKIyaR','icon','7157576YrNowu','menuitem','view','commands','locale'];_0x45d6=function(){return _0x5de471;};return _0x45d6();}function _0x3f2f(_0x2dd06a,_0x593606){const _0x45d6f0=_0x45d6();return _0x3f2f=function(_0x3f2fc8,_0xffac15){_0x3f2fc8=_0x3f2fc8-0x1b1;let _0x6f88c9=_0x45d6f0[_0x3f2fc8];return _0x6f88c9;},_0x3f2f(_0x2dd06a,_0x593606);}(function(_0x196a37,_0x1fabc3){const _0x121642=_0x3f2f,_0x294433=_0x196a37();while(!![]){try{const _0x569a4f=-parseInt(_0x121642(0x1bd))/0x1*(parseInt(_0x121642(0x1b7))/0x2)+-parseInt(_0x121642(0x1b2))/0x3+-parseInt(_0x121642(0x1b1))/0x4+-parseInt(_0x121642(0x1c0))/0x5+parseInt(_0x121642(0x1bc))/0x6+parseInt(_0x121642(0x1ba))/0x7+parseInt(_0x121642(0x1c2))/0x8;if(_0x569a4f===_0x1fabc3)break;else _0x294433['push'](_0x294433['shift']());}catch(_0x372f10){_0x294433['push'](_0x294433['shift']());}}}(_0x45d6,0xbe6aa));import{ButtonView as _0xa1f8c9}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x14fa1d}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0x3253a0,_0x1af35e,_0x748130=!0x1,_0x1891f7=!0x0){return()=>{const _0x2399bb=_0x3f2f,_0x12cc9d=_0x3253a0[_0x2399bb(0x1c6)],_0x5ecfa2=new _0xa1f8c9(_0x12cc9d),_0x418a27=_0x5ecfa2[_0x2399bb(0x1b9)];_0x5ecfa2[_0x2399bb(0x1b3)]({'on':{'mouseenter':_0x418a27['to'](()=>{const _0x43fd63=_0x2399bb;_0x5ecfa2[_0x43fd63(0x1b5)]();})}});const _0x6f0e4b=_0x1af35e[_0x2399bb(0x1c1)]??_0x1af35e[_0x2399bb(0x1bb)]?.[_0x2399bb(0x1c1)];return _0x5ecfa2[_0x2399bb(0x1b6)]({'label':_0x1af35e[_0x2399bb(0x1be)],'withText':_0x748130,'role':_0x2399bb(0x1c3),'icon':_0x1891f7?_0x6f0e4b??_0x14fa1d:void 0x0,'tooltip':!_0x748130}),_0x5ecfa2['on'](_0x2399bb(0x1b4),()=>{const _0x4a6443=_0x2399bb;_0x3253a0[_0x4a6443(0x1bf)][_0x4a6443(0x1c4)][_0x4a6443(0x1b5)](),_0x3253a0[_0x4a6443(0x1c5)][_0x4a6443(0x1b4)](_0x4a6443(0x1b8),_0x1af35e);}),_0x5ecfa2;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x72f8(_0x25bec6,_0x1b9d53){const _0x390d28=_0x390d();return _0x72f8=function(_0x72f8c7,_0x6e9c37){_0x72f8c7=_0x72f8c7-0x1e5;let _0xf3c080=_0x390d28[_0x72f8c7];return _0xf3c080;},_0x72f8(_0x25bec6,_0x1b9d53);}const _0x3d1781=_0x72f8;(function(_0x5454e1,_0x1c6285){const _0x2ee4e6=_0x72f8,_0x26447d=_0x5454e1();while(!![]){try{const _0x4d341e=parseInt(_0x2ee4e6(0x201))/0x1+parseInt(_0x2ee4e6(0x225))/0x2+parseInt(_0x2ee4e6(0x1f3))/0x3+parseInt(_0x2ee4e6(0x217))/0x4+-parseInt(_0x2ee4e6(0x229))/0x5*(parseInt(_0x2ee4e6(0x21d))/0x6)+parseInt(_0x2ee4e6(0x1e9))/0x7+-parseInt(_0x2ee4e6(0x1f9))/0x8;if(_0x4d341e===_0x1c6285)break;else _0x26447d['push'](_0x26447d['shift']());}catch(_0x1612b4){_0x26447d['push'](_0x26447d['shift']());}}}(_0x390d,0xdb8d6));function _0x390d(){const _0x5a26c6=['ck-ai-quick-actions-group-panel','ck-ai-quick-actions-group-list','closest','5bxdwkC','render','menuitem','optionsListView','children','uiLanguageDirection','_setupGroupMenuBehavior','_openNestedPanels','focusCycler','.ck-ai-quick-actions-group-button','menu','addMany','ck-reset_all','forEach','4803799YZGktB','delete','keystrokes','actions','ArrowLeft','_createActionGroupButton','contains','clear','role','ck-rounded-corners','885477rHemXC','pin','_showNestedPanel','key','ArrowRight','content','4034328TCBeyA','get','.ck-ai-quick-actions-group-panel','isVisible','items','label','div','_createListItems','1530842qLUeSk','set','isOn','ck-dropdown-menu-list','setTemplate','relatedTarget','show','_createActionButton','ck-dropdown-menu__nested-menu__panel','hide','element','focusTracker','extendTemplate','bindTemplate','detachFromDom','_hideNestedPanel','ck-ai-quick-actions','_hideAllNestedPanels','add','focus','locale','_focusables','1743044ZyPIkQ','ck-ai-quick-actions-group-button','bind','_createGroupActionsList','_bodyCollection','eastSouth','10146414IatAbK','.ck-ai-quick-actions-group-list','addEventListener','_isMovingToNestedMenu','icon','mouseleave','rtl','destroy','293254wEwjdG'];_0x390d=function(){return _0x5a26c6;};return _0x390d();}import{View as _0x158252,ListItemView as _0x3c257f,ListView as _0x327206,BalloonPanelView as _0x45d449,DropdownMenuPanelPositioningFunctions as _0xc00e98,DropdownMenuButtonView as _0x572e78,ViewCollection as _0x4c36d7,FocusCycler as _0x4d28f2}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x2622cc}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x4a8063,KeystrokeHandler as _0xedf9be}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x53f1}from'./aiquickactionsbuttoncreator.js';const Fs=_0x3d1781(0x1e5),Js=_0x3d1781(0x22b);export class AIQuickActionsDropdownContentView extends _0x158252{[_0x3d1781(0x21b)];[_0x3d1781(0x22c)];[_0x3d1781(0x20c)];[_0x3d1781(0x1eb)];[_0x3d1781(0x216)];[_0x3d1781(0x231)];[_0x3d1781(0x230)]=new Set();constructor(_0x54f516,_0x146732,_0x591ef0,_0x172b58){const _0x46b881=_0x3d1781,_0x12b263=_0x54f516[_0x46b881(0x215)];super(_0x12b263),this[_0x46b881(0x21b)]=_0x172b58;const _0x5f2a9a=this[_0x46b881(0x200)](_0x54f516,_0x146732,_0x591ef0);this[_0x46b881(0x22c)]=new _0x327206(_0x12b263),this[_0x46b881(0x22c)][_0x46b881(0x1f1)]=Fs,this[_0x46b881(0x22c)][_0x46b881(0x1fd)][_0x46b881(0x1e6)](_0x5f2a9a),this[_0x46b881(0x20c)]=new _0x4a8063(),this[_0x46b881(0x1eb)]=new _0xedf9be(),this[_0x46b881(0x216)]=_0x5f2a9a,this[_0x46b881(0x231)]=new _0x4d28f2({'focusables':this[_0x46b881(0x216)],'focusTracker':this[_0x46b881(0x20c)],'keystrokeHandler':this[_0x46b881(0x1eb)]}),this[_0x46b881(0x205)]({'tag':_0x46b881(0x1ff),'attributes':{'class':['ck',_0x46b881(0x1e7),_0x46b881(0x211),_0x46b881(0x1f2)],'dir':_0x12b263[_0x46b881(0x22e)]},'children':[this[_0x46b881(0x22c)]]});}[_0x3d1781(0x200)](_0x16419b,_0x23a7cd,_0x16d06e){const _0x3f4b0c=_0x3d1781,_0x3c710b=new _0x4c36d7();return _0x23a7cd[_0x3f4b0c(0x1e8)](_0x4893a1=>{const _0x2da8ca=_0x3f4b0c;_0x2da8ca(0x1ec)in _0x4893a1?_0x3c710b[_0x2da8ca(0x213)](this[_0x2da8ca(0x1ee)](_0x16419b,_0x4893a1,_0x16d06e)):_0x3c710b[_0x2da8ca(0x213)](this[_0x2da8ca(0x208)](_0x16419b,_0x4893a1));}),_0x3c710b;}[_0x3d1781(0x208)](_0x1f4338,_0x394416){const _0x46a1b1=_0x3d1781,_0x46e46e=new _0x3c257f(this[_0x46a1b1(0x215)]),_0x2e6452=_0x53f1(_0x1f4338,_0x394416,!0x0)();return _0x46e46e[_0x46a1b1(0x22d)][_0x46a1b1(0x213)](_0x2e6452),_0x46e46e;}[_0x3d1781(0x1ee)](_0x224a7f,_0x508e88,_0x21f964){const _0x4aff50=_0x3d1781,_0x232b40=new _0x3c257f(this[_0x4aff50(0x215)]),_0x174612=new _0x572e78(this[_0x4aff50(0x215)]),_0x38d3bf=_0x174612[_0x4aff50(0x20e)],_0x1d4069=_0x4aff50(0x223)===_0x21f964[_0x4aff50(0x215)][_0x4aff50(0x22e)]?_0x4aff50(0x1f7):_0x4aff50(0x1ed),_0x4e3b9a=this[_0x4aff50(0x21a)](_0x224a7f,_0x508e88[_0x4aff50(0x1ec)],_0x21f964);_0x174612[_0x4aff50(0x202)]({'label':_0x508e88[_0x4aff50(0x1fe)],'withText':!0x0,'role':Js,'icon':_0x508e88[_0x4aff50(0x221)]??_0x2622cc}),_0x174612[_0x4aff50(0x20d)]({'on':{'mouseenter':_0x38d3bf['to'](()=>{const _0x2d9356=_0x4aff50;_0x174612[_0x2d9356(0x214)]();})}});const _0x5a6433=new _0x45d449(this[_0x4aff50(0x215)]);return _0x5a6433[_0x4aff50(0x20d)]({'attributes':{'class':['ck',_0x4aff50(0x1e7),_0x4aff50(0x226),_0x4aff50(0x209)]},'on':{'keydown':_0x38d3bf['to'](_0x67d322=>{const _0x299e5f=_0x4aff50;_0x67d322[_0x299e5f(0x1f6)]==_0x1d4069&&(_0x174612[_0x299e5f(0x214)](),this[_0x299e5f(0x210)](_0x5a6433));})}}),_0x174612[_0x4aff50(0x219)](_0x4aff50(0x203))['to'](_0x5a6433,_0x4aff50(0x1fc)),this[_0x4aff50(0x21b)][_0x4aff50(0x213)](_0x5a6433),_0x5a6433[_0x4aff50(0x1f8)][_0x4aff50(0x213)](_0x4e3b9a),this[_0x4aff50(0x22f)](_0x174612,_0x5a6433),_0x232b40[_0x4aff50(0x22d)][_0x4aff50(0x213)](_0x174612),_0x232b40;}[_0x3d1781(0x21a)](_0x5ae9b1,_0x2e518e,_0x3840f8){const _0x3c5a48=_0x3d1781,_0x5cb840=new _0x327206(this[_0x3c5a48(0x215)]);return _0x5cb840[_0x3c5a48(0x20d)]({'attributes':{'class':['ck',_0x3c5a48(0x1e7),_0x3c5a48(0x227),_0x3c5a48(0x204)]}}),_0x2e518e[_0x3c5a48(0x1e8)](_0xb5dc9f=>{const _0x568dfa=_0x3c5a48,_0x2b4ad9=new _0x3c257f(this[_0x568dfa(0x215)]),_0x5eaed4=_0x53f1(_0x5ae9b1,_0xb5dc9f,!0x0,!0x1)();_0x2b4ad9[_0x568dfa(0x22d)][_0x568dfa(0x213)](_0x5eaed4),_0x3840f8[_0x568dfa(0x20c)][_0x568dfa(0x213)](_0x5eaed4),_0x5cb840[_0x568dfa(0x1fd)][_0x568dfa(0x213)](_0x2b4ad9);}),_0x5cb840;}[_0x3d1781(0x22f)](_0x516ea3,_0x2ff574){const _0x5d999c=_0x3d1781,_0x11fa45=_0x516ea3[_0x5d999c(0x20e)],_0x3302c5=_0x5d999c(0x223)===_0x516ea3[_0x5d999c(0x215)][_0x5d999c(0x22e)]?_0x5d999c(0x1ed):_0x5d999c(0x1f7);_0x516ea3[_0x5d999c(0x20d)]({'attributes':{'class':[_0x5d999c(0x218)]},'on':{'mouseenter':_0x11fa45['to'](()=>{const _0x362347=_0x5d999c;this[_0x362347(0x1f5)](_0x2ff574,_0x516ea3);}),'mouseleave':_0x11fa45['to'](_0x2e2584=>{const _0x18ff72=_0x5d999c,_0x2b3147=_0x2e2584[_0x18ff72(0x206)];this[_0x18ff72(0x220)](_0x2b3147,_0x2ff574)||this[_0x18ff72(0x210)](_0x2ff574);}),'keydown':_0x11fa45['to'](_0x506675=>{const _0x256704=_0x5d999c;_0x506675[_0x256704(0x1f6)]==_0x3302c5&&(this[_0x256704(0x1f5)](_0x2ff574,_0x516ea3),_0x2ff574[_0x256704(0x1f8)][_0x256704(0x1fa)](0x0)[_0x256704(0x214)]());})}}),_0x2ff574['on'](_0x5d999c(0x22a),()=>{const _0x172881=_0x5d999c;_0x2ff574[_0x172881(0x20b)]?.[_0x172881(0x21f)](_0x172881(0x222),_0x1bbf7f=>{const _0x211281=_0x172881,_0x552361=_0x1bbf7f[_0x211281(0x206)];_0x516ea3[_0x211281(0x20b)]?.[_0x211281(0x1ef)](_0x552361)||this[_0x211281(0x220)](_0x552361,_0x2ff574)||this[_0x211281(0x210)](_0x2ff574);});});}[_0x3d1781(0x1f5)](_0x45f32e,_0x4d10cb){const _0x20510a=_0x3d1781;this[_0x20510a(0x230)][_0x20510a(0x1e8)](_0xfb816b=>{const _0x2e70af=_0x20510a;_0xfb816b!==_0x45f32e&&_0xfb816b[_0x2e70af(0x1fc)]&&_0xfb816b[_0x2e70af(0x20a)]();}),_0x45f32e[_0x20510a(0x207)](),_0x45f32e[_0x20510a(0x1f4)]({'positions':[_0xc00e98[_0x20510a(0x21c)]],'target':_0x4d10cb[_0x20510a(0x20b)],'fitInViewport':!0x0}),this[_0x20510a(0x230)][_0x20510a(0x213)](_0x45f32e);}[_0x3d1781(0x210)](_0x21b534){const _0x1c7de8=_0x3d1781;_0x21b534[_0x1c7de8(0x20a)](),this[_0x1c7de8(0x230)][_0x1c7de8(0x1ea)](_0x21b534);}[_0x3d1781(0x212)](){const _0x41e5b7=_0x3d1781;this[_0x41e5b7(0x230)][_0x41e5b7(0x1e8)](_0x5f29a3=>_0x5f29a3[_0x41e5b7(0x20a)]()),this[_0x41e5b7(0x230)][_0x41e5b7(0x1f0)]();}[_0x3d1781(0x220)](_0x2e4a1c,_0x4cb746){const _0x5b8bc2=_0x3d1781;if(!_0x2e4a1c)return!0x1;if(_0x4cb746[_0x5b8bc2(0x20b)]?.[_0x5b8bc2(0x1ef)](_0x2e4a1c))return!0x0;const _0x2ef0a6=_0x2e4a1c;return _0x2ef0a6[_0x5b8bc2(0x228)]&&(null!==_0x2ef0a6[_0x5b8bc2(0x228)](_0x5b8bc2(0x1fb))||null!==_0x2ef0a6[_0x5b8bc2(0x228)](_0x5b8bc2(0x21e))||null!==_0x2ef0a6[_0x5b8bc2(0x228)](_0x5b8bc2(0x232)));}[_0x3d1781(0x224)](){const _0x1fe60b=_0x3d1781;this[_0x1fe60b(0x212)](),this[_0x1fe60b(0x21b)][_0x1fe60b(0x20f)](),super[_0x1fe60b(0x224)]();}[_0x3d1781(0x214)](){const _0x1f4684=_0x3d1781;this[_0x1f4684(0x22c)][_0x1f4684(0x214)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1ed8(){const _0x3ef663=['2248QYCtdi','36JZuxRj','locale','459127ySdqLC','label','11490900QaaimA','children','ck-ai-quick-actions-dropdown','3384822NDFFST','add','11wjUcZx','5UBVYus','16226zHtltx','buttonView','591420vyfkuA','icon','set','2TumUpP','803880vmIEaH','panelView','1301620oJwzEO'];_0x1ed8=function(){return _0x3ef663;};return _0x1ed8();}(function(_0x194243,_0x558b3f){const _0x42997c=_0xee74,_0x25cd62=_0x194243();while(!![]){try{const _0x412373=parseInt(_0x42997c(0x137))/0x1*(parseInt(_0x42997c(0x145))/0x2)+parseInt(_0x42997c(0x146))/0x3+-parseInt(_0x42997c(0x148))/0x4*(-parseInt(_0x42997c(0x13f))/0x5)+-parseInt(_0x42997c(0x13c))/0x6+-parseInt(_0x42997c(0x140))/0x7*(parseInt(_0x42997c(0x134))/0x8)+parseInt(_0x42997c(0x135))/0x9*(-parseInt(_0x42997c(0x142))/0xa)+-parseInt(_0x42997c(0x13e))/0xb*(-parseInt(_0x42997c(0x139))/0xc);if(_0x412373===_0x558b3f)break;else _0x25cd62['push'](_0x25cd62['shift']());}catch(_0x2a439a){_0x25cd62['push'](_0x25cd62['shift']());}}}(_0x1ed8,0x883b4));import{createDropdown as _0xf5bfb9}from'ckeditor5/src/ui.js';function _0xee74(_0x4a7b22,_0xb7e5a0){const _0x1ed8d3=_0x1ed8();return _0xee74=function(_0xee74e4,_0x40f28d){_0xee74e4=_0xee74e4-0x134;let _0x5853e2=_0x1ed8d3[_0xee74e4];return _0x5853e2;},_0xee74(_0x4a7b22,_0xb7e5a0);}import{IconAIQuickActions as _0x3bce28}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x568919}from'./aiquickactionsdropdowncontentview.js';export function aiQuickActionsDropdownCreator(_0x516e22,_0x366736,_0x5c9a6e,_0x482639){return()=>{const _0x360d34=_0xee74,_0x354dc6=_0x516e22[_0x360d34(0x136)],_0x3773e6=_0xf5bfb9(_0x354dc6);_0x3773e6[_0x360d34(0x141)][_0x360d34(0x144)]({'icon':_0x5c9a6e[_0x360d34(0x143)]??_0x3bce28,'label':_0x5c9a6e[_0x360d34(0x138)],'tooltip':!0x0}),_0x3773e6[_0x360d34(0x144)]({'class':_0x360d34(0x13b)});const _0x5836c6=new _0x568919(_0x516e22,_0x366736,_0x3773e6,_0x482639);return _0x3773e6[_0x360d34(0x147)][_0x360d34(0x13a)][_0x360d34(0x13d)](_0x5836c6),_0x3773e6;};}
|
|
@@ -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;}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/aireviewcheckdefinitions
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* List of definitions of available review checks that can be performed in the AI Review Mode.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AI_REVIEW_CHECKS: Array<AIReviewCheckDefinition>;
|
|
13
|
+
export type AIReviewCheckOptionData = {
|
|
14
|
+
label: string;
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
export type AIReviewCheckOptions = {
|
|
18
|
+
formType: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
default?: string;
|
|
21
|
+
data?: Array<AIReviewCheckOptionData>;
|
|
22
|
+
argsKey?: string;
|
|
23
|
+
};
|
|
24
|
+
export type AIReviewCheckDefinition = {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
isParameterized: boolean;
|
|
29
|
+
useArgs?: boolean;
|
|
30
|
+
options?: Array<AIReviewCheckOptions>;
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _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();}
|
|
@@ -28,3 +28,40 @@ export declare class AIReviewMode extends ContextPlugin {
|
|
|
28
28
|
*/
|
|
29
29
|
static get isPremiumPlugin(): true;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* The configuration of the {@link module:ai/aireviewmode/aireviewmode~AIReviewMode AI Review Mode feature}.
|
|
33
|
+
*/
|
|
34
|
+
export interface AIReviewModeConfig {
|
|
35
|
+
/**
|
|
36
|
+
* The integrator can provide a custom list of translations for the "Translate" check in the AI Review Mode feature.
|
|
37
|
+
*
|
|
38
|
+
* The list must be an array of objects containing the `id` and `label` properties like on example below:
|
|
39
|
+
*
|
|
40
|
+
* ```ts
|
|
41
|
+
* ClassicEditor
|
|
42
|
+
* .create( editorElement, {
|
|
43
|
+
* ai: {
|
|
44
|
+
* reviewMode: {
|
|
45
|
+
* translations: [
|
|
46
|
+
* {
|
|
47
|
+
* id: 'german',
|
|
48
|
+
* label: 'German'
|
|
49
|
+
* },
|
|
50
|
+
* {
|
|
51
|
+
* id: 'french',
|
|
52
|
+
* label: 'French'
|
|
53
|
+
* }
|
|
54
|
+
* ]
|
|
55
|
+
* }
|
|
56
|
+
* }
|
|
57
|
+
* } )
|
|
58
|
+
* .then( ... )
|
|
59
|
+
* .catch( ... );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
translations?: Array<AIReviewModeTranslation>;
|
|
63
|
+
}
|
|
64
|
+
export interface AIReviewModeTranslation {
|
|
65
|
+
id: string;
|
|
66
|
+
label: string;
|
|
67
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x26cb(_0x27936c,_0x603507){var _0x361773=_0x3617();return _0x26cb=function(_0x26cb9a,_0x18b8c6){_0x26cb9a=_0x26cb9a-0x140;var _0x356741=_0x361773[_0x26cb9a];return _0x356741;},_0x26cb(_0x27936c,_0x603507);}var _0x518fde=_0x26cb;function _0x3617(){var _0x54f294=['pluginName','isPremiumPlugin','679376FBnZfR','840857NapLrE','69210GLIXpo','2745748siifDe','1504356WdSYLB','50vRVrmK','AIReviewMode','112FVkRtj','requires','8103690HvsjLI','isOfficialPlugin','337673CMHGoq'];_0x3617=function(){return _0x54f294;};return _0x3617();}(function(_0x1fd1f9,_0x2cdb7b){var _0xd3d3d9=_0x26cb,_0x329a54=_0x1fd1f9();while(!![]){try{var _0x1e58f9=-parseInt(_0xd3d3d9(0x14c))/0x1+-parseInt(_0xd3d3d9(0x14b))/0x2+-parseInt(_0xd3d3d9(0x141))/0x3+parseInt(_0xd3d3d9(0x140))/0x4+parseInt(_0xd3d3d9(0x142))/0x5*(-parseInt(_0xd3d3d9(0x14d))/0x6)+parseInt(_0xd3d3d9(0x148))/0x7*(parseInt(_0xd3d3d9(0x144))/0x8)+parseInt(_0xd3d3d9(0x146))/0x9;if(_0x1e58f9===_0x2cdb7b)break;else _0x329a54['push'](_0x329a54['shift']());}catch(_0x3a4499){_0x329a54['push'](_0x329a54['shift']());}}}(_0x3617,0x717ce));import{ContextPlugin as _0x354660}from'ckeditor5/src/core.js';import{AIReviewModeController as _0xd8f75f}from'./aireviewmodecontroller.js';import{AIReviewModeUI as _0x95bf9b}from'./aireviewmodeui.js';import{AIReviewModeEditing as _0x55b29a}from'./aireviewmodeediting.js';export class AIReviewMode extends _0x354660{static get[_0x518fde(0x145)](){return[_0xd8f75f,_0x95bf9b,_0x55b29a];}static get[_0x518fde(0x149)](){var _0x55327a=_0x518fde;return _0x55327a(0x143);}static get[_0x518fde(0x147)](){return!0x0;}static get[_0x518fde(0x14a)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2aa994=_0x5914;(function(_0x33ad0d,_0x3259ef){const _0x5a1d35=_0x5914,_0x19c1b3=_0x33ad0d();while(!![]){try{const _0x2462f8=parseInt(_0x5a1d35(0x120))/0x1+-parseInt(_0x5a1d35(0x176))/0x2+-parseInt(_0x5a1d35(0x163))/0x3+parseInt(_0x5a1d35(0x151))/0x4*(parseInt(_0x5a1d35(0x14e))/0x5)+-parseInt(_0x5a1d35(0x153))/0x6+-parseInt(_0x5a1d35(0x11b))/0x7+parseInt(_0x5a1d35(0x11e))/0x8*(parseInt(_0x5a1d35(0x187))/0x9);if(_0x2462f8===_0x3259ef)break;else _0x19c1b3['push'](_0x19c1b3['shift']());}catch(_0x189408){_0x19c1b3['push'](_0x19c1b3['shift']());}}}(_0x566f,0x2a3f2));import{ContextPlugin as _0x4abc02}from'ckeditor5/src/core.js';import{CKEditorError as _0x1f40b1,logError as _0xc09db4}from'ckeditor5/src/utils.js';import{AIConnector as _0x344a36}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x40c6f9}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x36f148}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x3ca40c}from'./model/aireviewcustomcheckrun.js';function _0x566f(){const _0x4bd5d1=['setAvailableChecks','finished','acceptAllChanges','aireviewmode-check-run-failed','dismissChange','args','model','reviewCheckRunUpdated','isOfficialPlugin','isCustom','status','abortReviewStream','showReviewCompletedView','markChangePositionInEditorContent','listenTo','getDocumentData','rejectChange','get','switchToReadOnly','init','markAllChangesAsAccepted','error-chunk','_aiReviewCheckList','reviewCheckResultReady','getContentElement','aireviewmode-no-current-check-run','ck-ai-review-mode-highlights','start','AIReviewModeController','aireviewmode-source-check-not-found','map','showChunkErrorView','requires','toggleDiff','markChangeAsAccepted','isChangeActive','_currentReviewCheckRun','loading','_onReviewModeRunLeave','restart','checks','aborted','_onDiffChange','pluginName','accepted','75970qQcifa','AIConnector','result','8LOgukh','runReviewCheck','967014uezPPB','showActionsWhenResultIsReady','showCheckRunResult','contentNew','length','_isDiffOn','models','abort','message','_aiReviewModeUi','markChangeAsRejected','_aiConnector','clearAllMarkers','scrollToChangeInEditorContent','prompt','classList','147558IhTHie','resetActiveStateInResults','retryReview','scrollToSuggestionInDocument','rejected','_aiReviewModeEditing','switchToEdit','AIReviewModeEditing','title','getReviewCheckList','showCheckRunResults','find','AIReviewModeUI','showReviewCheckList','includes','error-general','contentInitial','reviewCheckResultAdded','forceReadyState','406178BnTULa','add','diffContent','plugins','isPremiumPlugin','source','context','ready','change','stopListening','setCheckResultTitle','getActiveChanges','getCheckById','setItemAsActive','addResultChanges','custom','remove','888453ruzCaw','reviewCheckResultRejected','reviewCheckResultAccepted','showGeneralErrorView','ai-request-aborted','leaveReviewModeResultList','data','getAll','finishReview','processedResultsCount','leaveReviewMode','ck-ai-review-mode-diff','changes','documentData','updateChangeState','1795710IXGmKf','_logError','applyChange','40XHFmRx','acceptChange','319043Reizsm'];_0x566f=function(){return _0x4bd5d1;};return _0x566f();}import{AIReviewModels as _0x1a1226}from'./model/aireviewmodels.js';function _0x5914(_0x377c66,_0x18ab59){const _0x566ff8=_0x566f();return _0x5914=function(_0x591437,_0xebf552){_0x591437=_0x591437-0x10e;let _0x1293b7=_0x566ff8[_0x591437];return _0x1293b7;},_0x5914(_0x377c66,_0x18ab59);}export class AIReviewModeController extends _0x4abc02{[_0x2aa994(0x15e)];[_0x2aa994(0x15c)];[_0x2aa994(0x168)];[_0x2aa994(0x137)];[_0x2aa994(0x145)];[_0x2aa994(0x158)]=!0x1;static get[_0x2aa994(0x141)](){return[_0x344a36];}static get[_0x2aa994(0x14c)](){const _0x50a428=_0x2aa994;return _0x50a428(0x13d);}static get[_0x2aa994(0x129)](){return!0x0;}static get[_0x2aa994(0x17a)](){return!0x0;}[_0x2aa994(0x134)](){const _0x9f278c=_0x2aa994;this[_0x9f278c(0x15e)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x14f)),this[_0x9f278c(0x15c)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x16f)),this[_0x9f278c(0x168)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x16a)),this[_0x9f278c(0x137)]=new _0x40c6f9(),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x16c),async()=>{const _0x83b8df=_0x9f278c,_0x5bac4b=new _0x1a1226({'connector':this[_0x83b8df(0x15e)]});this[_0x83b8df(0x137)][_0x83b8df(0x149)][_0x83b8df(0x16e)](_0x5889bc=>_0x83b8df(0x185)===_0x5889bc['id'])[_0x83b8df(0x159)]=await _0x5bac4b[_0x83b8df(0x113)](),this[_0x83b8df(0x15c)][_0x83b8df(0x121)](this[_0x83b8df(0x137)][_0x83b8df(0x149)]);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x152),async(_0x2e19cf,_0x352a5d)=>{const _0x31e523=_0x9f278c,_0x593bc2=this[_0x31e523(0x137)][_0x31e523(0x182)](_0x352a5d['id']);if(_0x593bc2){this[_0x31e523(0x14b)](this[_0x31e523(0x158)]),_0x352a5d[_0x31e523(0x12a)]?(this[_0x31e523(0x15c)][_0x31e523(0x180)](_0x352a5d[_0x31e523(0x126)][_0x31e523(0x161)]),this[_0x31e523(0x145)]=new _0x3ca40c(_0x352a5d[_0x31e523(0x126)][_0x31e523(0x161)],_0x352a5d[_0x31e523(0x126)][_0x31e523(0x127)],this[_0x31e523(0x168)][_0x31e523(0x130)](),_0x593bc2,this[_0x31e523(0x15e)])):(this[_0x31e523(0x15c)][_0x31e523(0x180)](_0x593bc2[_0x31e523(0x16b)]),this[_0x31e523(0x145)]=new _0x36f148(this[_0x31e523(0x168)][_0x31e523(0x130)](),_0x593bc2,this[_0x31e523(0x15e)],_0x352a5d[_0x31e523(0x126)])),this[_0x31e523(0x145)]['on'](_0x31e523(0x128),(_0x8b7488,_0x55cc01)=>{const _0x2b105d=_0x31e523;_0x2b105d(0x112)===_0x55cc01[_0x2b105d(0x12b)]||_0x2b105d(0x146)===_0x55cc01[_0x2b105d(0x12b)]?(this[_0x2b105d(0x168)][_0x2b105d(0x133)](),this[_0x2b105d(0x15c)][_0x2b105d(0x16d)](_0x55cc01)):_0x2b105d(0x122)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x12d)]():_0x2b105d(0x17d)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x154)]():_0x2b105d(0x172)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x10f)]():_0x2b105d(0x136)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x140)]():_0x2b105d(0x14a)===_0x55cc01[_0x2b105d(0x12b)]&&(this[_0x2b105d(0x145)]&&this[_0x2b105d(0x145)][_0x2b105d(0x115)]>0x0?setTimeout(()=>{const _0x225423=_0x2b105d;this[_0x225423(0x145)]?.[_0x225423(0x175)]();},0x0):this[_0x2b105d(0x147)](!0x0));}),this[_0x31e523(0x145)]['on'](_0x31e523(0x174),(_0x2fadc6,_0x3b02fa)=>{const _0x5c9dff=_0x31e523;if(!this[_0x5c9dff(0x145)])throw new _0x1f40b1(_0x5c9dff(0x13a),this);const _0x394c69=this[_0x5c9dff(0x168)][_0x5c9dff(0x178)](_0x3b02fa[_0x5c9dff(0x150)][_0x5c9dff(0x173)],_0x3b02fa[_0x5c9dff(0x150)][_0x5c9dff(0x156)]);_0x3b02fa[_0x5c9dff(0x17b)][_0x5c9dff(0x184)](_0x3b02fa[_0x5c9dff(0x150)]['id'],_0x394c69);}),this[_0x31e523(0x145)]['on'](_0x31e523(0x138),(_0xeb1277,_0x3dd365)=>{const _0x2a8f02=_0x31e523;for(const _0xfcd510 of _0x3dd365[_0x2a8f02(0x118)])this[_0x2a8f02(0x15c)][_0x2a8f02(0x155)](_0xfcd510);this[_0x2a8f02(0x168)][_0x2a8f02(0x12e)](_0x3dd365[_0x2a8f02(0x118)],_0x3dd365[_0x2a8f02(0x17b)][_0x2a8f02(0x119)]);}),this[_0x31e523(0x145)]['on'](_0x31e523(0x10e),(_0x325bb0,_0x401012)=>{const _0x13686f=_0x31e523;this[_0x13686f(0x15c)][_0x13686f(0x11a)](_0x401012[_0x13686f(0x17e)]['id'],_0x13686f(0x14d));}),this[_0x31e523(0x145)]['on'](_0x31e523(0x188),(_0x407336,_0x59f5ae)=>{const _0x579ada=_0x31e523;this[_0x579ada(0x15c)][_0x579ada(0x11a)](_0x59f5ae[_0x579ada(0x17e)]['id'],_0x579ada(0x167));});try{await this[_0x31e523(0x145)][_0x31e523(0x13c)]();}catch(_0x541894){_0x541894 instanceof Error&&_0x541894[_0x31e523(0x15b)][_0x31e523(0x171)](_0x31e523(0x110))||(_0x541894 instanceof _0x1f40b1?this[_0x31e523(0x11c)](_0x541894):this[_0x31e523(0x11c)](new _0x1f40b1(_0x31e523(0x124),this,{'error':_0x541894})));}}else this[_0x31e523(0x11c)](new _0x1f40b1(_0x31e523(0x13e),this,{'checkId':_0x352a5d['id']}));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x116),()=>{const _0x59806c=_0x9f278c;this[_0x59806c(0x147)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x111),()=>{const _0x1fc966=_0x9f278c;this[_0x1fc966(0x147)](!0x0);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x12c),()=>{const _0x2c2210=_0x9f278c;this[_0x2c2210(0x145)]&&this[_0x2c2210(0x145)][_0x2c2210(0x15a)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x114),()=>{const _0x43e7c=_0x9f278c;this[_0x43e7c(0x147)](!0x0);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x123),async()=>{const _0x5f0ba2=_0x9f278c;if(!this[_0x5f0ba2(0x145)])return;const _0x152f17=this[_0x5f0ba2(0x145)][_0x5f0ba2(0x181)]();_0x152f17[_0x5f0ba2(0x157)]&&(this[_0x5f0ba2(0x168)][_0x5f0ba2(0x11d)](_0x152f17[_0x5f0ba2(0x13f)](_0x46d633=>_0x46d633['id'])),this[_0x5f0ba2(0x145)][_0x5f0ba2(0x135)]());}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x11f),async(_0x1438a5,_0x38524a)=>{const _0x444ef4=_0x9f278c;this[_0x444ef4(0x145)]&&this[_0x444ef4(0x145)][_0x444ef4(0x144)](_0x38524a['id'])&&(this[_0x444ef4(0x168)][_0x444ef4(0x11d)]([_0x38524a['id']]),this[_0x444ef4(0x145)][_0x444ef4(0x143)](_0x38524a['id']));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x125),async(_0x112585,_0x44b7e5)=>{const _0xc2f55b=_0x9f278c;this[_0xc2f55b(0x145)]&&this[_0xc2f55b(0x145)][_0xc2f55b(0x144)](_0x44b7e5['id'])&&(this[_0xc2f55b(0x168)][_0xc2f55b(0x131)](_0x44b7e5['id']),this[_0xc2f55b(0x145)][_0xc2f55b(0x15d)](_0x44b7e5['id']));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x142),(_0x8198e0,_0x1a878c)=>{const _0x25adb9=_0x9f278c;this[_0x25adb9(0x158)]=_0x1a878c['on'],this[_0x25adb9(0x14b)](this[_0x25adb9(0x158)]);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x165),async()=>{const _0x378496=_0x9f278c;this[_0x378496(0x145)]&&this[_0x378496(0x145)][_0x378496(0x148)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x166),async(_0x46f1d4,_0x103703)=>{const _0x531a2f=_0x9f278c,{source:_0x52e533}=_0x103703;this[_0x531a2f(0x15c)][_0x531a2f(0x164)](),_0x52e533[_0x531a2f(0x183)](),this[_0x531a2f(0x168)][_0x531a2f(0x160)]({'id':_0x103703['id']});});}[_0x2aa994(0x147)](_0x209334=!0x1){const _0x811d4c=_0x2aa994;this[_0x811d4c(0x145)]&&(this[_0x811d4c(0x145)][_0x811d4c(0x15a)](),this[_0x811d4c(0x145)][_0x811d4c(0x17f)](),this[_0x811d4c(0x145)]=void 0x0),_0x209334&&this[_0x811d4c(0x15c)][_0x811d4c(0x170)](),this[_0x811d4c(0x168)][_0x811d4c(0x15f)](),this[_0x811d4c(0x168)][_0x811d4c(0x169)]();const _0x528643=this[_0x811d4c(0x168)][_0x811d4c(0x139)]();_0x528643&&(_0x528643[_0x811d4c(0x162)][_0x811d4c(0x186)](_0x811d4c(0x117)),_0x528643[_0x811d4c(0x162)][_0x811d4c(0x186)](_0x811d4c(0x13b)));}[_0x2aa994(0x14b)](_0xe30553){const _0x23d127=_0x2aa994,_0xb5fac7=this[_0x23d127(0x168)][_0x23d127(0x139)]();_0xb5fac7&&(_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x186)](_0x23d127(0x117)),_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x186)](_0x23d127(0x13b)),_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x177)](_0xe30553?_0x23d127(0x117):_0x23d127(0x13b)));}[_0x2aa994(0x11c)](_0x17e24b){const _0x128897=_0x2aa994;_0xc09db4(_0x17e24b[_0x128897(0x15b)]),this[_0x128897(0x15c)][_0x128897(0x10f)]();}}
|
|
23
|
+
const _0x530c2a=_0x2ec5;(function(_0x424fdb,_0x4bd90d){const _0x4a5dab=_0x2ec5,_0x24babf=_0x424fdb();while(!![]){try{const _0x1c63d2=parseInt(_0x4a5dab(0x1fd))/0x1*(-parseInt(_0x4a5dab(0x22e))/0x2)+parseInt(_0x4a5dab(0x25e))/0x3*(-parseInt(_0x4a5dab(0x1e4))/0x4)+parseInt(_0x4a5dab(0x234))/0x5+parseInt(_0x4a5dab(0x21b))/0x6*(-parseInt(_0x4a5dab(0x229))/0x7)+-parseInt(_0x4a5dab(0x249))/0x8+parseInt(_0x4a5dab(0x266))/0x9+parseInt(_0x4a5dab(0x1fc))/0xa;if(_0x1c63d2===_0x4bd90d)break;else _0x24babf['push'](_0x24babf['shift']());}catch(_0x146ac0){_0x24babf['push'](_0x24babf['shift']());}}}(_0x4178,0xf0d8c));import{ContextPlugin as _0x5e879f}from'ckeditor5/src/core.js';import{CKEditorError as _0x449a4a,logError as _0x4d6f35,scrollAncestorsToShowTarget as _0x326f20,scrollViewportToShowTarget as _0x321948}from'ckeditor5/src/utils.js';import{AIConnector as _0x34febc}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x1071ff}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x4180ba}from'./model/aireviewsystemcheckrun.js';function _0x2ec5(_0x5e0959,_0x585a33){const _0x417896=_0x4178();return _0x2ec5=function(_0x2ec5a0,_0x57923b){_0x2ec5a0=_0x2ec5a0-0x1d3;let _0x32266f=_0x417896[_0x2ec5a0];return _0x32266f;},_0x2ec5(_0x5e0959,_0x585a33);}function _0x4178(){const _0x3a522d=['11774160xvphBA','remove','error-general','changeId','addResultChanges','showChangeBalloon','aireviewmode-no-current-check-run','showReviewCheckList','includes','description','source','toUpperCase','content','aireviewmode-check-run-failed','reviewCheckResultAdded','closest','changeMarkerClick','finished','_translateReviewChecks','classList','reviewCheckResultReady','_onReviewModeRunLeave','showReviewCompletedView','_TITLE','getReviewCheckList','reviewCheckResultRejected','documentData','_OPTIONS_LABEL','markAllChangesAsAccepted','1060460blwEzx','args','restart','AI_REVIEW_CHECK_','pluginName','requires','model','contentNew','prompt','clearAllMarkers','init','panel','reviewCheckResultActivated','getAll','AIReviewModeEditing','aborted','_aiReviewCheckList','length','acceptAllChanges','_isDiffOn','reviewCheckRunUpdated','dismissChange','abort','config','11634440NZplZx','499ePIjyE','rejected','_DESCRIPTION','label','showActionsWhenResultIsReady','stopListening','accepted','translate','toggleDiff','reviewCheckResultDeactivated','isOfficialPlugin','replaceAll','context','contentInitial','emitter','status','changes','getCheckById','domElement','_getTranslationWithDefault','ck-ai-review-mode-highlights','markChangePositionInEditorContent','deactivateChange','isCustom','setCheckResultTitle','leaveReviewMode','showChunkErrorView','_aiReviewModeUi','showCheckRunResult','.ck-ai-review-mode__check-run-result','42RWhKQF','getDocumentData','_OPTIONS_DATA_','showCheckRunResults','resetActiveStateInResults','processedResultsCount','_currentReviewCheckRun','setAvailableChecks','AIReviewModeUI','loading','listenTo','_logError','showNoChangesView','ai.reviewMode.translations','183099GGhmaX','_onDiffChange','getActiveChanges','map','acceptChange','40keHyfI','markChangeAsAccepted','isChangeActive','find','_aiReviewModeEditing','change','7613505HBtaNR','showGeneralErrorView','abortReviewStream','diffContent','message','get','_aiConnector','custom','options','checks','leaveReviewModeResultList','ai-request-aborted','AIReviewModeController','_changeActivationSource','AI_MODEL_DESCRIPTION_','reviewCheckResultAccepted','unmodified','forceReadyState','activateChange','models','data','7671944WbbKWR','title','ready','result','markChangeAsRejected','updateChangeState','finishReview','isPremiumPlugin','applyChange','getChangeElement','plugins','setActiveStateInResults','runReviewCheck','aireviewmode-source-check-not-found','AIConnector','switchToEdit','start','switchToReadOnly','getMarkerElementForChange','hideChangeBalloon','getContentElement','21lIHADt','ck-ai-review-mode-diff','locale','params','retryReview','add','rejectChange','error-chunk'];_0x4178=function(){return _0x3a522d;};return _0x4178();}import{AIReviewCustomCheckRun as _0x143762}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x249172}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x22905b}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x3c8087}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x5e879f{[_0x530c2a(0x23a)];[_0x530c2a(0x218)];[_0x530c2a(0x232)];[_0x530c2a(0x1f4)];[_0x530c2a(0x221)];[_0x530c2a(0x1f7)]=!0x1;[_0x530c2a(0x241)]=null;static get[_0x530c2a(0x1e9)](){return[_0x34febc];}static get[_0x530c2a(0x1e8)](){const _0x29f1e7=_0x530c2a;return _0x29f1e7(0x240);}static get[_0x530c2a(0x207)](){return!0x0;}static get[_0x530c2a(0x250)](){return!0x0;}async[_0x530c2a(0x1ee)](){const _0x585e34=_0x530c2a;this[_0x585e34(0x23a)]=this[_0x585e34(0x209)][_0x585e34(0x253)][_0x585e34(0x239)](_0x585e34(0x257)),this[_0x585e34(0x218)]=this[_0x585e34(0x209)][_0x585e34(0x253)][_0x585e34(0x239)](_0x585e34(0x223)),this[_0x585e34(0x232)]=this[_0x585e34(0x209)][_0x585e34(0x253)][_0x585e34(0x239)](_0x585e34(0x1f2));const _0x418c9b=this[_0x585e34(0x209)][_0x585e34(0x1fb)][_0x585e34(0x239)](_0x585e34(0x228));if(_0x418c9b){for(const _0xb6abd6 of _0x22905b)_0x585e34(0x204)===_0xb6abd6['id']&&(_0xb6abd6[_0x585e34(0x23c)][0x0][_0x585e34(0x248)]=_0x418c9b);}const _0x1ae085=this[_0x585e34(0x1d9)](_0x22905b);this[_0x585e34(0x1f4)]=new _0x1071ff(_0x1ae085);const _0x5a619d=this[_0x585e34(0x1f4)][_0x585e34(0x23d)][_0x585e34(0x231)](_0xb10a76=>_0x585e34(0x23b)===_0xb10a76['id']);if(_0x5a619d){const _0x1d34e1=await new _0x249172({'connector':this[_0x585e34(0x23a)]})[_0x585e34(0x1f1)]();_0x5a619d[_0x585e34(0x247)]=_0x1d34e1[_0x585e34(0x22c)](_0x28dafd=>({..._0x28dafd,'description':this[_0x585e34(0x210)](_0x585e34(0x242)+_0x28dafd['id'][_0x585e34(0x271)](),_0x28dafd[_0x585e34(0x26f)])}));}this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x1df),()=>{const _0x50af5b=_0x585e34;this[_0x50af5b(0x218)][_0x50af5b(0x222)](this[_0x50af5b(0x1f4)][_0x50af5b(0x23d)]);}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x255),async(_0x791670,_0xf421ac)=>{const _0x4cd975=_0x585e34,_0x2fa863=this[_0x4cd975(0x1f4)][_0x4cd975(0x20e)](_0xf421ac['id']);if(_0x2fa863){this[_0x4cd975(0x22a)](this[_0x4cd975(0x1f7)]),_0xf421ac[_0x4cd975(0x214)]?this[_0x4cd975(0x221)]=new _0x143762(_0xf421ac[_0x4cd975(0x1e5)][_0x4cd975(0x1ec)],_0xf421ac[_0x4cd975(0x1e5)][_0x4cd975(0x1ea)],this[_0x4cd975(0x232)][_0x4cd975(0x21c)](),_0x2fa863,this[_0x4cd975(0x23a)]):this[_0x4cd975(0x221)]=new _0x4180ba(this[_0x4cd975(0x232)][_0x4cd975(0x21c)](),_0x2fa863,this[_0x4cd975(0x23a)],_0xf421ac[_0x4cd975(0x261)],_0xf421ac[_0x4cd975(0x1e5)]),this[_0x4cd975(0x218)][_0x4cd975(0x215)](this[_0x4cd975(0x221)][_0x4cd975(0x24a)]),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x1f8),(_0x439d78,_0x284e1e)=>{const _0x37faf2=_0x4cd975;_0x37faf2(0x248)===_0x284e1e[_0x37faf2(0x20c)]||_0x37faf2(0x224)===_0x284e1e[_0x37faf2(0x20c)]?(this[_0x37faf2(0x232)][_0x37faf2(0x25a)](),this[_0x37faf2(0x218)][_0x37faf2(0x21e)](_0x284e1e)):_0x37faf2(0x1d8)===_0x284e1e[_0x37faf2(0x20c)]?this[_0x37faf2(0x218)][_0x37faf2(0x1dd)]():_0x37faf2(0x24b)===_0x284e1e[_0x37faf2(0x20c)]?this[_0x37faf2(0x218)][_0x37faf2(0x201)]():_0x37faf2(0x244)===_0x284e1e[_0x37faf2(0x20c)]?this[_0x37faf2(0x218)][_0x37faf2(0x227)]():_0x37faf2(0x268)===_0x284e1e[_0x37faf2(0x20c)]?this[_0x37faf2(0x218)][_0x37faf2(0x235)]():_0x37faf2(0x265)===_0x284e1e[_0x37faf2(0x20c)]?this[_0x37faf2(0x218)][_0x37faf2(0x217)]():_0x37faf2(0x1f3)===_0x284e1e[_0x37faf2(0x20c)]&&(this[_0x37faf2(0x221)]&&this[_0x37faf2(0x221)][_0x37faf2(0x220)]>0x0?setTimeout(()=>{const _0x2772c7=_0x37faf2;this[_0x2772c7(0x221)]?.[_0x2772c7(0x245)]();},0x0):this[_0x37faf2(0x1dc)](!0x0));}),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x1d5),(_0x3aff05,_0x39a9e3)=>{const _0x466b0b=_0x4cd975;if(!this[_0x466b0b(0x221)])throw new _0x449a4a(_0x466b0b(0x26c),this);const _0x4de42a=this[_0x466b0b(0x232)][_0x466b0b(0x237)](_0x39a9e3[_0x466b0b(0x24c)][_0x466b0b(0x20a)],_0x39a9e3[_0x466b0b(0x24c)][_0x466b0b(0x1eb)]);_0x39a9e3[_0x466b0b(0x270)][_0x466b0b(0x26a)](_0x39a9e3[_0x466b0b(0x24c)]['id'],_0x4de42a);}),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x1db),(_0x45fd0a,_0xe1107d)=>{const _0x3a1846=_0x4cd975;for(const _0x5d300b of _0xe1107d[_0x3a1846(0x20d)])this[_0x3a1846(0x218)][_0x3a1846(0x219)](_0x5d300b);this[_0x3a1846(0x232)][_0x3a1846(0x212)](_0xe1107d[_0x3a1846(0x20d)],_0xe1107d[_0x3a1846(0x270)][_0x3a1846(0x1e1)]);}),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x243),(_0x5a448e,_0x160361)=>{const _0x1ea98b=_0x4cd975;this[_0x1ea98b(0x218)][_0x1ea98b(0x24e)](_0x160361[_0x1ea98b(0x233)]['id'],_0x1ea98b(0x203));}),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x1e0),(_0x14a34c,_0x560637)=>{const _0x396a69=_0x4cd975;this[_0x396a69(0x218)][_0x396a69(0x24e)](_0x560637[_0x396a69(0x233)]['id'],_0x396a69(0x1fe));}),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x1f0),(_0x375b61,_0x5b40bd)=>{const _0x12dac4=_0x4cd975;this[_0x12dac4(0x218)][_0x12dac4(0x254)](_0x5b40bd[_0x12dac4(0x233)]['id']);const _0xcad691=this[_0x12dac4(0x232)][_0x12dac4(0x25b)](_0x5b40bd[_0x12dac4(0x233)]['id']);if(_0xcad691){if(_0x12dac4(0x1d3)===this[_0x12dac4(0x241)]){const _0x536b04=this[_0x12dac4(0x218)][_0x12dac4(0x252)](_0x5b40bd[_0x12dac4(0x233)]['id']);_0x536b04&&_0x326f20(_0x536b04[_0x12dac4(0x1d6)](_0x12dac4(0x21a))||_0x536b04);}else{if(_0x12dac4(0x1ef)===this[_0x12dac4(0x241)]){const _0x4a018b={'target':_0xcad691[_0x12dac4(0x20f)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x321948(_0x4a018b);}}this[_0x12dac4(0x218)][_0x12dac4(0x26b)](_0x5b40bd[_0x12dac4(0x233)],_0xcad691[_0x12dac4(0x20f)]);}}),this[_0x4cd975(0x221)]['on'](_0x4cd975(0x206),()=>{const _0x2bc334=_0x4cd975;this[_0x2bc334(0x218)][_0x2bc334(0x21f)]();});try{await this[_0x4cd975(0x221)][_0x4cd975(0x259)]();}catch(_0x17131a){_0x17131a instanceof Error&&_0x17131a[_0x4cd975(0x238)][_0x4cd975(0x26e)](_0x4cd975(0x23f))||(_0x17131a instanceof _0x449a4a?this[_0x4cd975(0x226)](_0x17131a):this[_0x4cd975(0x226)](new _0x449a4a(_0x4cd975(0x1d4),this,{'error':_0x17131a})));}}else this[_0x4cd975(0x226)](new _0x449a4a(_0x4cd975(0x256),this,{'checkId':_0xf421ac['id']}));}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x216),()=>{const _0x37c3fa=_0x585e34;this[_0x37c3fa(0x1dc)]();}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x23e),()=>{const _0x4a6705=_0x585e34;this[_0x4a6705(0x1dc)](!0x0);}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x236),()=>{const _0x48cda0=_0x585e34;this[_0x48cda0(0x221)]&&this[_0x48cda0(0x221)][_0x48cda0(0x1fa)]();}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x24f),()=>{const _0x38049f=_0x585e34;this[_0x38049f(0x1dc)](!0x0);}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x1f6),()=>{const _0x38c80c=_0x585e34;if(!this[_0x38c80c(0x221)])return;const _0x1b0dea=this[_0x38c80c(0x221)][_0x38c80c(0x22b)]();_0x1b0dea[_0x38c80c(0x1f5)]&&(this[_0x38c80c(0x232)][_0x38c80c(0x251)](_0x1b0dea[_0x38c80c(0x22c)](_0xeb48b3=>_0xeb48b3['id'])),this[_0x38c80c(0x221)][_0x38c80c(0x1e3)]());}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x22d),(_0x578852,_0x35788d)=>{const _0x2fcd87=_0x585e34;this[_0x2fcd87(0x221)]&&this[_0x2fcd87(0x221)][_0x2fcd87(0x230)](_0x35788d['id'])&&(this[_0x2fcd87(0x232)][_0x2fcd87(0x251)]([_0x35788d['id']]),this[_0x2fcd87(0x221)][_0x2fcd87(0x22f)](_0x35788d['id']),this[_0x2fcd87(0x218)][_0x2fcd87(0x25c)]());}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x1f9),(_0x1983c4,_0x3dc765)=>{const _0x2fe0ea=_0x585e34;this[_0x2fe0ea(0x221)]&&this[_0x2fe0ea(0x221)][_0x2fe0ea(0x230)](_0x3dc765['id'])&&(this[_0x2fe0ea(0x232)][_0x2fe0ea(0x264)](_0x3dc765['id']),this[_0x2fe0ea(0x221)][_0x2fe0ea(0x24d)](_0x3dc765['id']),this[_0x2fe0ea(0x218)][_0x2fe0ea(0x25c)]());}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x205),(_0x3fdde3,_0x26b211)=>{const _0x3ace1d=_0x585e34;this[_0x3ace1d(0x1f7)]=_0x26b211['on'],this[_0x3ace1d(0x22a)](this[_0x3ace1d(0x1f7)]);}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x262),async()=>{const _0x470bd9=_0x585e34;this[_0x470bd9(0x221)]&&await this[_0x470bd9(0x221)][_0x470bd9(0x1e6)]();}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x246),(_0x35a68b,_0x3f2bc9)=>{const _0x1466a4=_0x585e34;this[_0x1466a4(0x221)]&&(this[_0x1466a4(0x241)]=_0x1466a4(0x1ef),this[_0x1466a4(0x221)][_0x1466a4(0x246)](_0x3f2bc9['id']));}),this[_0x585e34(0x225)](this[_0x585e34(0x218)],_0x585e34(0x213),()=>{const _0x41c555=_0x585e34;this[_0x41c555(0x221)]&&this[_0x41c555(0x221)][_0x41c555(0x213)]();}),this[_0x585e34(0x225)](this[_0x585e34(0x232)][_0x585e34(0x20b)],_0x585e34(0x1d7),(_0x5cf580,_0xe291fb)=>{const _0x5680ef=_0x585e34;this[_0x5680ef(0x221)]&&(this[_0x5680ef(0x241)]=_0x5680ef(0x1d3),this[_0x5680ef(0x221)][_0x5680ef(0x246)](_0xe291fb[_0x5680ef(0x269)]));});}[_0x530c2a(0x1dc)](_0x19a1d7=!0x1){const _0x53701e=_0x530c2a;this[_0x53701e(0x221)]&&(this[_0x53701e(0x221)][_0x53701e(0x1fa)](),this[_0x53701e(0x221)][_0x53701e(0x202)](),this[_0x53701e(0x221)]=void 0x0),_0x19a1d7&&this[_0x53701e(0x218)][_0x53701e(0x26d)](),this[_0x53701e(0x232)][_0x53701e(0x1ed)](),this[_0x53701e(0x232)][_0x53701e(0x258)](),this[_0x53701e(0x241)]=null;const _0x4017f4=this[_0x53701e(0x232)][_0x53701e(0x25d)]();_0x4017f4&&(_0x4017f4[_0x53701e(0x1da)][_0x53701e(0x267)](_0x53701e(0x25f)),_0x4017f4[_0x53701e(0x1da)][_0x53701e(0x267)](_0x53701e(0x211)));}[_0x530c2a(0x22a)](_0x8df9e8){const _0x62a248=_0x530c2a,_0xda2f01=this[_0x62a248(0x232)][_0x62a248(0x25d)]();_0xda2f01&&(_0xda2f01[_0x62a248(0x1da)][_0x62a248(0x267)](_0x62a248(0x25f)),_0xda2f01[_0x62a248(0x1da)][_0x62a248(0x267)](_0x62a248(0x211)),_0xda2f01[_0x62a248(0x1da)][_0x62a248(0x263)](_0x8df9e8?_0x62a248(0x25f):_0x62a248(0x211)));}[_0x530c2a(0x1d9)](_0xd3a4d8){const _0x26ab52=_0x530c2a;return _0xd3a4d8[_0x26ab52(0x22c)](_0x17c97d=>{const _0x3e5f06=_0x26ab52,_0x25b848=_0x3e5f06(0x1e7)+_0x17c97d['id'][_0x3e5f06(0x271)]()[_0x3e5f06(0x208)]('-','_'),_0x51e4e4={..._0x17c97d,'title':this[_0x3e5f06(0x210)](_0x25b848+_0x3e5f06(0x1de),_0x17c97d[_0x3e5f06(0x24a)]),'description':this[_0x3e5f06(0x210)](_0x25b848+_0x3e5f06(0x1ff),_0x17c97d[_0x3e5f06(0x26f)])};return _0x17c97d[_0x3e5f06(0x23c)]&&(_0x51e4e4[_0x3e5f06(0x23c)]=_0x17c97d[_0x3e5f06(0x23c)][_0x3e5f06(0x22c)](_0x44da76=>({..._0x44da76,'label':this[_0x3e5f06(0x210)](_0x25b848+_0x3e5f06(0x1e2),_0x44da76[_0x3e5f06(0x200)]||''),'data':_0x44da76[_0x3e5f06(0x248)]?_0x44da76[_0x3e5f06(0x248)][_0x3e5f06(0x22c)](_0x3b1fa9=>({..._0x3b1fa9,'label':this[_0x3e5f06(0x210)](_0x25b848+_0x3e5f06(0x21d)+_0x3b1fa9['id'][_0x3e5f06(0x271)](),_0x3b1fa9[_0x3e5f06(0x200)])})):void 0x0}))),_0x51e4e4;});}[_0x530c2a(0x210)](_0x1eac27,_0x5a27fb){const _0x404130=_0x530c2a,_0x44814c=this[_0x404130(0x209)][_0x404130(0x260)],_0x1d188b=_0x3c8087(_0x44814c,_0x1eac27);return _0x1d188b===_0x1eac27?_0x5a27fb:_0x1d188b;}[_0x530c2a(0x226)](_0x39e9d7){const _0xb2f621=_0x530c2a;_0x4d6f35(_0x39e9d7[_0xb2f621(0x238)]),this[_0xb2f621(0x218)][_0xb2f621(0x235)]();}}
|
|
@@ -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
|
+
};
|