@ckeditor/ckeditor5-ai 47.2.0 → 47.3.0-alpha.1
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/LICENSE.md +16 -20
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.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-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.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/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.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/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.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/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.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/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.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 +285 -65
- package/dist/index.css +286 -68
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +10 -1
- package/lang/translations/af.po +36 -0
- package/lang/translations/ar.po +36 -0
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/be.po +36 -0
- package/lang/translations/bg.po +36 -0
- package/lang/translations/bn.po +36 -0
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +36 -0
- package/lang/translations/cs.po +36 -0
- package/lang/translations/da.po +36 -0
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +36 -0
- package/lang/translations/el.po +36 -0
- package/lang/translations/en-au.po +36 -0
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +36 -0
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +36 -0
- package/lang/translations/es.po +36 -0
- package/lang/translations/et.po +36 -0
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +36 -0
- package/lang/translations/fr.po +36 -0
- package/lang/translations/gl.po +36 -0
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +36 -0
- package/lang/translations/hi.po +36 -0
- package/lang/translations/hr.po +36 -0
- package/lang/translations/hu.po +36 -0
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +36 -0
- package/lang/translations/it.po +36 -0
- package/lang/translations/ja.po +36 -0
- package/lang/translations/jv.po +36 -0
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +36 -0
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +36 -0
- package/lang/translations/lv.po +36 -0
- package/lang/translations/ms.po +36 -0
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +36 -0
- package/lang/translations/no.po +36 -0
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +36 -0
- package/lang/translations/pt-br.po +36 -0
- package/lang/translations/pt.po +36 -0
- package/lang/translations/ro.po +36 -0
- package/lang/translations/ru.po +36 -0
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +36 -0
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +36 -0
- package/lang/translations/sr.po +36 -0
- package/lang/translations/sv.po +36 -0
- package/lang/translations/th.po +36 -0
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +36 -0
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +36 -0
- package/lang/translations/uk.po +36 -0
- package/lang/translations/ur.po +36 -0
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +36 -0
- package/lang/translations/zh-cn.po +36 -0
- package/lang/translations/zh.po +36 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +8 -0
- 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.d.ts +12 -0
- 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.d.ts +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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +23 -0
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +24 -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.d.ts +5 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.d.ts +8 -0
- package/src/errorsmap.js +23 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +26 -0
- package/theme/aichat/aichat.css +1 -3
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +139 -25
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
- package/theme/aireviewmode/aireviewmode.css +33 -10
- package/theme/common/{aichaterror.css → ainotification.css} +17 -14
- package/theme/common/aitrackchanges.css +9 -0
- package/src/aichat/utils/scrollmanager.js +0 -23
- /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23c013=_0x2a13;(function(_0x985d02,_0x50290f){const _0x1936f6=_0x2a13,_0x1f305e=_0x985d02();while(!![]){try{const _0x5da6f0=-parseInt(_0x1936f6(0x15a))/0x1+parseInt(_0x1936f6(0x155))/0x2+-parseInt(_0x1936f6(0x129))/0x3+-parseInt(_0x1936f6(0x132))/0x4*(-parseInt(_0x1936f6(0x13d))/0x5)+-parseInt(_0x1936f6(0x121))/0x6+-parseInt(_0x1936f6(0x14f))/0x7*(-parseInt(_0x1936f6(0x134))/0x8)+parseInt(_0x1936f6(0x131))/0x9;if(_0x5da6f0===_0x50290f)break;else _0x1f305e['push'](_0x1f305e['shift']());}catch(_0x461417){_0x1f305e['push'](_0x1f305e['shift']());}}}(_0xc3d4,0x2a9c6));import{Command as _0x4b82b6}from'ckeditor5/src/core.js';function _0xc3d4(){const _0x401e9f=['chat','parent','7RsXEcU','addSelectionToChatContext','getLimitElement','locale','log','AIReviewMode','669854rLkkPM','type','_expandSelectionIfCollapsed','other','document','248925xGkuQQ','handleAIReviewAction','CHAT','1986300Dmfjow','AIChatController','REVIEW','setSelection','view','ai-quick-actions-plugin-not-found','AITabs','schema','925167XEACIP','ask-ai','activateTab','getSelectedBlocks','model','editor','AIChat','startConversation','4260483eGFhPA','20676mqTvff','label','837464YBztFj','args','ACTION','icon','plugins','_handleAIActionsActionLabel','_handleAIReviewAction','actionName','get','145DoTHcm','has','selection','_handleAIChatAction','sendMessage','displayedPrompt','focusPromptInput','change','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','execute','removeSelectionFromChatContext','prompt','_handleAIActionsAction','executeAction','AIActions','isCollapsed'];_0xc3d4=function(){return _0x401e9f;};return _0xc3d4();}import{CKEditorError as _0x3e5048,first as _0x5d9bd4}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x36ca78}from'./aiquickactionsui.js';import{getTranslation as _0x244d9a}from'../aicore/utils/common-translations.js';function _0x2a13(_0x2bb629,_0x27aec8){const _0xc3d404=_0xc3d4();return _0x2a13=function(_0x2a138a,_0x6a27ad){_0x2a138a=_0x2a138a-0x11f;let _0x5a90a2=_0xc3d404[_0x2a138a];return _0x5a90a2;},_0x2a13(_0x2bb629,_0x27aec8);}export class AIQuickActionsCommand extends _0x4b82b6{[_0x23c013(0x146)](_0x5de0ba){const _0x36e133=_0x23c013;switch(this[_0x36e133(0x157)](),_0x5de0ba[_0x36e133(0x156)]){case _0x36ca78[_0x36e133(0x120)]:if(!this[_0x36e133(0x12e)][_0x36e133(0x138)][_0x36e133(0x13e)](_0x36e133(0x12f))){const _0x39e3d8=_0x244d9a(this[_0x36e133(0x12e)][_0x36e133(0x152)],_0x36e133(0x145),_0x36e133(0x12f));throw new _0x3e5048(_0x36e133(0x126),this[_0x36e133(0x12e)],{'errorMessage':_0x39e3d8});}this[_0x36e133(0x140)](_0x5de0ba);break;case _0x36ca78[_0x36e133(0x136)]:if(!this[_0x36e133(0x12e)][_0x36e133(0x138)][_0x36e133(0x13e)](_0x36e133(0x14b))){const _0x256806=_0x244d9a(this[_0x36e133(0x12e)][_0x36e133(0x152)],_0x36e133(0x145),_0x36e133(0x14b));throw new _0x3e5048(_0x36e133(0x126),this[_0x36e133(0x12e)],{'errorMessage':_0x256806});}this[_0x36e133(0x149)](_0x5de0ba);break;case _0x36ca78[_0x36e133(0x123)]:if(!this[_0x36e133(0x12e)][_0x36e133(0x138)][_0x36e133(0x13e)](_0x36e133(0x154))){const _0x36721d=_0x244d9a(this[_0x36e133(0x12e)][_0x36e133(0x152)],_0x36e133(0x145),_0x36e133(0x154));throw new _0x3e5048(_0x36e133(0x126),this[_0x36e133(0x12e)],{'errorMessage':_0x36721d});}this[_0x36e133(0x13a)](_0x5de0ba);}}async[_0x23c013(0x140)](_0x381211){const _0x581b01=_0x23c013,_0x270136=this[_0x581b01(0x12e)][_0x581b01(0x138)][_0x581b01(0x13c)](_0x581b01(0x12f)),_0x51aaa7=this[_0x581b01(0x12e)][_0x581b01(0x138)][_0x581b01(0x13c)](_0x581b01(0x122));if(this[_0x581b01(0x12e)][_0x581b01(0x138)][_0x581b01(0x13c)](_0x581b01(0x127))[_0x581b01(0x125)][_0x581b01(0x12b)](_0x581b01(0x14d)),_0x581b01(0x12a)===_0x381211['id'])_0x51aaa7[_0x581b01(0x147)](),await _0x270136[_0x581b01(0x150)](),_0x270136[_0x581b01(0x143)]();else await _0x270136[_0x581b01(0x130)](),_0x51aaa7[_0x581b01(0x147)](),await _0x270136[_0x581b01(0x150)](),_0x270136[_0x581b01(0x143)](),await _0x270136[_0x581b01(0x141)]({'message':_0x381211[_0x581b01(0x148)]||_0x381211[_0x581b01(0x142)],'quickActionData':{'id':_0x381211['id'],'displayedPrompt':_0x381211[_0x581b01(0x142)]}});}[_0x23c013(0x157)](){const _0x593e86=_0x23c013,_0x557be3=this[_0x593e86(0x12e)],_0x498051=_0x557be3[_0x593e86(0x12d)][_0x593e86(0x159)][_0x593e86(0x13f)];if(!_0x498051[_0x593e86(0x14c)])return;const _0x2e41dd=_0x5d9bd4(_0x498051[_0x593e86(0x12c)]())||_0x557be3[_0x593e86(0x12d)][_0x593e86(0x128)][_0x593e86(0x151)](_0x498051);_0x557be3[_0x593e86(0x12d)][_0x593e86(0x144)](_0x2037ad=>{const _0x26e0bd=_0x593e86;_0x2037ad[_0x26e0bd(0x124)](_0x2e41dd,'in');});}[_0x23c013(0x139)](_0x74db50){const _0x227ecf=_0x23c013;return _0x74db50[_0x227ecf(0x14e)]?.[_0x227ecf(0x133)]&&_0x227ecf(0x158)!==_0x74db50[_0x227ecf(0x14e)]?.['id']?_0x74db50[_0x227ecf(0x14e)][_0x227ecf(0x133)]+':\x20'+_0x74db50[_0x227ecf(0x142)]:_0x74db50[_0x227ecf(0x142)];}async[_0x23c013(0x149)](_0x273055){const _0x28b0f0=_0x23c013,_0x53f5cd=this[_0x28b0f0(0x12e)][_0x28b0f0(0x138)][_0x28b0f0(0x13c)](_0x28b0f0(0x14b)),_0xdc1762=_0x273055[_0x28b0f0(0x148)]?{'userMessage':_0x273055[_0x28b0f0(0x148)],'model':_0x273055[_0x28b0f0(0x12d)]}:{'actionName':_0x273055[_0x28b0f0(0x13b)]||_0x273055['id'],'args':_0x273055[_0x28b0f0(0x135)]},_0x3eb9e6=this[_0x28b0f0(0x139)](_0x273055);await _0x53f5cd[_0x28b0f0(0x14a)](_0xdc1762,_0x3eb9e6,_0x273055[_0x28b0f0(0x137)]);}async[_0x23c013(0x13a)](_0x344878){const _0x4cff54=_0x23c013;console[_0x4cff54(0x153)](_0x4cff54(0x11f),_0x344878);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xcf3f(){const _0x2471ac=['commands','827138xdUFaB','2587196lMdyAj','560363PjLUBZ','AIChat','removeSelectionFromChatContext','selection','model','has','8hgBvxu','3946056enBZvK','AIQuickActionsEditing','isPremiumPlugin','pluginName','aiQuickAction','989570bVgtNu','add','change:range','isOfficialPlugin','2536331bZxpKX','document','init','editor','directChange','get','1144413eKTXdA','plugins'];_0xcf3f=function(){return _0x2471ac;};return _0xcf3f();}const _0x4ff4d=_0x133d;(function(_0x53df4b,_0x3e4527){const _0x222a2f=_0x133d,_0x2be43b=_0x53df4b();while(!![]){try{const _0x475dfa=-parseInt(_0x222a2f(0x171))/0x1+parseInt(_0x222a2f(0x16f))/0x2+parseInt(_0x222a2f(0x16c))/0x3+-parseInt(_0x222a2f(0x170))/0x4+-parseInt(_0x222a2f(0x17d))/0x5+parseInt(_0x222a2f(0x178))/0x6+-parseInt(_0x222a2f(0x181))/0x7*(-parseInt(_0x222a2f(0x177))/0x8);if(_0x475dfa===_0x3e4527)break;else _0x2be43b['push'](_0x2be43b['shift']());}catch(_0x5ebb94){_0x2be43b['push'](_0x2be43b['shift']());}}}(_0xcf3f,0x64175));import{Plugin as _0x360fe8}from'ckeditor5/src/core.js';function _0x133d(_0x4ff9d1,_0x30737e){const _0xcf3f62=_0xcf3f();return _0x133d=function(_0x133d6f,_0x54a246){_0x133d6f=_0x133d6f-0x167;let _0x42fb8f=_0xcf3f62[_0x133d6f];return _0x42fb8f;},_0x133d(_0x4ff9d1,_0x30737e);}import{AIQuickActionsCommand as _0x3a57fd}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x360fe8{static get[_0x4ff4d(0x17b)](){const _0xbe3101=_0x4ff4d;return _0xbe3101(0x179);}static get[_0x4ff4d(0x180)](){return!0x0;}static get[_0x4ff4d(0x17a)](){return!0x0;}[_0x4ff4d(0x168)](){const _0x27a8f5=_0x4ff4d,_0x33566f=this[_0x27a8f5(0x169)],_0x1ac4d4=new _0x3a57fd(this[_0x27a8f5(0x169)]);if(_0x33566f[_0x27a8f5(0x16e)][_0x27a8f5(0x17e)](_0x27a8f5(0x17c),_0x1ac4d4),_0x33566f[_0x27a8f5(0x16d)][_0x27a8f5(0x176)](_0x27a8f5(0x172))){const _0x207010=this[_0x27a8f5(0x169)][_0x27a8f5(0x16d)][_0x27a8f5(0x16b)](_0x27a8f5(0x172));_0x33566f[_0x27a8f5(0x175)][_0x27a8f5(0x167)][_0x27a8f5(0x174)]['on'](_0x27a8f5(0x17f),(_0x1f3fea,_0x48a3b6)=>{const _0x568030=_0x27a8f5;_0x48a3b6[_0x568030(0x16a)]&&_0x207010[_0x568030(0x173)]();});}}}
|
|
@@ -70,7 +70,7 @@ export declare class AIQuickActionsUI extends Plugin {
|
|
|
70
70
|
*
|
|
71
71
|
* @inheritDoc
|
|
72
72
|
*/
|
|
73
|
-
init(): void
|
|
73
|
+
init(): Promise<void>;
|
|
74
74
|
/**
|
|
75
75
|
* Returns the default quick actions configuration.
|
|
76
76
|
*
|
|
@@ -110,6 +110,10 @@ export type AIQuickActionsGroupDefinition = {
|
|
|
110
110
|
* its type to determine the execution interface (chat, balloon, or review).
|
|
111
111
|
*/
|
|
112
112
|
export type AIQuickActionDefinition = {
|
|
113
|
+
/**
|
|
114
|
+
* Whether the action is enabled.
|
|
115
|
+
*/
|
|
116
|
+
isEnabled?: boolean;
|
|
113
117
|
/**
|
|
114
118
|
* Unique identifier for the action.
|
|
115
119
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3a55d2=_0x15b7;(function(_0x1b2b4e,_0x7be002){const _0x454b6c=_0x15b7,_0x5579c7=_0x1b2b4e();while(!![]){try{const _0x2f8793=parseInt(_0x454b6c(0x162))/0x1*(-parseInt(_0x454b6c(0x196))/0x2)+-parseInt(_0x454b6c(0x1d1))/0x3*(-parseInt(_0x454b6c(0x1ad))/0x4)+parseInt(_0x454b6c(0x1c0))/0x5*(parseInt(_0x454b6c(0x1c8))/0x6)+parseInt(_0x454b6c(0x1a4))/0x7+-parseInt(_0x454b6c(0x1ec))/0x8+-parseInt(_0x454b6c(0x15c))/0x9*(-parseInt(_0x454b6c(0x1f3))/0xa)+-parseInt(_0x454b6c(0x1ef))/0xb*(parseInt(_0x454b6c(0x174))/0xc);if(_0x2f8793===_0x7be002)break;else _0x5579c7['push'](_0x5579c7['shift']());}catch(_0x1943ca){_0x5579c7['push'](_0x5579c7['shift']());}}}(_0x1756,0x9ad5b));import{IconAIAdjustLength as _0x539680,IconAIChangeTone as _0x45ffef,IconAIChatCommands as _0x2fa8ea,IconAIContinueWriting as _0x48c0ca,IconAIGrammarCheck as _0x374ef9,IconAIImproveWriting as _0x20a670,IconAIOther as _0x131f00,IconAIQuickActions as _0x26c7e6,IconAITranslate as _0x4724ea}from'@ckeditor/ckeditor5-icons';import{Plugin as _0xf7ba5b}from'ckeditor5/src/core.js';import{getTranslation as _0x272eba}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x21388e}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x5aae0a}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x36d1fe,BalloonToolbar as _0x32c798,MenuBarMenuView as _0x389b2b,MenuBarMenuListView as _0x5a2706,MenuBarMenuListItemView as _0x1b6c5e,MenuBarMenuListItemButtonView as _0x49ae8d}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x1756(){const _0x1e35e5=['AIChat','7144511zctiio','delegate','children','config','30mzkHma','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','make-tone-direct','1825713IdkKHf','translate-to-french','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_MAKE_LONGER','find','translate-to-korean','59449HyFLVb','ACTION','_quickActionsDefinition','ai.quickActions.removeCommands','fix-grammar','add','editor','English','spanish','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','panelView','AI_QUICK_ACTIONS_IMPROVE_WRITING','translate-to-portuguese','_getDefaultAndCustomActions','locale','actions','other','AI_QUICK_ACTIONS_ASK_AI','12vXTWwv','execute','filter','AI_QUICK_ACTIONS_ADJUST_LENGTH','chinese','requires','ask-ai','translate-to-german','AIActions','displayedPrompt','AI_QUICK_ACTIONS_TRANSLATE','map','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','translate-to-russian','REVIEW','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','values','<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>','type','has','AI_QUICK_ACTIONS_HEADING','label','plugins','AI_QUICK_ACTIONS_OTHER','translate','AI_QUICK_ACTIONS_CHAT_COMMANDS','japanese','_initializeQuickActionsComponents','replace','make-tone-casual','_prepareQuickActionsDefinition','korean','26zvEZRI','chat-commands','AI_QUICK_ACTIONS_CONTINUE_WRITING','push','summarize','language','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','translate-to-chinese','AIReviewMode','improve-writing','menuBar:aiQuickActions','make-tone-confident','includes','pluginName','5095972AGFPQo','CHAT','make-tone-professional','english','AI_QUICK_ACTIONS_MORE_CONFIDENT','translate-to-japanese','change-tone','icon','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','20652NuCXVp','explain','<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_TRANSLATE_FRENCH','init','DisplayNames','translate-to-spanish','AI_QUICK_ACTIONS_MORE_DIRECT','some','adjust-length','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','uiLanguage','commands','AI_QUICK_ACTIONS_CHANGE_TONE','componentFactory','_initializeQuickActionsDropdown','continue','french','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','385435pXxvcW','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','menu','getDefaultQuickActions','<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>','view','AIQuickActionsUI','forEach','78afzmBV','AI_QUICK_ACTIONS_MAKE_SHORTER','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','isPremiumPlugin','editing','attachToDom','_shouldIncludeAction','menuitem','456kzzzTA','AI_QUICK_ACTIONS_SUMMARIZE','make-shorter','ai.quickActions.extraCommands','german','AI_QUICK_ACTIONS_EXPLAIN','russian','buttonView','items','get','translate-to-italian','translate-to-english','menuBarView','portuguese','italian','highlight-key-points','_initializeQuickActionsMenuBar','focus','_executeQuickAction','isOfficialPlugin','close','make-tone-friendly','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','make-longer','length','aiQuickAction','aiQuickActions','8535464IPZoGn','set'];_0x1756=function(){return _0x1e35e5;};return _0x1756();}const oe=_0x3a55d2(0x1af),ae=_0x3a55d2(0x1c4),se=_0x3a55d2(0x187);export var AIQuickActionType;!function(_0x43a4ed){const _0x2b4316=_0x3a55d2;_0x43a4ed[_0x2b4316(0x1a5)]=_0x2b4316(0x1a5),_0x43a4ed[_0x2b4316(0x163)]=_0x2b4316(0x163),_0x43a4ed[_0x2b4316(0x184)]=_0x2b4316(0x184);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x53b533){const _0x4e8aea=_0x3a55d2;_0x53b533[_0x4e8aea(0x1a5)]=_0x4e8aea(0x1ee),_0x53b533[_0x4e8aea(0x163)]=_0x4e8aea(0x17c),_0x53b533[_0x4e8aea(0x184)]=_0x4e8aea(0x19e);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));function _0x15b7(_0x41af12,_0x2ed94c){const _0x175666=_0x1756();return _0x15b7=function(_0x15b715,_0x528017){_0x15b715=_0x15b715-0x15a;let _0x20e8ee=_0x175666[_0x15b715];return _0x20e8ee;},_0x15b7(_0x41af12,_0x2ed94c);}export class AIQuickActionsUI extends _0xf7ba5b{static get[_0x3a55d2(0x179)](){return[_0x32c798];}static get[_0x3a55d2(0x1a3)](){const _0x40749b=_0x3a55d2;return _0x40749b(0x1c6);}static get[_0x3a55d2(0x1e4)](){return!0x0;}static get[_0x3a55d2(0x1cc)](){return!0x0;}[_0x3a55d2(0x1b1)](){const _0x9e490d=_0x3a55d2;this[_0x9e490d(0x194)](this[_0x9e490d(0x16f)]()),this[_0x9e490d(0x180)]();}static[_0x3a55d2(0x1c3)](_0x5e6124){return function(_0xd0ddcd){const _0x40a787=_0x15b7,_0x425219=new Intl[(_0x40a787(0x1b2))](['en'],{'type':_0x40a787(0x19b)})['of'](_0xd0ddcd[_0x40a787(0x1b8)]),_0x24016a=_0x425219||_0x40a787(0x169),_0x410cc8=[{'id':_0x40a787(0x17a),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x173)),'type':AIQuickActionType[_0x40a787(0x1a5)],'icon':_0x2fa8ea},{'id':_0x40a787(0x197),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x18f)),'icon':_0x2fa8ea,'actions':[{'id':_0x40a787(0x1ae),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1d6)),'prompt':oe[_0x40a787(0x192)]('%0',_0x24016a),'type':AIQuickActionType[_0x40a787(0x1a5)]},{'id':_0x40a787(0x19a),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1d2)),'prompt':ae[_0x40a787(0x192)]('%0',_0x24016a),'type':AIQuickActionType[_0x40a787(0x1a5)]},{'id':_0x40a787(0x1e0),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x16b)),'prompt':se[_0x40a787(0x192)]('%0',_0x24016a),'type':AIQuickActionType[_0x40a787(0x1a5)]}]},{'id':_0x40a787(0x19f),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x16d)),'type':AIQuickActionType[_0x40a787(0x163)],'icon':_0x20a670},{'id':_0x40a787(0x1bd),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x198)),'type':AIQuickActionType[_0x40a787(0x163)],'icon':_0x48c0ca},{'id':_0x40a787(0x166),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1c1)),'type':AIQuickActionType[_0x40a787(0x163)],'icon':_0x374ef9},{'id':_0x40a787(0x1b6),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x177)),'icon':_0x539680,'actions':[{'id':_0x40a787(0x1d3),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1c9)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1e8),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x15f)),'type':AIQuickActionType[_0x40a787(0x163)]}]},{'id':_0x40a787(0x1aa),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x1ba)),'icon':_0x45ffef,'actions':[{'id':_0x40a787(0x193),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x15e)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x15b),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1b4)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1e6),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x181)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1a1),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1a8)),'type':AIQuickActionType[_0x40a787(0x163)]},{'id':_0x40a787(0x1a6),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x182)),'type':AIQuickActionType[_0x40a787(0x163)]}]},{'id':_0x40a787(0x18e),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x17e)),'icon':_0x4724ea,'actions':[{'id':_0x40a787(0x1dc),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1e7)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1a7)}},{'id':_0x40a787(0x19d),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1ca)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x178)}},{'id':_0x40a787(0x1b3),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1ac)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x16a)}},{'id':_0x40a787(0x17b),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x15a)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1d5)}},{'id':_0x40a787(0x15d),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1b0)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1be)}},{'id':_0x40a787(0x1a9),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1cb)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x190)}},{'id':_0x40a787(0x16e),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x185)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1de)}},{'id':_0x40a787(0x161),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1b7)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x195)}},{'id':_0x40a787(0x1db),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x1bf)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1df)}},{'id':_0x40a787(0x183),'displayedPrompt':_0x272eba(_0xd0ddcd,_0x40a787(0x19c)),'type':AIQuickActionType[_0x40a787(0x163)],'actionName':_0x40a787(0x18e),'args':{'language':_0x40a787(0x1d7)}}]},{'id':_0x40a787(0x172),'label':_0x272eba(_0xd0ddcd,_0x40a787(0x18d)),'icon':_0x131f00,'actions':[]}];return _0x410cc8;}(_0x5e6124);}[_0x3a55d2(0x16f)](){const _0x568e10=_0x3a55d2,_0x5233af=AIQuickActionsUI[_0x568e10(0x1c3)](this[_0x568e10(0x168)][_0x568e10(0x170)]),_0x34c636=(this[_0x568e10(0x168)][_0x568e10(0x1f2)][_0x568e10(0x1da)](_0x568e10(0x1d4))||[])[_0x568e10(0x17f)](_0x55e04d=>({..._0x55e04d,'icon':void 0x0}));return _0x5233af[_0x568e10(0x160)](_0x4f1043=>_0x568e10(0x172)===_0x4f1043['id'])[_0x568e10(0x171)][_0x568e10(0x199)](..._0x34c636),_0x5233af;}[_0x3a55d2(0x180)](){const _0x388573=_0x3a55d2,_0x2130c1=new _0x36d1fe(this[_0x388573(0x168)][_0x388573(0x170)]);_0x2130c1[_0x388573(0x1ce)](),this[_0x388573(0x1bc)](_0x2130c1),this[_0x388573(0x1e1)](),this[_0x388573(0x191)](_0x2130c1);}[_0x3a55d2(0x1bc)](_0x1729d2){const _0x922c53=_0x3a55d2;this[_0x922c53(0x168)]['ui'][_0x922c53(0x1bb)][_0x922c53(0x167)](_0x922c53(0x1eb),_0x21388e(this[_0x922c53(0x168)],this[_0x922c53(0x164)],{'icon':_0x26c7e6,'label':_0x272eba(this[_0x922c53(0x168)][_0x922c53(0x170)],_0x922c53(0x18a))},_0x1729d2));}[_0x3a55d2(0x194)](_0xfa7f23){const _0x455547=_0x3a55d2;this[_0x455547(0x164)]=_0xfa7f23[_0x455547(0x17f)](_0x52def8=>{const _0x3c5fb6=_0x455547;if(_0x3c5fb6(0x171)in _0x52def8){const _0x4c39e7=_0x52def8;return{..._0x4c39e7,'actions':_0x4c39e7[_0x3c5fb6(0x171)][_0x3c5fb6(0x17f)](_0x28e53a=>{const {actions:_0x96de30,..._0x436ad0}=_0x4c39e7;return{..._0x28e53a,'parent':_0x436ad0};})[_0x3c5fb6(0x176)](_0x29b470=>this[_0x3c5fb6(0x1cf)](_0x29b470))};}return _0x52def8;})[_0x455547(0x176)](_0x2248c1=>_0x455547(0x171)in _0x2248c1?_0x2248c1[_0x455547(0x171)][_0x455547(0x1e9)]>0x0:this[_0x455547(0x1cf)](_0x2248c1));}[_0x3a55d2(0x1cf)](_0x31335a){const _0x4cca4f=_0x3a55d2,_0xec7333=this[_0x4cca4f(0x168)][_0x4cca4f(0x1f2)][_0x4cca4f(0x1da)](_0x4cca4f(0x165))||[];return this[_0x4cca4f(0x168)][_0x4cca4f(0x18c)][_0x4cca4f(0x189)](AIQuickActionTypeToPluginName[_0x31335a[_0x4cca4f(0x188)]])&&!_0xec7333[_0x4cca4f(0x1a2)](_0x31335a['id']);}[_0x3a55d2(0x191)](_0x1db020){const _0x2d8c80=_0x3a55d2;this[_0x2d8c80(0x164)][_0x2d8c80(0x1c7)](_0x49c44f=>{const _0x30ed34=_0x2d8c80;if(_0x30ed34(0x171)in _0x49c44f){const _0x16cd97=_0x21388e(this[_0x30ed34(0x168)],_0x49c44f[_0x30ed34(0x171)],_0x49c44f,_0x1db020);this[_0x30ed34(0x168)]['ui'][_0x30ed34(0x1bb)][_0x30ed34(0x167)](_0x49c44f['id'],_0x16cd97),_0x49c44f[_0x30ed34(0x171)][_0x30ed34(0x1c7)](_0x5b76a8=>{const _0x512fef=_0x30ed34,_0x40daaf=_0x5aae0a(this[_0x512fef(0x168)],_0x5b76a8);this[_0x512fef(0x168)]['ui'][_0x512fef(0x1bb)][_0x512fef(0x167)](_0x5b76a8['id'],_0x40daaf);});}else{const _0x25e1bd=_0x5aae0a(this[_0x30ed34(0x168)],_0x49c44f,!0x1,!0x0,!0x1);this[_0x30ed34(0x168)]['ui'][_0x30ed34(0x1bb)][_0x30ed34(0x167)](_0x49c44f['id'],_0x25e1bd);}});}[_0x3a55d2(0x1e1)](){const _0x4474da=_0x3a55d2;this[_0x4474da(0x168)]['ui'][_0x4474da(0x1bb)][_0x4474da(0x167)](_0x4474da(0x1a0),_0x170bb5=>{const _0x5e8ffa=_0x4474da,_0x53ee67=new _0x389b2b(_0x170bb5),_0xc3e92a=_0x272eba(_0x170bb5,_0x5e8ffa(0x18a));_0x53ee67[_0x5e8ffa(0x1d8)][_0x5e8ffa(0x1ed)]({'label':_0xc3e92a,'icon':_0x26c7e6});const _0x5cd4f1=new _0x5a2706(_0x170bb5);_0x5cd4f1[_0x5e8ffa(0x1ed)]({'ariaLabel':_0xc3e92a,'role':_0x5e8ffa(0x1c2)}),this[_0x5e8ffa(0x164)][_0x5e8ffa(0x1c7)](_0xaa6ba1=>{const _0x298323=_0x5e8ffa;if(_0x298323(0x171)in _0xaa6ba1){const _0x2ef90c=_0xaa6ba1,_0x67e6d0=new _0x1b6c5e(_0x170bb5,_0x53ee67),_0x2ba99f=new _0x389b2b(_0x170bb5),_0x14e5d1=new _0x5a2706(_0x170bb5);_0x2ba99f[_0x298323(0x1d8)][_0x298323(0x1ed)]({'label':_0x2ef90c[_0x298323(0x18b)],'icon':_0x2ef90c[_0x298323(0x1ab)]}),_0x2ef90c[_0x298323(0x171)][_0x298323(0x1c7)](_0x611985=>{const _0x57ec3a=_0x298323,_0x25cb1c=new _0x1b6c5e(_0x170bb5,_0x2ba99f),_0x550c0c=new _0x49ae8d(_0x170bb5);_0x550c0c[_0x57ec3a(0x1ed)]({'label':_0x611985[_0x57ec3a(0x17d)],'icon':_0x611985[_0x57ec3a(0x1ab)],'role':_0x57ec3a(0x1d0)}),_0x550c0c['on'](_0x57ec3a(0x175),()=>{const _0x1e3b4f=_0x57ec3a;this[_0x1e3b4f(0x1e3)](_0x611985);}),_0x550c0c[_0x57ec3a(0x1f0)](_0x57ec3a(0x175))['to'](_0x2ba99f),_0x25cb1c[_0x57ec3a(0x1f1)][_0x57ec3a(0x167)](_0x550c0c),_0x14e5d1[_0x57ec3a(0x1d9)][_0x57ec3a(0x167)](_0x25cb1c);}),_0x2ba99f[_0x298323(0x16c)][_0x298323(0x1f1)][_0x298323(0x167)](_0x14e5d1),_0x67e6d0[_0x298323(0x1f1)][_0x298323(0x167)](_0x2ba99f),_0x5cd4f1[_0x298323(0x1d9)][_0x298323(0x167)](_0x67e6d0);}else{const _0xe46c35=_0xaa6ba1,_0x45b536=new _0x1b6c5e(_0x170bb5,_0x53ee67),_0x5ec101=new _0x49ae8d(_0x170bb5);_0x5ec101[_0x298323(0x1ed)]({'label':_0xe46c35[_0x298323(0x17d)],'icon':_0xe46c35[_0x298323(0x1ab)],'role':_0x298323(0x1d0)}),_0x5ec101['on'](_0x298323(0x175),()=>{const _0x12e971=_0x298323;this[_0x12e971(0x1e3)](_0xe46c35);}),_0x5ec101[_0x298323(0x1f0)](_0x298323(0x175))['to'](_0x53ee67),_0x45b536[_0x298323(0x1f1)][_0x298323(0x167)](_0x5ec101),_0x5cd4f1[_0x298323(0x1d9)][_0x298323(0x167)](_0x45b536);}});const _0xe22a68=Object[_0x5e8ffa(0x186)](AIQuickActionTypeToPluginName)[_0x5e8ffa(0x1b5)](_0x5c203d=>this[_0x5e8ffa(0x168)][_0x5e8ffa(0x18c)][_0x5e8ffa(0x189)](_0x5c203d));return _0x53ee67[_0x5e8ffa(0x1ed)]({'isEnabled':_0xe22a68}),_0x53ee67[_0x5e8ffa(0x16c)][_0x5e8ffa(0x1f1)][_0x5e8ffa(0x167)](_0x5cd4f1),_0x53ee67;});}[_0x3a55d2(0x1e3)](_0x167d64){const _0x5c21f2=_0x3a55d2,_0x1741b2=this[_0x5c21f2(0x168)];_0x1741b2[_0x5c21f2(0x1cd)][_0x5c21f2(0x1c5)][_0x5c21f2(0x1e2)](),_0x1741b2[_0x5c21f2(0x1b9)][_0x5c21f2(0x175)](_0x5c21f2(0x1ea),_0x167d64);const _0x3a28bb=_0x1741b2['ui'][_0x5c21f2(0x1c5)][_0x5c21f2(0x1dd)];_0x3a28bb&&_0x3a28bb[_0x5c21f2(0x1e5)]&&_0x3a28bb[_0x5c21f2(0x1e5)]();}}
|
|
23
|
+
const _0x18d6f2=_0x4c77;(function(_0x1300a5,_0x2311bf){const _0x47ae03=_0x4c77,_0x3f3d47=_0x1300a5();while(!![]){try{const _0x2f7a14=-parseInt(_0x47ae03(0x199))/0x1+-parseInt(_0x47ae03(0x130))/0x2*(parseInt(_0x47ae03(0x13d))/0x3)+parseInt(_0x47ae03(0x129))/0x4*(-parseInt(_0x47ae03(0x170))/0x5)+-parseInt(_0x47ae03(0x143))/0x6*(parseInt(_0x47ae03(0x1bb))/0x7)+-parseInt(_0x47ae03(0x12b))/0x8*(parseInt(_0x47ae03(0x13e))/0x9)+parseInt(_0x47ae03(0x1a6))/0xa*(parseInt(_0x47ae03(0x127))/0xb)+parseInt(_0x47ae03(0x15d))/0xc;if(_0x2f7a14===_0x2311bf)break;else _0x3f3d47['push'](_0x3f3d47['shift']());}catch(_0x20b639){_0x3f3d47['push'](_0x3f3d47['shift']());}}}(_0xb336,0x50350));import{IconAIAdjustLength as _0x5e07e5,IconAIChangeTone as _0x440b34,IconAIChatCommands as _0x5697c8,IconAIContinueWriting as _0x72af25,IconAIGrammarCheck as _0x35a717,IconAIImproveWriting as _0x4472d7,IconAIOther as _0x56c4ea,IconAIQuickActions as _0xe48d07,IconAITranslate as _0x2b7366}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x306d72}from'ckeditor5/src/core.js';function _0xb336(){const _0x471ae5=['close','ACTION','language','make-longer','AI_QUICK_ACTIONS_MORE_DIRECT','chat-commands','_prepareQuickActionsDefinition','spanish','displayedPrompt','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','editing','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','AIConnector','ai.quickActions.removeCommands','67361taYhDE','AI_QUICK_ACTIONS_HEADING','model','AI_QUICK_ACTIONS_OTHER','get','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','ask-ai','ai-quick-actions-unavailable-model','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','translate-to-spanish','translate-to-russian','uiLanguage','translate-to-korean','korean','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','562628LPhcUt','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','1736wpZZgo','translate-to-french','16FTQlQo','make-tone-friendly','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','config','AIActions','93098uAQwzg','actions','requires','items','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','summarize','explain','push','ai.quickActions.extraCommands','menuBar:aiQuickActions','find','icon','42kEDAAP','1885491ygNEag','getAvailableModels','length','buttonView','fix-grammar','84mRwwlk','componentFactory','focus','french','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_MAKE_SHORTER','change-tone','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','add','_initializeQuickActionsMenuBar','CHAT','values','aiQuickAction','ai.chat.models.displayedModels','make-tone-direct','ai.quickActions.isSearchEnabled','translate-to-italian','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','label','AI_QUICK_ACTIONS_MAKE_LONGER','_executeQuickAction','portuguese','AIChat','<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>','russian','AI_QUICK_ACTIONS_ADJUST_LENGTH','22131600yFYsDM','AIQuickActionsUI','pluginName','init','attachToDom','AI_QUICK_ACTIONS_EXPLAIN','replace','map','isOfficialPlugin','chinese','locale','some','includes','ai-quick-actions-models-unable-to-retrieve','isPremiumPlugin','translate-to-portuguese','forEach','translate-to-german','other','465BCHOLA','<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>','menuBarView','menuitem','italian','continue','has','_initializeQuickActionsDropdown','_initializeQuickActionsComponents','panelView','adjust-length','AI_QUICK_ACTIONS_MORE_CONFIDENT','translate','_shouldIncludeAction','translate-to-english','english','DisplayNames','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','message','REVIEW','AI_QUICK_ACTIONS_CHANGE_TONE','make-tone-professional','AI_QUICK_ACTIONS_MORE_CASUAL','translate-to-chinese','highlight-key-points','_getDefaultAndCustomActions','commands','isEnabled','AI_QUICK_ACTIONS_IMPROVE_WRITING','view','filter','make-shorter','aiQuickActions','set','translate-to-japanese','getDefaultQuickActions','_quickActionsDefinition','type','AI_QUICK_ACTIONS_CHAT_COMMANDS','children','make-tone-casual','628040QBzmwv','AI_QUICK_ACTIONS_SUMMARIZE','execute','AI_QUICK_ACTIONS_TRANSLATE','AI_QUICK_ACTIONS_CONTINUE_WRITING','editor','make-tone-confident','improve-writing','japanese','menu','plugins','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AIReviewMode','70gCHxHC','English','AI_QUICK_ACTIONS_ASK_AI','german','delegate','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_TRANSLATE_GERMAN'];_0xb336=function(){return _0x471ae5;};return _0xb336();}import{CKEditorError as _0x1cb560,logError as _0x1100f7}from'ckeditor5/src/utils.js';import{getTranslation as _0x1838b5}from'../aicore/utils/common-translations.js';function _0x4c77(_0x35e307,_0x657a15){const _0xb336a5=_0xb336();return _0x4c77=function(_0x4c77c4,_0x10b9b8){_0x4c77c4=_0x4c77c4-0x119;let _0x4bc4b3=_0xb336a5[_0x4c77c4];return _0x4bc4b3;},_0x4c77(_0x35e307,_0x657a15);}import{aiQuickActionsDropdownCreator as _0x1f0b39}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x3b6d80}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x4286d4,BalloonToolbar as _0x26bb4b,MenuBarMenuView as _0x444aef,MenuBarMenuListView as _0x3b1ee1,MenuBarMenuListItemView as _0x512ad0,MenuBarMenuListItemButtonView as _0x352ff8}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0xfde2ac}from'../aicore/model/aimodels.js';const ae=_0x18d6f2(0x15a),se=_0x18d6f2(0x126),re=_0x18d6f2(0x171);export var AIQuickActionType;!function(_0x545079){const _0x3cd278=_0x18d6f2;_0x545079[_0x3cd278(0x14d)]=_0x3cd278(0x14d),_0x545079[_0x3cd278(0x1ae)]=_0x3cd278(0x1ae),_0x545079[_0x3cd278(0x183)]=_0x3cd278(0x183);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x3dae20){const _0x21eade=_0x18d6f2;_0x3dae20[_0x21eade(0x14d)]=_0x21eade(0x159),_0x3dae20[_0x21eade(0x1ae)]=_0x21eade(0x12f),_0x3dae20[_0x21eade(0x183)]=_0x21eade(0x1a5);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x306d72{static get[_0x18d6f2(0x132)](){return[_0x26bb4b];}static get[_0x18d6f2(0x15f)](){const _0x2cd67d=_0x18d6f2;return _0x2cd67d(0x15e);}static get[_0x18d6f2(0x165)](){return!0x0;}static get[_0x18d6f2(0x16b)](){return!0x0;}async[_0x18d6f2(0x160)](){const _0x2f9089=_0x18d6f2,_0x418b4b=await this[_0x2f9089(0x189)]();this[_0x2f9089(0x1b3)](_0x418b4b),this[_0x2f9089(0x134)]();}static[_0x18d6f2(0x193)](_0x34ce83){return function(_0x35f76d){const _0x224c59=_0x4c77,_0x134ccb=new Intl[(_0x224c59(0x180))](['en'],{'type':_0x224c59(0x1af)})['of'](_0x35f76d[_0x224c59(0x123)]),_0x32d7ff=_0x134ccb||_0x224c59(0x1a7),_0x5081b6=[{'id':_0x224c59(0x11e),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1a8)),'type':AIQuickActionType[_0x224c59(0x14d)],'icon':_0x5697c8},{'id':_0x224c59(0x1b2),'label':_0x1838b5(_0x35f76d,_0x224c59(0x196)),'icon':_0x5697c8,'actions':[{'id':_0x224c59(0x137),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x162)),'prompt':ae[_0x224c59(0x163)]('%0',_0x32d7ff),'type':AIQuickActionType[_0x224c59(0x14d)]},{'id':_0x224c59(0x136),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x19a)),'prompt':se[_0x224c59(0x163)]('%0',_0x32d7ff),'type':AIQuickActionType[_0x224c59(0x14d)]},{'id':_0x224c59(0x188),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1b6)),'prompt':re[_0x224c59(0x163)]('%0',_0x32d7ff),'type':AIQuickActionType[_0x224c59(0x14d)]}]},{'id':_0x224c59(0x1a0),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x18c)),'type':AIQuickActionType[_0x224c59(0x1ae)],'icon':_0x4472d7},{'id':_0x224c59(0x175),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x19d)),'type':AIQuickActionType[_0x224c59(0x1ae)],'icon':_0x72af25},{'id':_0x224c59(0x142),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1ab)),'type':AIQuickActionType[_0x224c59(0x1ae)],'icon':_0x35a717},{'id':_0x224c59(0x17a),'label':_0x1838b5(_0x35f76d,_0x224c59(0x15c)),'icon':_0x5e07e5,'actions':[{'id':_0x224c59(0x18f),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x148)),'type':AIQuickActionType[_0x224c59(0x1ae)]},{'id':_0x224c59(0x1b0),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x156)),'type':AIQuickActionType[_0x224c59(0x1ae)]}]},{'id':_0x224c59(0x149),'label':_0x1838b5(_0x35f76d,_0x224c59(0x184)),'icon':_0x440b34,'actions':[{'id':_0x224c59(0x198),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x186)),'type':AIQuickActionType[_0x224c59(0x1ae)]},{'id':_0x224c59(0x151),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1b1)),'type':AIQuickActionType[_0x224c59(0x1ae)]},{'id':_0x224c59(0x12c),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x147)),'type':AIQuickActionType[_0x224c59(0x1ae)]},{'id':_0x224c59(0x19f),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x17b)),'type':AIQuickActionType[_0x224c59(0x1ae)]},{'id':_0x224c59(0x185),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x128)),'type':AIQuickActionType[_0x224c59(0x1ae)]}]},{'id':_0x224c59(0x17c),'label':_0x1838b5(_0x35f76d,_0x224c59(0x19c)),'icon':_0x2b7366,'actions':[{'id':_0x224c59(0x17e),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1b8)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x17f)}},{'id':_0x224c59(0x187),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x14a)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x166)}},{'id':_0x224c59(0x121),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x154)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x1b4)}},{'id':_0x224c59(0x16e),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1ac)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x1a9)}},{'id':_0x224c59(0x12a),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x120)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x146)}},{'id':_0x224c59(0x192),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x12d)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x1a1)}},{'id':_0x224c59(0x16c),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x1a4)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x158)}},{'id':_0x224c59(0x124),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x181)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x125)}},{'id':_0x224c59(0x153),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x11d)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x174)}},{'id':_0x224c59(0x122),'displayedPrompt':_0x1838b5(_0x35f76d,_0x224c59(0x135)),'type':AIQuickActionType[_0x224c59(0x1ae)],'actionName':_0x224c59(0x17c),'args':{'language':_0x224c59(0x15b)}}]},{'id':_0x224c59(0x16f),'label':_0x1838b5(_0x35f76d,_0x224c59(0x11b)),'icon':_0x56c4ea,'actions':[]}];return _0x5081b6;}(_0x34ce83);}async[_0x18d6f2(0x189)](){const _0x3b35e8=_0x18d6f2,_0x19846c=AIQuickActionsUI[_0x3b35e8(0x193)](this[_0x3b35e8(0x19e)][_0x3b35e8(0x167)]),_0x59d703=this[_0x3b35e8(0x19e)][_0x3b35e8(0x12e)][_0x3b35e8(0x11c)](_0x3b35e8(0x139))||[];let _0x359226=[];try{_0x359226=await new _0xfde2ac({'connector':this[_0x3b35e8(0x19e)][_0x3b35e8(0x1a3)][_0x3b35e8(0x11c)](_0x3b35e8(0x1b9)),'availableModels':this[_0x3b35e8(0x19e)][_0x3b35e8(0x12e)][_0x3b35e8(0x11c)](_0x3b35e8(0x150))})[_0x3b35e8(0x13f)]();}catch(_0x1b9444){const _0x165854=new _0x1cb560(_0x3b35e8(0x16a),this,{'error':_0x1b9444});_0x1100f7(_0x165854[_0x3b35e8(0x182)]);}finally{const _0x217b67=_0x59d703[_0x3b35e8(0x164)](_0x4db3f0=>({..._0x4db3f0,'icon':void 0x0}));_0x19846c[_0x3b35e8(0x13b)](_0x270cc5=>_0x3b35e8(0x16f)===_0x270cc5['id'])[_0x3b35e8(0x131)][_0x3b35e8(0x138)](..._0x217b67),_0x19846c[_0x3b35e8(0x16d)](_0x32bc75=>{const _0x4d70cd=_0x3b35e8;if(_0x4d70cd(0x131)in _0x32bc75)_0x32bc75[_0x4d70cd(0x131)][_0x4d70cd(0x16d)](_0x3167fd=>{const _0x2017d4=_0x4d70cd;if(_0x3167fd[_0x2017d4(0x18b)]=!!_0x359226[_0x2017d4(0x13b)](_0x22313e=>_0x22313e['id']===_0x3167fd[_0x2017d4(0x11a)])||void 0x0===_0x3167fd[_0x2017d4(0x11a)],!_0x3167fd[_0x2017d4(0x18b)]){const _0x2bda91=new _0x1cb560(_0x2017d4(0x11f),this,{'actionId':_0x3167fd['id'],'modelId':_0x3167fd[_0x2017d4(0x11a)]});_0x1100f7(_0x2bda91[_0x2017d4(0x182)]);}});else{if(_0x32bc75[_0x4d70cd(0x18b)]=!!_0x359226[_0x4d70cd(0x13b)](_0x34c6cf=>_0x34c6cf['id']===_0x32bc75[_0x4d70cd(0x11a)])||void 0x0===_0x32bc75[_0x4d70cd(0x11a)],!_0x32bc75[_0x4d70cd(0x18b)]){const _0x2eb53b=new _0x1cb560(_0x4d70cd(0x11f),this,{'actionId':_0x32bc75['id'],'modelId':_0x32bc75[_0x4d70cd(0x11a)]});_0x1100f7(_0x2eb53b[_0x4d70cd(0x182)]);}}});}return _0x19846c;}[_0x18d6f2(0x134)](){const _0x4ac9ba=_0x18d6f2,_0x56b9d8=new _0x4286d4(this[_0x4ac9ba(0x19e)][_0x4ac9ba(0x167)]);_0x56b9d8[_0x4ac9ba(0x161)](),this[_0x4ac9ba(0x177)](_0x56b9d8),this[_0x4ac9ba(0x14c)](),this[_0x4ac9ba(0x178)](_0x56b9d8);}[_0x18d6f2(0x177)](_0x356b3f){const _0x323950=_0x18d6f2,_0x51d7b0=this[_0x323950(0x19e)][_0x323950(0x12e)][_0x323950(0x11c)](_0x323950(0x152))??!0x0;this[_0x323950(0x19e)]['ui'][_0x323950(0x144)][_0x323950(0x14b)](_0x323950(0x190),_0x1f0b39({'editor':this[_0x323950(0x19e)],'content':this[_0x323950(0x194)],'buttonDefinition':{'icon':_0xe48d07,'label':_0x1838b5(this[_0x323950(0x19e)][_0x323950(0x167)],_0x323950(0x119))},'bodyCollection':_0x356b3f,'hasSearch':_0x51d7b0}));}[_0x18d6f2(0x1b3)](_0x507352){const _0x298353=_0x18d6f2;this[_0x298353(0x194)]=_0x507352[_0x298353(0x164)](_0x1f00cf=>{const _0x50dedf=_0x298353;if(_0x50dedf(0x131)in _0x1f00cf){const _0x2e8c49=_0x1f00cf;return{..._0x2e8c49,'actions':_0x2e8c49[_0x50dedf(0x131)][_0x50dedf(0x164)](_0x17139=>{const {actions:_0x263e0c,..._0x5ba718}=_0x2e8c49;return{..._0x17139,'parent':_0x5ba718};})[_0x50dedf(0x18e)](_0x54a80b=>this[_0x50dedf(0x17d)](_0x54a80b))};}return _0x1f00cf;})[_0x298353(0x18e)](_0x328d40=>_0x298353(0x131)in _0x328d40?_0x328d40[_0x298353(0x131)][_0x298353(0x140)]>0x0:this[_0x298353(0x17d)](_0x328d40));}[_0x18d6f2(0x17d)](_0x14c133){const _0x40651b=_0x18d6f2,_0xa79c70=this[_0x40651b(0x19e)][_0x40651b(0x12e)][_0x40651b(0x11c)](_0x40651b(0x1ba))||[];return this[_0x40651b(0x19e)][_0x40651b(0x1a3)][_0x40651b(0x176)](AIQuickActionTypeToPluginName[_0x14c133[_0x40651b(0x195)]])&&!_0xa79c70[_0x40651b(0x169)](_0x14c133['id']);}[_0x18d6f2(0x178)](_0x135c96){const _0x5ef403=_0x18d6f2;this[_0x5ef403(0x194)][_0x5ef403(0x16d)](_0x302777=>{const _0x24aaa6=_0x5ef403;if(_0x24aaa6(0x131)in _0x302777){const _0x596332=_0x1f0b39({'editor':this[_0x24aaa6(0x19e)],'content':_0x302777[_0x24aaa6(0x131)],'buttonDefinition':_0x302777,'bodyCollection':_0x135c96});this[_0x24aaa6(0x19e)]['ui'][_0x24aaa6(0x144)][_0x24aaa6(0x14b)](_0x302777['id'],_0x596332),_0x302777[_0x24aaa6(0x131)][_0x24aaa6(0x16d)](_0x51c6ef=>{const _0x362c88=_0x24aaa6,_0x34b5d9=_0x3b6d80({'editor':this[_0x362c88(0x19e)],'action':_0x51c6ef});this[_0x362c88(0x19e)]['ui'][_0x362c88(0x144)][_0x362c88(0x14b)](_0x51c6ef['id'],_0x34b5d9);});}else{const _0x302067=_0x3b6d80({'editor':this[_0x24aaa6(0x19e)],'action':_0x302777,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x24aaa6(0x19e)]['ui'][_0x24aaa6(0x144)][_0x24aaa6(0x14b)](_0x302777['id'],_0x302067);}});}[_0x18d6f2(0x14c)](){const _0x9b21dd=_0x18d6f2;this[_0x9b21dd(0x19e)]['ui'][_0x9b21dd(0x144)][_0x9b21dd(0x14b)](_0x9b21dd(0x13a),_0x3c846c=>{const _0x19ae63=_0x9b21dd,_0x42a2e0=new _0x444aef(_0x3c846c),_0x58b62b=_0x1838b5(_0x3c846c,_0x19ae63(0x119));_0x42a2e0[_0x19ae63(0x141)][_0x19ae63(0x191)]({'label':_0x58b62b,'icon':_0xe48d07});const _0x1206e7=new _0x3b1ee1(_0x3c846c);_0x1206e7[_0x19ae63(0x191)]({'ariaLabel':_0x58b62b,'role':_0x19ae63(0x1a2)}),this[_0x19ae63(0x194)][_0x19ae63(0x16d)](_0x1f751a=>{const _0x4210f5=_0x19ae63;if(_0x4210f5(0x131)in _0x1f751a){const _0x11fc21=_0x1f751a,_0x12f7b1=new _0x512ad0(_0x3c846c,_0x42a2e0),_0x3d9c92=new _0x444aef(_0x3c846c),_0x501ed6=new _0x3b1ee1(_0x3c846c);_0x3d9c92[_0x4210f5(0x141)][_0x4210f5(0x191)]({'label':_0x11fc21[_0x4210f5(0x155)],'icon':_0x11fc21[_0x4210f5(0x13c)]}),_0x11fc21[_0x4210f5(0x131)][_0x4210f5(0x16d)](_0x1bea3f=>{const _0x1ece47=_0x4210f5,_0x542889=new _0x512ad0(_0x3c846c,_0x3d9c92),_0x1511d9=new _0x352ff8(_0x3c846c);_0x1511d9[_0x1ece47(0x191)]({'label':_0x1bea3f[_0x1ece47(0x1b5)],'icon':_0x1bea3f[_0x1ece47(0x13c)],'role':_0x1ece47(0x173),'isEnabled':_0x1bea3f[_0x1ece47(0x18b)]}),_0x1511d9['on'](_0x1ece47(0x19b),()=>{const _0x3586e9=_0x1ece47;this[_0x3586e9(0x157)](_0x1bea3f);}),_0x1511d9[_0x1ece47(0x1aa)](_0x1ece47(0x19b))['to'](_0x3d9c92),_0x542889[_0x1ece47(0x197)][_0x1ece47(0x14b)](_0x1511d9),_0x501ed6[_0x1ece47(0x133)][_0x1ece47(0x14b)](_0x542889);}),_0x3d9c92[_0x4210f5(0x179)][_0x4210f5(0x197)][_0x4210f5(0x14b)](_0x501ed6),_0x12f7b1[_0x4210f5(0x197)][_0x4210f5(0x14b)](_0x3d9c92),_0x1206e7[_0x4210f5(0x133)][_0x4210f5(0x14b)](_0x12f7b1);}else{const _0x4e26c9=_0x1f751a,_0xdfb88b=new _0x512ad0(_0x3c846c,_0x42a2e0),_0x278f83=new _0x352ff8(_0x3c846c);_0x278f83[_0x4210f5(0x191)]({'label':_0x4e26c9[_0x4210f5(0x1b5)],'icon':_0x4e26c9[_0x4210f5(0x13c)],'role':_0x4210f5(0x173),'isEnabled':_0x4e26c9[_0x4210f5(0x18b)]}),_0x278f83['on'](_0x4210f5(0x19b),()=>{const _0x3f830e=_0x4210f5;this[_0x3f830e(0x157)](_0x4e26c9);}),_0x278f83[_0x4210f5(0x1aa)](_0x4210f5(0x19b))['to'](_0x42a2e0),_0xdfb88b[_0x4210f5(0x197)][_0x4210f5(0x14b)](_0x278f83),_0x1206e7[_0x4210f5(0x133)][_0x4210f5(0x14b)](_0xdfb88b);}});const _0x5bc1f3=Object[_0x19ae63(0x14e)](AIQuickActionTypeToPluginName)[_0x19ae63(0x168)](_0x446169=>this[_0x19ae63(0x19e)][_0x19ae63(0x1a3)][_0x19ae63(0x176)](_0x446169));return _0x42a2e0[_0x19ae63(0x191)]({'isEnabled':_0x5bc1f3}),_0x42a2e0[_0x19ae63(0x179)][_0x19ae63(0x197)][_0x19ae63(0x14b)](_0x1206e7),_0x42a2e0;});}[_0x18d6f2(0x157)](_0x428315){const _0x125996=_0x18d6f2,_0x377416=this[_0x125996(0x19e)];_0x377416[_0x125996(0x1b7)][_0x125996(0x18d)][_0x125996(0x145)](),_0x377416[_0x125996(0x18a)][_0x125996(0x19b)](_0x125996(0x14f),_0x428315);const _0x543562=_0x377416['ui'][_0x125996(0x18d)][_0x125996(0x172)];_0x543562&&_0x543562[_0x125996(0x1ad)]&&_0x543562[_0x125996(0x1ad)]();}}
|
|
@@ -8,6 +8,43 @@
|
|
|
8
8
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
|
|
11
|
+
/**
|
|
12
|
+
* Configuration options for aiQuickActionsButtonCreator.
|
|
13
|
+
*/
|
|
14
|
+
export interface AIQuickActionsButtonCreatorOptions {
|
|
15
|
+
/**
|
|
16
|
+
* The CKEditor instance that will contain the button.
|
|
17
|
+
*/
|
|
18
|
+
editor: Editor;
|
|
19
|
+
/**
|
|
20
|
+
* The AI quick action definition containing configuration.
|
|
21
|
+
*/
|
|
22
|
+
action: AIQuickActionDefinition;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show the text label on the button.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
withText?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to show the icon on the button.
|
|
31
|
+
*
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
withIcon?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the button is in a dropdown.
|
|
37
|
+
*
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
isInDropdown?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Optional callback to check if focus should be prevented.
|
|
43
|
+
*
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
shouldPreventFocus?: () => boolean;
|
|
47
|
+
}
|
|
11
48
|
/**
|
|
12
49
|
* Creates a button factory function for AI Quick Actions.
|
|
13
50
|
*
|
|
@@ -21,11 +58,7 @@ import { type AIQuickActionDefinition } from '../aiquickactionsui.js';
|
|
|
21
58
|
* - Hides any open balloon toolbar
|
|
22
59
|
* - Executes the aiQuickActions command with the action details
|
|
23
60
|
*
|
|
24
|
-
* @param
|
|
25
|
-
* @param action The AI quick action definition containing configuration
|
|
26
|
-
* @param withText Whether to show the text label on the button
|
|
27
|
-
* @param withIcon Whether to show the icon on the button
|
|
28
|
-
* @param isInDropdown Whether the button is in a dropdown
|
|
61
|
+
* @param options Configuration options for the button creator
|
|
29
62
|
* @returns Factory function that creates a ButtonView instance
|
|
30
63
|
*/
|
|
31
|
-
export declare function aiQuickActionsButtonCreator(
|
|
64
|
+
export declare function aiQuickActionsButtonCreator(options: AIQuickActionsButtonCreatorOptions): () => ButtonView;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5b6530,_0x556b22){const _0x5696ce=_0x2813,_0x981339=_0x5b6530();while(!![]){try{const _0x4f79b7=parseInt(_0x5696ce(0x20c))/0x1*(parseInt(_0x5696ce(0x201))/0x2)+-parseInt(_0x5696ce(0x1f2))/0x3+parseInt(_0x5696ce(0x1fe))/0x4*(-parseInt(_0x5696ce(0x1f9))/0x5)+parseInt(_0x5696ce(0x205))/0x6+-parseInt(_0x5696ce(0x20b))/0x7*(parseInt(_0x5696ce(0x207))/0x8)+parseInt(_0x5696ce(0x1f3))/0x9*(-parseInt(_0x5696ce(0x1f6))/0xa)+parseInt(_0x5696ce(0x1ff))/0xb*(parseInt(_0x5696ce(0x209))/0xc);if(_0x4f79b7===_0x556b22)break;else _0x981339['push'](_0x981339['shift']());}catch(_0xb63210){_0x981339['push'](_0x981339['shift']());}}}(_0x23c2,0xcd418));import{ButtonView as _0x52df1c}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x3d3bf0}from'@ckeditor/ckeditor5-icons';function _0x2813(_0x4a6e5f,_0x4f6a15){const _0x23c2ec=_0x23c2();return _0x2813=function(_0x2813a5,_0x1c50e8){_0x2813a5=_0x2813a5-0x1f2;let _0x48cd67=_0x23c2ec[_0x2813a5];return _0x48cd67;},_0x2813(_0x4a6e5f,_0x4f6a15);}function _0x23c2(){const _0x45b91c=['897485gdXlQX','menuitem','locale','displayedPrompt','view','4tQCGek','10263TSYbGo','set','639022QRCqeE','parent','ck-ai-quick-actions-button','execute','8894376LkUecC','aiQuickAction','18952jDcnTe','editing','21204gbeHIB','bindTemplate','553RfUKwI','2cOcykS','commands','3787770EnNsuF','14463mkPMhZ','icon','isEnabled','8090Uzdhys','focus','extendTemplate'];_0x23c2=function(){return _0x45b91c;};return _0x23c2();}export function aiQuickActionsButtonCreator(_0x1b445a){const {editor:_0x267ecf,action:_0x44d40f,withText:_0x1baa95=!0x1,withIcon:_0x3426d1=!0x0,isInDropdown:_0x5b852f=!0x0,shouldPreventFocus:_0x3a8834=!0x1}=_0x1b445a;return()=>{const _0x47f41f=_0x2813,_0x42b75f=_0x267ecf[_0x47f41f(0x1fb)],_0x1f37ea=new _0x52df1c(_0x42b75f),_0x40c6f0=_0x1f37ea[_0x47f41f(0x20a)];_0x5b852f&&_0x1f37ea[_0x47f41f(0x1f8)]({'on':{'mouseenter':_0x40c6f0['to'](()=>{const _0x3a2a1d=_0x47f41f;_0x3a8834&&_0x3a8834()||_0x1f37ea[_0x3a2a1d(0x1f7)]();})}});const _0x540d4f=_0x44d40f[_0x47f41f(0x1f4)]??_0x44d40f[_0x47f41f(0x202)]?.[_0x47f41f(0x1f4)];return _0x1f37ea[_0x47f41f(0x200)]({'label':_0x44d40f[_0x47f41f(0x1fc)],'withText':_0x1baa95,'role':_0x47f41f(0x1fa),'icon':_0x3426d1?_0x540d4f??_0x3d3bf0:void 0x0,'tooltip':!_0x1baa95,'class':_0x47f41f(0x203),'isEnabled':_0x44d40f[_0x47f41f(0x1f5)]}),_0x1f37ea['on'](_0x47f41f(0x204),()=>{const _0x36abd0=_0x47f41f;_0x267ecf[_0x36abd0(0x208)][_0x36abd0(0x1fd)][_0x36abd0(0x1f7)](),_0x267ecf[_0x36abd0(0x20d)][_0x36abd0(0x204)](_0x36abd0(0x206),_0x44d40f);}),_0x1f37ea;};}
|
|
@@ -36,7 +36,12 @@ export declare class AIQuickActionsDropdownContentView extends View implements V
|
|
|
36
36
|
* Helps cycling over {@link #_focusables} in the form.
|
|
37
37
|
*/
|
|
38
38
|
readonly focusCycler: FocusCycler;
|
|
39
|
-
constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection);
|
|
39
|
+
constructor(editor: Editor, content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>, dropdownView: DropdownView, bodyCollection: BodyCollection, hasSearch?: boolean);
|
|
40
|
+
/**
|
|
41
|
+
* Resets the search input and restores all list items.
|
|
42
|
+
* Called when the dropdown is closed to ensure clean state on next open.
|
|
43
|
+
*/
|
|
44
|
+
resetSearch(): void;
|
|
40
45
|
/**
|
|
41
46
|
* @inheritDoc
|
|
42
47
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x24de43=_0x588e;function _0x1188(){const _0x290f85=['159668YebYbA','actions','eastSouth','optionsListView','div','focusTracker','relatedTarget','forEach','clear','.ck-ai-quick-actions-group-list','_hideNestedPanel','render','ck-ai-quick-actions-group-panel','_createActionGroupButton','add','_createGroupActionsList','element','rtl','locale','extendTemplate','_bodyCollection','694944LAjiqv','mouseleave','addMany','items','.ck-ai-quick-actions-group-panel','ArrowLeft','_setupGroupMenuBehavior','bind','72QMsFsq','7540bBOmTU','56254qzlsTe','_createActionButton','children','4067259nanbBk','set','focus','888DPuQnf','_hideAllNestedPanels','isOn','pin','destroy','uiLanguageDirection','ck-reset_all','role','_openNestedPanels','.ck-ai-quick-actions-group-button','keystrokes','contains','detachFromDom','ck-rounded-corners','focusCycler','key','21jzcyCe','_createListItems','addEventListener','get','icon','_focusables','22otjbgR','menu','content','_isMovingToNestedMenu','ck-dropdown-menu__nested-menu__panel','closest','hide','131445fVBFxz','show','setTemplate','ck-dropdown-menu-list','_showNestedPanel','label','delete','isVisible','6842360imRPFZ','ck-ai-quick-actions','ArrowRight','menuitem','ck-ai-quick-actions-group-button','bindTemplate','ck-ai-quick-actions-group-list'];_0x1188=function(){return _0x290f85;};return _0x1188();}(function(_0x5f33a1,_0x475153){const _0x3e99c2=_0x588e,_0x422bcc=_0x5f33a1();while(!![]){try{const _0x5c6cfc=parseInt(_0x3e99c2(0x15f))/0x1+-parseInt(_0x3e99c2(0x169))/0x2+-parseInt(_0x3e99c2(0x12e))/0x3*(-parseInt(_0x3e99c2(0x14a))/0x4)+-parseInt(_0x3e99c2(0x168))/0x5*(-parseInt(_0x3e99c2(0x16f))/0x6)+parseInt(_0x3e99c2(0x16c))/0x7+parseInt(_0x3e99c2(0x167))/0x8*(parseInt(_0x3e99c2(0x13b))/0x9)+-parseInt(_0x3e99c2(0x143))/0xa*(parseInt(_0x3e99c2(0x134))/0xb);if(_0x5c6cfc===_0x475153)break;else _0x422bcc['push'](_0x422bcc['shift']());}catch(_0x3cd1df){_0x422bcc['push'](_0x422bcc['shift']());}}}(_0x1188,0x7d596));import{View as _0x44b46b,ListItemView as _0x2a3e73,ListView as _0x47cc55,BalloonPanelView as _0x25c601,DropdownMenuPanelPositioningFunctions as _0x5cf0c5,DropdownMenuButtonView as _0x27f57d,ViewCollection as _0x426159,FocusCycler as _0x5caf06}from'ckeditor5/src/ui.js';function _0x588e(_0x11962a,_0x1a1126){const _0x1188bf=_0x1188();return _0x588e=function(_0x588e32,_0x4f15bf){_0x588e32=_0x588e32-0x12d;let _0xddbf21=_0x1188bf[_0x588e32];return _0xddbf21;},_0x588e(_0x11962a,_0x1a1126);}import{IconAIQuickActions as _0x4764de}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x58ad05,KeystrokeHandler as _0x40b34d}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x16ea81}from'./aiquickactionsbuttoncreator.js';const Ls=_0x24de43(0x135),Ns=_0x24de43(0x146);export class AIQuickActionsDropdownContentView extends _0x44b46b{[_0x24de43(0x15e)];[_0x24de43(0x14d)];[_0x24de43(0x14f)];[_0x24de43(0x179)];[_0x24de43(0x133)];[_0x24de43(0x17d)];[_0x24de43(0x177)]=new Set();constructor(_0x142cbb,_0x5ea2a9,_0x29e194,_0x12d052){const _0x229dd1=_0x24de43,_0x54e82d=_0x142cbb[_0x229dd1(0x15c)];super(_0x54e82d),this[_0x229dd1(0x15e)]=_0x12d052;const _0x196508=this[_0x229dd1(0x12f)](_0x142cbb,_0x5ea2a9,_0x29e194);this[_0x229dd1(0x14d)]=new _0x47cc55(_0x54e82d),this[_0x229dd1(0x14d)][_0x229dd1(0x176)]=Ls,this[_0x229dd1(0x14d)][_0x229dd1(0x162)][_0x229dd1(0x161)](_0x196508),this[_0x229dd1(0x14f)]=new _0x58ad05(),this[_0x229dd1(0x179)]=new _0x40b34d(),this[_0x229dd1(0x133)]=_0x196508,this[_0x229dd1(0x17d)]=new _0x5caf06({'focusables':this[_0x229dd1(0x133)],'focusTracker':this[_0x229dd1(0x14f)],'keystrokeHandler':this[_0x229dd1(0x179)]}),this[_0x229dd1(0x13d)]({'tag':_0x229dd1(0x14e),'attributes':{'class':['ck',_0x229dd1(0x175),_0x229dd1(0x144),_0x229dd1(0x17c)],'dir':_0x54e82d[_0x229dd1(0x174)]},'children':[this[_0x229dd1(0x14d)]]});}[_0x24de43(0x12f)](_0xae1776,_0x3964b2,_0x4f215a){const _0x2c149e=_0x24de43,_0x16bc2e=new _0x426159();return _0x3964b2[_0x2c149e(0x151)](_0x4bce00=>{const _0x45e0b0=_0x2c149e;_0x45e0b0(0x14b)in _0x4bce00?_0x16bc2e[_0x45e0b0(0x158)](this[_0x45e0b0(0x157)](_0xae1776,_0x4bce00,_0x4f215a)):_0x16bc2e[_0x45e0b0(0x158)](this[_0x45e0b0(0x16a)](_0xae1776,_0x4bce00));}),_0x16bc2e;}[_0x24de43(0x16a)](_0x53c011,_0x6be530){const _0x4f4773=_0x24de43,_0x2c8596=new _0x2a3e73(this[_0x4f4773(0x15c)]),_0x4c6c1c=_0x16ea81(_0x53c011,_0x6be530,!0x0,void 0x0!==_0x6be530[_0x4f4773(0x132)])();return _0x2c8596[_0x4f4773(0x16b)][_0x4f4773(0x158)](_0x4c6c1c),_0x2c8596;}[_0x24de43(0x157)](_0x2b24d7,_0x369f08,_0x18724c){const _0x306cfc=_0x24de43,_0x139635=new _0x2a3e73(this[_0x306cfc(0x15c)]),_0x5f0e33=new _0x27f57d(this[_0x306cfc(0x15c)]),_0x4dd231=_0x5f0e33[_0x306cfc(0x148)],_0x3ab1b0=_0x306cfc(0x15b)===_0x18724c[_0x306cfc(0x15c)][_0x306cfc(0x174)]?_0x306cfc(0x145):_0x306cfc(0x164),_0x302d8e=this[_0x306cfc(0x159)](_0x2b24d7,_0x369f08[_0x306cfc(0x14b)],_0x18724c);_0x5f0e33[_0x306cfc(0x16d)]({'label':_0x369f08[_0x306cfc(0x140)],'withText':!0x0,'role':Ns,'icon':_0x369f08[_0x306cfc(0x132)]??_0x4764de}),_0x5f0e33[_0x306cfc(0x15d)]({'on':{'mouseenter':_0x4dd231['to'](()=>{const _0xd32b54=_0x306cfc;_0x5f0e33[_0xd32b54(0x16e)]();})}});const _0x251040=new _0x25c601(this[_0x306cfc(0x15c)]);return _0x251040[_0x306cfc(0x15d)]({'attributes':{'class':['ck',_0x306cfc(0x175),_0x306cfc(0x156),_0x306cfc(0x138)]},'on':{'keydown':_0x4dd231['to'](_0x100e72=>{const _0x15d1b4=_0x306cfc;_0x100e72[_0x15d1b4(0x12d)]==_0x3ab1b0&&(_0x5f0e33[_0x15d1b4(0x16e)](),this[_0x15d1b4(0x154)](_0x251040));})}}),_0x5f0e33[_0x306cfc(0x166)](_0x306cfc(0x171))['to'](_0x251040,_0x306cfc(0x142)),this[_0x306cfc(0x15e)][_0x306cfc(0x158)](_0x251040),_0x251040[_0x306cfc(0x136)][_0x306cfc(0x158)](_0x302d8e),this[_0x306cfc(0x165)](_0x5f0e33,_0x251040),_0x139635[_0x306cfc(0x16b)][_0x306cfc(0x158)](_0x5f0e33),_0x139635;}[_0x24de43(0x159)](_0x3859ad,_0x2996f4,_0x3b0a45){const _0xfb2451=_0x24de43,_0x14be41=new _0x47cc55(this[_0xfb2451(0x15c)]);return _0x14be41[_0xfb2451(0x15d)]({'attributes':{'class':['ck',_0xfb2451(0x175),_0xfb2451(0x149),_0xfb2451(0x13e)]}}),_0x2996f4[_0xfb2451(0x151)](_0x29273f=>{const _0x1cd94a=_0xfb2451,_0x57f3d8=new _0x2a3e73(this[_0x1cd94a(0x15c)]),_0x42342a=_0x16ea81(_0x3859ad,_0x29273f,!0x0,!0x1)();_0x57f3d8[_0x1cd94a(0x16b)][_0x1cd94a(0x158)](_0x42342a),_0x3b0a45[_0x1cd94a(0x14f)][_0x1cd94a(0x158)](_0x42342a),_0x14be41[_0x1cd94a(0x162)][_0x1cd94a(0x158)](_0x57f3d8);}),_0x14be41;}[_0x24de43(0x165)](_0x33df70,_0x1b0346){const _0x18738e=_0x24de43,_0x4fa6ec=_0x33df70[_0x18738e(0x148)],_0x1ff24d=_0x18738e(0x15b)===_0x33df70[_0x18738e(0x15c)][_0x18738e(0x174)]?_0x18738e(0x164):_0x18738e(0x145);_0x33df70[_0x18738e(0x15d)]({'attributes':{'class':[_0x18738e(0x147)]},'on':{'mouseenter':_0x4fa6ec['to'](()=>{const _0x7de9af=_0x18738e;this[_0x7de9af(0x13f)](_0x1b0346,_0x33df70);}),'mouseleave':_0x4fa6ec['to'](_0x231d5b=>{const _0x1848ab=_0x18738e,_0x3309ee=_0x231d5b[_0x1848ab(0x150)];this[_0x1848ab(0x137)](_0x3309ee,_0x1b0346)||this[_0x1848ab(0x154)](_0x1b0346);}),'keydown':_0x4fa6ec['to'](_0x39631=>{const _0x4f6dfc=_0x18738e;_0x39631[_0x4f6dfc(0x12d)]==_0x1ff24d&&(this[_0x4f6dfc(0x13f)](_0x1b0346,_0x33df70),_0x1b0346[_0x4f6dfc(0x136)][_0x4f6dfc(0x131)](0x0)[_0x4f6dfc(0x16e)]());})}}),_0x1b0346['on'](_0x18738e(0x155),()=>{const _0xec2b32=_0x18738e;_0x1b0346[_0xec2b32(0x15a)]?.[_0xec2b32(0x130)](_0xec2b32(0x160),_0x40ba48=>{const _0x198d25=_0xec2b32,_0x22cea5=_0x40ba48[_0x198d25(0x150)];_0x33df70[_0x198d25(0x15a)]?.[_0x198d25(0x17a)](_0x22cea5)||this[_0x198d25(0x137)](_0x22cea5,_0x1b0346)||this[_0x198d25(0x154)](_0x1b0346);});});}[_0x24de43(0x13f)](_0x5a1052,_0x41767f){const _0x41e7fb=_0x24de43;this[_0x41e7fb(0x177)][_0x41e7fb(0x151)](_0x1ceed6=>{const _0xa8310=_0x41e7fb;_0x1ceed6!==_0x5a1052&&_0x1ceed6[_0xa8310(0x142)]&&_0x1ceed6[_0xa8310(0x13a)]();}),_0x5a1052[_0x41e7fb(0x13c)](),_0x5a1052[_0x41e7fb(0x172)]({'positions':[_0x5cf0c5[_0x41e7fb(0x14c)]],'target':_0x41767f[_0x41e7fb(0x15a)],'fitInViewport':!0x0}),this[_0x41e7fb(0x177)][_0x41e7fb(0x158)](_0x5a1052);}[_0x24de43(0x154)](_0x4b1893){const _0x43a066=_0x24de43;_0x4b1893[_0x43a066(0x13a)](),this[_0x43a066(0x177)][_0x43a066(0x141)](_0x4b1893);}[_0x24de43(0x170)](){const _0x2e8ee7=_0x24de43;this[_0x2e8ee7(0x177)][_0x2e8ee7(0x151)](_0x10e1b9=>_0x10e1b9[_0x2e8ee7(0x13a)]()),this[_0x2e8ee7(0x177)][_0x2e8ee7(0x152)]();}[_0x24de43(0x137)](_0x99fdb8,_0x4e52f1){const _0xdbf01c=_0x24de43;if(!_0x99fdb8)return!0x1;if(_0x4e52f1[_0xdbf01c(0x15a)]?.[_0xdbf01c(0x17a)](_0x99fdb8))return!0x0;const _0x1d671e=_0x99fdb8;return _0x1d671e[_0xdbf01c(0x139)]&&(null!==_0x1d671e[_0xdbf01c(0x139)](_0xdbf01c(0x163))||null!==_0x1d671e[_0xdbf01c(0x139)](_0xdbf01c(0x153))||null!==_0x1d671e[_0xdbf01c(0x139)](_0xdbf01c(0x178)));}[_0x24de43(0x173)](){const _0x53401f=_0x24de43;this[_0x53401f(0x170)](),this[_0x53401f(0x15e)][_0x53401f(0x17b)](),super[_0x53401f(0x173)]();}[_0x24de43(0x16e)](){const _0x16e566=_0x24de43;this[_0x16e566(0x14d)][_0x16e566(0x16e)]();}}
|
|
23
|
+
function _0x225a(_0x5b16b2,_0x10aac4){const _0x27e88=_0x27e8();return _0x225a=function(_0x225ac7,_0x27bb76){_0x225ac7=_0x225ac7-0x183;let _0x4f0b04=_0x27e88[_0x225ac7];return _0x4f0b04;},_0x225a(_0x5b16b2,_0x10aac4);}const _0x406b41=_0x225a;(function(_0x110b11,_0x5afdf8){const _0x55ea8e=_0x225a,_0x1c9187=_0x110b11();while(!![]){try{const _0x1cfd8e=-parseInt(_0x55ea8e(0x1e3))/0x1*(parseInt(_0x55ea8e(0x205))/0x2)+-parseInt(_0x55ea8e(0x1a3))/0x3*(-parseInt(_0x55ea8e(0x1ba))/0x4)+-parseInt(_0x55ea8e(0x1fe))/0x5*(parseInt(_0x55ea8e(0x1f9))/0x6)+-parseInt(_0x55ea8e(0x20a))/0x7*(parseInt(_0x55ea8e(0x1a1))/0x8)+-parseInt(_0x55ea8e(0x1e0))/0x9+-parseInt(_0x55ea8e(0x1c4))/0xa*(-parseInt(_0x55ea8e(0x209))/0xb)+parseInt(_0x55ea8e(0x190))/0xc;if(_0x1cfd8e===_0x5afdf8)break;else _0x1c9187['push'](_0x1c9187['shift']());}catch(_0x1d3f14){_0x1c9187['push'](_0x1c9187['shift']());}}}(_0x27e8,0x46076));import{View as _0x227411,ListItemView as _0x50d8c6,ListView as _0x5736fd,BalloonPanelView as _0x523a6f,DropdownMenuPanelPositioningFunctions as _0x32d6a9,ViewCollection as _0x4cb287,FocusCycler as _0x2ee63b,ButtonView as _0x4bf6ac,IconView as _0x1c8d8a,HighlightedTextView as _0x183b84,ButtonLabelWithHighlightView as _0x19dfcb,SearchTextView as _0xa34f57}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x605091}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x18c38e,KeystrokeHandler as _0x5e6e6e}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x118c27}from'./aiquickactionsbuttoncreator.js';import{DropdownMenuButtonWithHighlightView as _0x377a69}from'./dropdownmenubuttonwithhighlightview.js';import{getTranslation as _0x1aa55f}from'../../aicore/utils/common-translations.js';import{AIQuickActionsFilteredListView as _0x275eb6}from'./aiquickactionsfilteredlistview.js';const Ts=_0x406b41(0x19d),Rs=_0x406b41(0x1bf);function _0x27e8(){const _0x8e63f=['_isSearchFocused','text','_handleSearchResultButtonClick','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button','ck-ai-quick-actions-search-result__action-row','resetSearch','fire','push','queryView','set','commands','_bodyCollection','aiQuickAction','ck-ai-quick-actions-button','_createGroupActionsList','ck-ai-quick-actions-button_with-group__close-paren','ck-ai-quick-actions-search','_allSearchableItems','AI_QUICK_ACTIONS_SEARCH','add','ck-ai-quick-actions-group-button','render','parent','editing','ck-ai-quick-actions','ck-rounded-corners','_isMovingToNestedMenu','1814733ovJlCR','locale','ck-reset_all','204717qBsXuC','focus','show','get','isEnabled','ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button\x20ck-ai-quick-actions-search-result-button_with-group','role','ck-ai-quick-actions-button_with-group__open-paren','ArrowLeft','ck-ai-quick-actions-button_with-group','actions','.ck-ai-quick-actions-group-button','addMany','closest','view','displayedPrompt','mouseleave','element','key','_createSearchResultIndividualActionButton','ck-ai-quick-actions-group-panel','ck-ai-quick-actions-search-result-button','6GiVPTq','ck-dropdown-menu-list','_hideAllNestedPanels','addEventListener','delete','1118905zBnbfy','activeElement','setTemplate','_createActionGroupButton','_createSearchResultGroupedActionButton','_openNestedPanels','_createListItems','2XgEdKM','execute','extendTemplate','keystrokes','1792043OqBnEV','13405LLQwnN','ck-ai-quick-actions-button__group-icon','button','chain','_createSearchResultContentView','ck-button','some','items','ck-ai-quick-actions-search-result-button_with-group','ownerDocument','clear','_createSearchResultGroupRow','_focusables','ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','_hideNestedPanel','rtl','3679284LVsOWp','_handlePanelKeydown','forEach','isVisible','bindTemplate','ck-ai-quick-actions-search-result__content','content','isOn','ck-dropdown-menu__nested-menu__panel','.ck-ai-quick-actions-group-panel','ArrowRight','optionsListView','children','menu','_showNestedPanel','relatedTarget','hide','192WbzQqv','_searchTextView','9915GEKfyg','_hasSearch','focusTracker','fieldView','_createSearchResultActionButton','span','ck-button_with-text','bind','div','ck-ai-quick-actions-search-result__group-row','ck-ai-quick-actions-group-list','focusCycler','_createActionButton','destroy','reset','first','_getPanelKeystroke','_getButtonKeystroke','_createSearchResultActionRow','contains','label','.ck-ai-quick-actions-group-list','_setupGroupMenuBehavior','400gufLVL','_setupActionButtonExecution','AI_QUICK_ACTIONS_SEARCH_NOT_FOUND','uiLanguageDirection','_createSearchTextView','menuitem','icon','pin','eastSouth','detachFromDom','20ijtjEs'];_0x27e8=function(){return _0x8e63f;};return _0x27e8();}export class AIQuickActionsDropdownContentView extends _0x227411{[_0x406b41(0x1d0)];[_0x406b41(0x19b)];[_0x406b41(0x1a2)]=null;[_0x406b41(0x1d6)]=[];[_0x406b41(0x19c)];[_0x406b41(0x1a5)];[_0x406b41(0x208)];[_0x406b41(0x18c)];[_0x406b41(0x1ae)];[_0x406b41(0x203)]=new Set();[_0x406b41(0x1a4)];constructor(_0x3933ea,_0x50c7c4,_0x572a5f,_0x238441,_0x529772=!0x1){const _0x1bfbc7=_0x406b41,_0x1f11b6=_0x3933ea[_0x1bfbc7(0x1e1)];super(_0x1f11b6),this[_0x1bfbc7(0x1d0)]=_0x238441,this[_0x1bfbc7(0x1a4)]=_0x529772;const _0x44171d=this[_0x1bfbc7(0x204)](_0x3933ea,_0x50c7c4,_0x572a5f);this[_0x1bfbc7(0x19b)]=new _0x275eb6(_0x1f11b6,_0x44171d,this[_0x1bfbc7(0x1d6)]),this[_0x1bfbc7(0x19b)][_0x1bfbc7(0x1e9)]=Ts,this[_0x1bfbc7(0x19b)][_0x1bfbc7(0x187)][_0x1bfbc7(0x1ef)](_0x44171d),this[_0x1bfbc7(0x1a5)]=new _0x18c38e(),this[_0x1bfbc7(0x208)]=new _0x5e6e6e(),_0x529772&&(this[_0x1bfbc7(0x1a2)]=this[_0x1bfbc7(0x1be)]()),this[_0x1bfbc7(0x18c)]=_0x44171d,this[_0x1bfbc7(0x1ae)]=new _0x2ee63b({'focusables':this[_0x1bfbc7(0x18c)],'focusTracker':this[_0x1bfbc7(0x1a5)],'keystrokeHandler':this[_0x1bfbc7(0x208)]}),_0x529772&&this[_0x1bfbc7(0x1a2)]&&this[_0x1bfbc7(0x1ae)][_0x1bfbc7(0x183)](this[_0x1bfbc7(0x1a2)][_0x1bfbc7(0x1ae)]);const _0x11f063=_0x529772&&this[_0x1bfbc7(0x1a2)]?[this[_0x1bfbc7(0x1a2)]]:[this[_0x1bfbc7(0x19b)]];this[_0x1bfbc7(0x19c)]=new _0x4cb287(_0x11f063),this[_0x1bfbc7(0x200)]({'tag':_0x1bfbc7(0x1ab),'attributes':{'class':['ck',_0x1bfbc7(0x1e2),_0x1bfbc7(0x1dd),_0x1bfbc7(0x1de)],'dir':_0x1f11b6[_0x1bfbc7(0x1bd)]},'children':this[_0x1bfbc7(0x19c)]});}[_0x406b41(0x1be)](){const _0x2a3921=_0x406b41;return new _0xa34f57(this[_0x2a3921(0x1e1)],{'filteredView':this[_0x2a3921(0x19b)],'queryView':{'label':_0x1aa55f(this[_0x2a3921(0x1e1)],_0x2a3921(0x1d7))},'class':_0x2a3921(0x1d5),'infoView':{'text':{'notFound':{'primary':_0x1aa55f(this[_0x2a3921(0x1e1)],_0x2a3921(0x1bc))}}}});}[_0x406b41(0x1c5)](){const _0x38fcc4=_0x406b41;if(!this[_0x38fcc4(0x1a4)]||!this[_0x38fcc4(0x1a2)]||!this[_0x38fcc4(0x1a2)][_0x38fcc4(0x1cd)][_0x38fcc4(0x1a6)][_0x38fcc4(0x1f4)])return!0x1;const _0x574f20=this[_0x38fcc4(0x1a2)][_0x38fcc4(0x1cd)][_0x38fcc4(0x1a6)][_0x38fcc4(0x1f4)][_0x38fcc4(0x189)]?.[_0x38fcc4(0x1ff)];return this[_0x38fcc4(0x1a2)][_0x38fcc4(0x1cd)][_0x38fcc4(0x1a6)][_0x38fcc4(0x1f4)][_0x38fcc4(0x1b6)](_0x574f20);}[_0x406b41(0x204)](_0x2f68b7,_0x355164,_0x1321cd){const _0x5cdcc5=_0x406b41,_0x2b4dd2=new _0x4cb287();return _0x355164[_0x5cdcc5(0x192)](_0x20e1c7=>{const _0x465686=_0x5cdcc5;if(_0x465686(0x1ed)in _0x20e1c7){const {listItem:_0x4dd179}=this[_0x465686(0x201)](_0x2f68b7,_0x20e1c7,_0x1321cd);_0x2b4dd2[_0x465686(0x1d8)](_0x4dd179),_0x20e1c7[_0x465686(0x1ed)][_0x465686(0x192)](_0x2f4cec=>{const _0x8dcd4a=_0x465686;this[_0x8dcd4a(0x1af)](_0x2f68b7,_0x2f4cec,_0x20e1c7[_0x8dcd4a(0x1b7)],_0x20e1c7[_0x8dcd4a(0x1c0)]);const {listItem:_0x519682,highlightViews:_0x2f7c60}=this[_0x8dcd4a(0x1a7)](_0x2f68b7,_0x2f4cec,_0x20e1c7[_0x8dcd4a(0x1b7)],_0x20e1c7[_0x8dcd4a(0x1c0)]);this[_0x8dcd4a(0x1d6)][_0x8dcd4a(0x1cc)]({'item':_0x519682,'label':_0x2f4cec[_0x8dcd4a(0x1f2)],'groupLabel':_0x20e1c7[_0x8dcd4a(0x1b7)],'highlightViews':_0x2f7c60});});}else{const {listItem:_0x123249}=this[_0x465686(0x1af)](_0x2f68b7,_0x20e1c7);_0x2b4dd2[_0x465686(0x1d8)](_0x123249);const _0x3dfa76=_0x123249[_0x465686(0x19c)][_0x465686(0x1b2)];if(_0x3dfa76){const {listItem:_0x4f96a3,highlightViews:_0x48908c}=this[_0x465686(0x1a7)](_0x2f68b7,_0x20e1c7);this[_0x465686(0x1d6)][_0x465686(0x1cc)]({'item':_0x4f96a3,'label':_0x3dfa76[_0x465686(0x1b7)]||'','highlightViews':_0x48908c});}}}),_0x2b4dd2;}[_0x406b41(0x1af)](_0x52e83f,_0x31e747,_0x569005,_0x28743f){const _0x303147=_0x406b41,_0x492b6c=new _0x50d8c6(this[_0x303147(0x1e1)]);if(_0x569005&&_0x28743f){const _0x231df2=new _0x4bf6ac(this[_0x303147(0x1e1)]),_0x3204a9=_0x231df2[_0x303147(0x194)],_0x6b2dc5=new _0x183b84();_0x6b2dc5[_0x303147(0x1c6)]=_0x31e747[_0x303147(0x1f2)];const _0x8f446f=new _0x183b84();_0x8f446f[_0x303147(0x1c6)]=_0x569005;const _0x52297a=new _0x1c8d8a();_0x52297a[_0x303147(0x196)]=_0x28743f,_0x52297a[_0x303147(0x207)]({'attributes':{'class':_0x303147(0x20b)}});const _0x3fca7c=new _0x227411(this[_0x303147(0x1e1)]);_0x3fca7c[_0x303147(0x200)]({'tag':_0x303147(0x1a8),'attributes':{'class':_0x303147(0x1ea)},'children':[{'text':'\x20('}]});const _0x509ca3=new _0x227411(this[_0x303147(0x1e1)]);return _0x509ca3[_0x303147(0x200)]({'tag':_0x303147(0x1a8),'attributes':{'class':_0x303147(0x1d4)},'children':[{'text':')'}]}),_0x231df2[_0x303147(0x1ce)]({'label':_0x31e747[_0x303147(0x1f2)]+'\x20('+_0x569005+')','withText':!0x0,'role':_0x303147(0x1bf),'class':_0x303147(0x18d),'tooltip':!0x1}),_0x231df2[_0x303147(0x200)]({'tag':_0x303147(0x20c),'attributes':{'class':['ck',_0x303147(0x185),_0x303147(0x1a9),_0x303147(0x1d2),_0x303147(0x1ec)],'type':_0x303147(0x20c),'role':_0x303147(0x1bf),'tabindex':'-1'},'children':[_0x6b2dc5,_0x3fca7c,_0x52297a,_0x8f446f,_0x509ca3],'on':{'mouseenter':_0x3204a9['to'](()=>{const _0x12c86f=_0x303147;this[_0x12c86f(0x1c5)]()||_0x231df2[_0x12c86f(0x1e4)]();}),'click':_0x3204a9['to'](()=>{const _0x5bb1f6=_0x303147;_0x231df2[_0x5bb1f6(0x1cb)](_0x5bb1f6(0x206));})}}),_0x231df2['on'](_0x303147(0x206),()=>{const _0x2c0df1=_0x303147;_0x52e83f[_0x2c0df1(0x1dc)][_0x2c0df1(0x1f1)][_0x2c0df1(0x1e4)](),_0x52e83f[_0x2c0df1(0x1cf)][_0x2c0df1(0x206)](_0x2c0df1(0x1d1),_0x31e747);}),_0x492b6c[_0x303147(0x19c)][_0x303147(0x1d8)](_0x231df2),{'listItem':_0x492b6c,'highlightViews':[_0x6b2dc5,_0x8f446f]};}{const _0x20cd41=new _0x19dfcb(),_0xb1fbc1=new _0x4bf6ac(this[_0x303147(0x1e1)],_0x20cd41),_0x5ae03d=_0xb1fbc1[_0x303147(0x194)],_0xc4fa25=_0x31e747[_0x303147(0x1c0)]??_0x31e747[_0x303147(0x1db)]?.[_0x303147(0x1c0)],_0x40d584=void 0x0!==_0x31e747[_0x303147(0x1c0)];return _0xb1fbc1[_0x303147(0x1ce)]({'label':_0x31e747[_0x303147(0x1f2)],'withText':!0x0,'role':_0x303147(0x1bf),'icon':_0x40d584?_0xc4fa25??_0x605091:void 0x0,'tooltip':!0x1,'class':_0x303147(0x1d2)}),_0xb1fbc1[_0x303147(0x207)]({'on':{'mouseenter':_0x5ae03d['to'](()=>{const _0x4d6235=_0x303147;this[_0x4d6235(0x1c5)]()||_0xb1fbc1[_0x4d6235(0x1e4)]();})}}),_0xb1fbc1['on'](_0x303147(0x206),()=>{const _0x4647f2=_0x303147;_0x52e83f[_0x4647f2(0x1dc)][_0x4647f2(0x1f1)][_0x4647f2(0x1e4)](),_0x52e83f[_0x4647f2(0x1cf)][_0x4647f2(0x206)](_0x4647f2(0x1d1),_0x31e747);}),_0x492b6c[_0x303147(0x19c)][_0x303147(0x1d8)](_0xb1fbc1),{'listItem':_0x492b6c,'highlightViews':[_0x20cd41]};}}[_0x406b41(0x1a7)](_0x11e71d,_0x59b39b,_0x3c2cb0,_0xbd21eb){const _0x438011=_0x406b41;return _0x3c2cb0&&_0xbd21eb?this[_0x438011(0x202)](_0x11e71d,_0x59b39b,_0x3c2cb0,_0xbd21eb):this[_0x438011(0x1f6)](_0x11e71d,_0x59b39b);}[_0x406b41(0x202)](_0x29dac0,_0x2f2cd2,_0x4b3787,_0xedefc1){const _0x2fc2e7=_0x406b41,_0x2df54d=new _0x50d8c6(this[_0x2fc2e7(0x1e1)]),_0x2a9683=new _0x4bf6ac(this[_0x2fc2e7(0x1e1)]),_0x1e3a01=_0x2a9683[_0x2fc2e7(0x194)],{view:_0x4a52c1,highlightView:_0x21542e}=this[_0x2fc2e7(0x18b)](_0x4b3787,_0xedefc1),{view:_0x1ea8e8,highlightView:_0x104722}=this[_0x2fc2e7(0x1b5)](_0x2f2cd2[_0x2fc2e7(0x1f2)]),_0x10651b=this[_0x2fc2e7(0x184)](_0x4a52c1,_0x1ea8e8);return _0x2a9683[_0x2fc2e7(0x1ce)]({'label':_0x2f2cd2[_0x2fc2e7(0x1f2)],'withText':!0x0,'role':_0x2fc2e7(0x1bf),'class':_0x2fc2e7(0x1e8),'tooltip':!0x1}),_0x2a9683[_0x2fc2e7(0x200)]({'tag':_0x2fc2e7(0x20c),'attributes':{'class':['ck',_0x2fc2e7(0x185),_0x2fc2e7(0x1a9),_0x2fc2e7(0x1d2),_0x2fc2e7(0x1f8),_0x2fc2e7(0x188)],'type':_0x2fc2e7(0x20c),'role':_0x2fc2e7(0x1bf),'tabindex':'-1'},'children':[_0x10651b],'on':{'mouseenter':_0x1e3a01['to'](()=>{const _0x3abba5=_0x2fc2e7;this[_0x3abba5(0x1c5)]()||_0x2a9683[_0x3abba5(0x1e4)]();}),'click':_0x1e3a01['to'](()=>{const _0x38b275=_0x2fc2e7;this[_0x38b275(0x1c7)](_0x2a9683);})}}),this[_0x2fc2e7(0x1bb)](_0x2a9683,_0x29dac0,_0x2f2cd2),_0x2df54d[_0x2fc2e7(0x19c)][_0x2fc2e7(0x1d8)](_0x2a9683),{'listItem':_0x2df54d,'highlightViews':[_0x21542e,_0x104722]};}[_0x406b41(0x1f6)](_0x45f53a,_0x15d6ac){const _0x2ef144=_0x406b41,_0x17040=new _0x50d8c6(this[_0x2ef144(0x1e1)]),_0x194544=new _0x19dfcb(),_0xe31a36=new _0x4bf6ac(this[_0x2ef144(0x1e1)],_0x194544),_0x2ff5dd=_0xe31a36[_0x2ef144(0x194)];return _0xe31a36[_0x2ef144(0x1ce)]({'label':_0x15d6ac[_0x2ef144(0x1f2)],'withText':!0x0,'role':_0x2ef144(0x1bf),'icon':void 0x0,'tooltip':!0x1,'class':_0x2ef144(0x1c8)}),_0xe31a36[_0x2ef144(0x207)]({'on':{'mouseenter':_0x2ff5dd['to'](()=>{const _0x28140b=_0x2ef144;this[_0x28140b(0x1c5)]()||_0xe31a36[_0x28140b(0x1e4)]();})}}),this[_0x2ef144(0x1bb)](_0xe31a36,_0x45f53a,_0x15d6ac),_0x17040[_0x2ef144(0x19c)][_0x2ef144(0x1d8)](_0xe31a36),{'listItem':_0x17040,'highlightViews':[_0x194544]};}[_0x406b41(0x18b)](_0x4a9414,_0x2e8bcf){const _0x17cc42=_0x406b41,_0x25ade1=new _0x227411(this[_0x17cc42(0x1e1)]),_0x505f26=new _0x1c8d8a();_0x505f26[_0x17cc42(0x196)]=_0x2e8bcf,_0x505f26[_0x17cc42(0x207)]({'attributes':{'class':_0x17cc42(0x20b)}});const _0x223e9f=new _0x183b84();return _0x223e9f[_0x17cc42(0x1c6)]=_0x4a9414,_0x25ade1[_0x17cc42(0x200)]({'tag':_0x17cc42(0x1ab),'attributes':{'class':_0x17cc42(0x1ac)},'children':[_0x505f26,_0x223e9f]}),{'view':_0x25ade1,'highlightView':_0x223e9f};}[_0x406b41(0x1b5)](_0x89ea21){const _0x3b095d=_0x406b41,_0x575d49=new _0x227411(this[_0x3b095d(0x1e1)]),_0x217b78=new _0x183b84();return _0x217b78[_0x3b095d(0x1c6)]=_0x89ea21,_0x575d49[_0x3b095d(0x200)]({'tag':_0x3b095d(0x1ab),'attributes':{'class':_0x3b095d(0x1c9)},'children':[_0x217b78]}),{'view':_0x575d49,'highlightView':_0x217b78};}[_0x406b41(0x184)](_0x9da902,_0x529419){const _0x57040f=_0x406b41,_0x432f7e=new _0x227411(this[_0x57040f(0x1e1)]);return _0x432f7e[_0x57040f(0x200)]({'tag':_0x57040f(0x1ab),'attributes':{'class':_0x57040f(0x195)},'children':[_0x9da902,_0x529419]}),_0x432f7e;}[_0x406b41(0x1bb)](_0x9b59a1,_0x1d502e,_0x377a9f){const _0xe731a5=_0x406b41;_0x9b59a1['on'](_0xe731a5(0x206),()=>{const _0x18843e=_0xe731a5;_0x1d502e[_0x18843e(0x1dc)][_0x18843e(0x1f1)][_0x18843e(0x1e4)](),_0x1d502e[_0x18843e(0x1cf)][_0x18843e(0x206)](_0x18843e(0x1d1),_0x377a9f);});}[_0x406b41(0x201)](_0xe37e89,_0x59b2fa,_0x55221e){const _0x2b7352=_0x406b41,_0x2bf4d8=new _0x50d8c6(this[_0x2b7352(0x1e1)]),_0x148ebf=new _0x19dfcb(),_0x1bb6e2=new _0x377a69(this[_0x2b7352(0x1e1)],_0x148ebf),_0x68fec8=_0x1bb6e2[_0x2b7352(0x194)],_0x2be2db=this[_0x2b7352(0x1b3)](_0x55221e),_0x41356f=this[_0x2b7352(0x1d3)](_0xe37e89,_0x59b2fa[_0x2b7352(0x1ed)],_0x55221e);_0x1bb6e2[_0x2b7352(0x1ce)]({'label':_0x59b2fa[_0x2b7352(0x1b7)],'withText':!0x0,'role':Rs,'icon':_0x59b2fa[_0x2b7352(0x1c0)]??_0x605091,'isEnabled':_0x59b2fa[_0x2b7352(0x1ed)][_0x2b7352(0x186)](_0x506c16=>_0x506c16[_0x2b7352(0x1e7)])}),_0x1bb6e2[_0x2b7352(0x207)]({'on':{'mouseenter':_0x68fec8['to'](()=>{const _0x4be827=_0x2b7352;this[_0x4be827(0x1c5)]()||_0x1bb6e2[_0x4be827(0x1e4)]();})}});const _0x5ba722=new _0x523a6f(this[_0x2b7352(0x1e1)]);return _0x5ba722[_0x2b7352(0x207)]({'attributes':{'class':['ck',_0x2b7352(0x1e2),_0x2b7352(0x1f7),_0x2b7352(0x198)]},'on':{'keydown':_0x68fec8['to'](_0x31e942=>{const _0x485767=_0x2b7352;this[_0x485767(0x191)](_0x31e942,_0x2be2db,_0x1bb6e2,_0x5ba722);})}}),_0x1bb6e2[_0x2b7352(0x1aa)](_0x2b7352(0x197))['to'](_0x5ba722,_0x2b7352(0x193)),this[_0x2b7352(0x1d0)][_0x2b7352(0x1d8)](_0x5ba722),_0x5ba722[_0x2b7352(0x196)][_0x2b7352(0x1d8)](_0x41356f),this[_0x2b7352(0x1b9)](_0x1bb6e2,_0x5ba722),_0x2bf4d8[_0x2b7352(0x19c)][_0x2b7352(0x1d8)](_0x1bb6e2),{'listItem':_0x2bf4d8,'highlightView':_0x148ebf};}[_0x406b41(0x1d3)](_0x59e85c,_0x201676,_0x30df51){const _0x49e829=_0x406b41,_0x5c3b7f=new _0x5736fd(this[_0x49e829(0x1e1)]);return _0x5c3b7f[_0x49e829(0x207)]({'attributes':{'class':['ck',_0x49e829(0x1e2),_0x49e829(0x1ad),_0x49e829(0x1fa)]}}),_0x201676[_0x49e829(0x192)](_0x3d7110=>{const _0x5a0035=_0x49e829,_0x1e981e=new _0x50d8c6(this[_0x5a0035(0x1e1)]),_0x1ddb48=_0x118c27({'editor':_0x59e85c,'action':_0x3d7110,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this[_0x5a0035(0x1c5)]()})();_0x1e981e[_0x5a0035(0x19c)][_0x5a0035(0x1d8)](_0x1ddb48),_0x30df51[_0x5a0035(0x1a5)][_0x5a0035(0x1d8)](_0x1ddb48),_0x5c3b7f[_0x5a0035(0x187)][_0x5a0035(0x1d8)](_0x1e981e);}),_0x5c3b7f;}[_0x406b41(0x1b9)](_0x1b70ed,_0x3f256f){const _0x16a858=_0x406b41,_0x427693=_0x1b70ed[_0x16a858(0x194)],_0x138a36=this[_0x16a858(0x1b4)](_0x1b70ed);_0x1b70ed[_0x16a858(0x207)]({'attributes':{'class':[_0x16a858(0x1d9)]},'on':{'mouseenter':_0x427693['to'](()=>{const _0x5bd037=_0x16a858;this[_0x5bd037(0x19e)](_0x3f256f,_0x1b70ed);}),'mouseleave':_0x427693['to'](_0x258f52=>{const _0x2e573b=_0x16a858,_0x3645e9=_0x258f52[_0x2e573b(0x19f)];this[_0x2e573b(0x1df)](_0x3645e9,_0x3f256f)||this[_0x2e573b(0x18e)](_0x3f256f);}),'keydown':_0x427693['to'](_0x204eaa=>{const _0x4c379a=_0x16a858;_0x204eaa[_0x4c379a(0x1f5)]==_0x138a36&&(this[_0x4c379a(0x19e)](_0x3f256f,_0x1b70ed),_0x3f256f[_0x4c379a(0x196)][_0x4c379a(0x1e6)](0x0)[_0x4c379a(0x1e4)]());})}}),_0x3f256f['on'](_0x16a858(0x1da),()=>{const _0x55448c=_0x16a858;_0x3f256f[_0x55448c(0x1f4)]?.[_0x55448c(0x1fc)](_0x55448c(0x1f3),_0x40a13e=>{const _0x299b42=_0x55448c,_0x36f762=_0x40a13e[_0x299b42(0x19f)];_0x1b70ed[_0x299b42(0x1f4)]?.[_0x299b42(0x1b6)](_0x36f762)||this[_0x299b42(0x1df)](_0x36f762,_0x3f256f)||this[_0x299b42(0x18e)](_0x3f256f);});});}[_0x406b41(0x19e)](_0x3430aa,_0xebd74c){const _0x1ff967=_0x406b41;this[_0x1ff967(0x203)][_0x1ff967(0x192)](_0x430848=>{const _0x428813=_0x1ff967;_0x430848!==_0x3430aa&&_0x430848[_0x428813(0x193)]&&_0x430848[_0x428813(0x1a0)]();}),_0x3430aa[_0x1ff967(0x1e5)](),_0x3430aa[_0x1ff967(0x1c1)]({'positions':[_0x32d6a9[_0x1ff967(0x1c2)]],'target':_0xebd74c[_0x1ff967(0x1f4)],'fitInViewport':!0x0}),this[_0x1ff967(0x203)][_0x1ff967(0x1d8)](_0x3430aa);}[_0x406b41(0x18e)](_0x2e8415){const _0x5a627b=_0x406b41;_0x2e8415[_0x5a627b(0x1a0)](),this[_0x5a627b(0x203)][_0x5a627b(0x1fd)](_0x2e8415);}[_0x406b41(0x1fb)](){const _0x187c10=_0x406b41;this[_0x187c10(0x203)][_0x187c10(0x192)](_0x80d802=>_0x80d802[_0x187c10(0x1a0)]()),this[_0x187c10(0x203)][_0x187c10(0x18a)]();}[_0x406b41(0x1df)](_0x5de43c,_0xff7724){const _0x43efbf=_0x406b41;if(!_0x5de43c)return!0x1;if(_0xff7724[_0x43efbf(0x1f4)]?.[_0x43efbf(0x1b6)](_0x5de43c))return!0x0;const _0xab929a=_0x5de43c;return _0xab929a[_0x43efbf(0x1f0)]&&(null!==_0xab929a[_0x43efbf(0x1f0)](_0x43efbf(0x199))||null!==_0xab929a[_0x43efbf(0x1f0)](_0x43efbf(0x1b8))||null!==_0xab929a[_0x43efbf(0x1f0)](_0x43efbf(0x1ee)));}[_0x406b41(0x1ca)](){const _0xae7e1=_0x406b41;this[_0xae7e1(0x1a2)]&&this[_0xae7e1(0x1a2)][_0xae7e1(0x1b1)]();}[_0x406b41(0x1b0)](){const _0x10bf97=_0x406b41;this[_0x10bf97(0x1fb)](),this[_0x10bf97(0x1d0)][_0x10bf97(0x1c3)](),super[_0x10bf97(0x1b0)]();}[_0x406b41(0x1e4)](){const _0x4c6753=_0x406b41;this[_0x4c6753(0x1a2)]?this[_0x4c6753(0x1a2)][_0x4c6753(0x1e4)]():this[_0x4c6753(0x19b)][_0x4c6753(0x1e4)]();}[_0x406b41(0x1b3)](_0x1c5cbe){const _0x4d2657=_0x406b41;return _0x4d2657(0x18f)===_0x1c5cbe[_0x4d2657(0x1e1)][_0x4d2657(0x1bd)]?_0x4d2657(0x19a):_0x4d2657(0x1eb);}[_0x406b41(0x1b4)](_0x31d9ad){const _0x2bf66c=_0x406b41;return _0x2bf66c(0x18f)===_0x31d9ad[_0x2bf66c(0x1e1)][_0x2bf66c(0x1bd)]?_0x2bf66c(0x1eb):_0x2bf66c(0x19a);}[_0x406b41(0x191)](_0x2dea8b,_0x85fef1,_0xa5864c,_0xb8c198){const _0xeeefb4=_0x406b41;_0x2dea8b[_0xeeefb4(0x1f5)]==_0x85fef1&&(_0xa5864c[_0xeeefb4(0x1e4)](),this[_0xeeefb4(0x18e)](_0xb8c198));}[_0x406b41(0x1c7)](_0x3ba001){const _0x53d3b7=_0x406b41;_0x3ba001[_0x53d3b7(0x1cb)](_0x53d3b7(0x206));}}
|
|
@@ -21,6 +21,33 @@ type DropdownButtonDefinition = {
|
|
|
21
21
|
*/
|
|
22
22
|
label: string;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Configuration options for aiQuickActionsDropdownCreator.
|
|
26
|
+
*/
|
|
27
|
+
export interface AIQuickActionsDropdownCreatorOptions {
|
|
28
|
+
/**
|
|
29
|
+
* The CKEditor instance that will contain the dropdown.
|
|
30
|
+
*/
|
|
31
|
+
editor: Editor;
|
|
32
|
+
/**
|
|
33
|
+
* Array of AI action definitions or groups to display in the dropdown.
|
|
34
|
+
*/
|
|
35
|
+
content: Array<AIQuickActionsGroupDefinition | AIQuickActionDefinition>;
|
|
36
|
+
/**
|
|
37
|
+
* Configuration for the dropdown button (icon, label).
|
|
38
|
+
*/
|
|
39
|
+
buttonDefinition: AIQuickActionsGroupDefinition | DropdownButtonDefinition;
|
|
40
|
+
/**
|
|
41
|
+
* Body collection for managing UI elements.
|
|
42
|
+
*/
|
|
43
|
+
bodyCollection: BodyCollection;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to show the search input.
|
|
46
|
+
*
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
hasSearch?: boolean;
|
|
50
|
+
}
|
|
24
51
|
/**
|
|
25
52
|
* Creates a dropdown factory function for AI Quick Actions.
|
|
26
53
|
*
|
|
@@ -34,12 +61,10 @@ type DropdownButtonDefinition = {
|
|
|
34
61
|
* - Read-only state binding to editor
|
|
35
62
|
* - Automatic closing and focus management
|
|
36
63
|
* - Balloon toolbar hiding on action selection
|
|
64
|
+
* - Optional search functionality
|
|
37
65
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* @param content Array of AI action definitions or groups to display in the dropdown
|
|
40
|
-
* @param buttonDefinition Configuration for the dropdown button (icon, label)
|
|
41
|
-
* @param bodyCollection Body collection for managing UI elements
|
|
66
|
+
* @param options Configuration options for the dropdown creator
|
|
42
67
|
* @returns Factory function that creates a DropdownView instance
|
|
43
68
|
*/
|
|
44
|
-
export declare function aiQuickActionsDropdownCreator(
|
|
69
|
+
export declare function aiQuickActionsDropdownCreator(options: AIQuickActionsDropdownCreatorOptions): () => DropdownView;
|
|
45
70
|
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x200849,_0x1b45c1){const _0x10fe27=_0x45d4,_0x1f0c79=_0x200849();while(!![]){try{const _0x4795c=-parseInt(_0x10fe27(0x179))/0x1+parseInt(_0x10fe27(0x180))/0x2+parseInt(_0x10fe27(0x165))/0x3*(parseInt(_0x10fe27(0x186))/0x4)+parseInt(_0x10fe27(0x17e))/0x5*(parseInt(_0x10fe27(0x17b))/0x6)+parseInt(_0x10fe27(0x169))/0x7+-parseInt(_0x10fe27(0x182))/0x8*(-parseInt(_0x10fe27(0x17d))/0x9)+-parseInt(_0x10fe27(0x175))/0xa;if(_0x4795c===_0x1b45c1)break;else _0x1f0c79['push'](_0x1f0c79['shift']());}catch(_0x3b071a){_0x1f0c79['push'](_0x1f0c79['shift']());}}}(_0x3647,0xdd15a));function _0x45d4(_0xcc3628,_0x3cca40){const _0x3647ef=_0x3647();return _0x45d4=function(_0x45d4a4,_0x571052){_0x45d4a4=_0x45d4a4-0x165;let _0x21d853=_0x3647ef[_0x45d4a4];return _0x21d853;},_0x45d4(_0xcc3628,_0x3cca40);}import{createDropdown as _0x6646e4}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x4eea70}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x56eea2}from'./aiquickactionsdropdowncontentview.js';import{AIEditing as _0x2d520e}from'../../aicore/aiediting.js';function _0x3647(){const _0x342ba7=['hideFakeVisualSelection','plugins','6227753yswqks','get','children','change:isOpen','selection','set','locale','length','add','has','getRanges','document','26607050Npfjnt','showFakeVisualSelection','from','icon','717041cFPRMH','model','249510TzmrCx','AIEditing','1757493zDVNFO','145vlpNbe','ai-quick-actions-dropdown-selection','1134698GvCXdh','label','8fRgWUN','buttonView','ck-ai-quick-actions-dropdown','resetSearch','2850076thknRo','6VIrccH','panelView'];_0x3647=function(){return _0x342ba7;};return _0x3647();}export function aiQuickActionsDropdownCreator(_0xf955dc){const {editor:_0x5927c3,content:_0x3077f7,buttonDefinition:_0x506b35,bodyCollection:_0x49c4c1,hasSearch:_0x314cc5=!0x1}=_0xf955dc;return()=>{const _0x42aaad=_0x45d4,_0x278531=_0x5927c3[_0x42aaad(0x16f)],_0x1a3b06=_0x6646e4(_0x278531);_0x1a3b06[_0x42aaad(0x183)][_0x42aaad(0x16e)]({'icon':_0x506b35[_0x42aaad(0x178)]??_0x4eea70,'label':_0x506b35[_0x42aaad(0x181)],'tooltip':!0x0}),_0x1a3b06[_0x42aaad(0x16e)]({'class':_0x42aaad(0x184)});const _0x2c622f=new _0x56eea2(_0x5927c3,_0x3077f7,_0x1a3b06,_0x49c4c1,_0x314cc5);if(_0x1a3b06[_0x42aaad(0x166)][_0x42aaad(0x16b)][_0x42aaad(0x171)](_0x2c622f),_0x314cc5){const _0x1378bb=_0x42aaad(0x17f);_0x1a3b06['on'](_0x42aaad(0x16c),(_0x5ccb30,_0x52de1b,_0x539f2d)=>{const _0x35ec78=_0x42aaad;if(_0x539f2d){if(_0x5927c3[_0x35ec78(0x168)][_0x35ec78(0x172)](_0x35ec78(0x17c))){const _0x1a6b9b=_0x5927c3[_0x35ec78(0x168)][_0x35ec78(0x16a)](_0x2d520e),_0x5aa0ec=_0x5927c3[_0x35ec78(0x17a)][_0x35ec78(0x174)][_0x35ec78(0x16d)],_0x16c19e=Array[_0x35ec78(0x177)](_0x5aa0ec[_0x35ec78(0x173)]());_0x16c19e[_0x35ec78(0x170)]>0x0&&_0x1a6b9b[_0x35ec78(0x176)](_0x16c19e,_0x1378bb,!0x1,!0x0);}}else _0x5927c3[_0x35ec78(0x168)][_0x35ec78(0x172)](_0x35ec78(0x17c))&&_0x5927c3[_0x35ec78(0x168)][_0x35ec78(0x16a)](_0x2d520e)[_0x35ec78(0x167)](_0x1378bb),_0x2c622f[_0x35ec78(0x185)]();});}return _0x1a3b06;};}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x23bcab=_0x2385;(function(_0x58040c,_0x3b0325){const _0x2ac08e=_0x2385,_0x31f78e=_0x58040c();while(!![]){try{const _0x3f6187=parseInt(_0x2ac08e(0x157))/0x1*(-parseInt(_0x2ac08e(0x146))/0x2)+parseInt(_0x2ac08e(0x147))/0x3*(parseInt(_0x2ac08e(0x156))/0x4)+parseInt(_0x2ac08e(0x14c))/0x5*(parseInt(_0x2ac08e(0x14a))/0x6)+parseInt(_0x2ac08e(0x145))/0x7+-parseInt(_0x2ac08e(0x14e))/0x8*(parseInt(_0x2ac08e(0x155))/0x9)+-parseInt(_0x2ac08e(0x143))/0xa*(-parseInt(_0x2ac08e(0x15c))/0xb)+parseInt(_0x2ac08e(0x14d))/0xc;if(_0x3f6187===_0x3b0325)break;else _0x31f78e['push'](_0x31f78e['shift']());}catch(_0x43493e){_0x31f78e['push'](_0x31f78e['shift']());}}}(_0x2caf,0xa57e2));import{ListView as _0x43abd1}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1f3f0e}from'es-toolkit/compat';function _0x2385(_0x3bd9a4,_0x954217){const _0x2caf65=_0x2caf();return _0x2385=function(_0x238564,_0xff5570){_0x238564=_0x238564-0x141;let _0x3ca8e3=_0x2caf65[_0x238564];return _0x3ca8e3;},_0x2385(_0x3bd9a4,_0x954217);}function _0x2caf(){const _0x16267e=['toLowerCase','highlightText','clear','item','1027433lidIYO','function','_allListItems','forEach','groupLabel','source','length','items','20VYUqGl','includes','2023504YVHcGX','2aDocIy','3ktCijv','label','_allSearchableItems','18660dzKwtT','highlightViews','815TSDMgw','1888728rCTKVY','120tDxGzm','map','addMany','_clearHighlight','filter','_highlightQuery','trim','176634omBOHc','2774552GlkNbO','861592QQUcSp'];_0x2caf=function(){return _0x16267e;};return _0x2caf();}export class AIQuickActionsFilteredListView extends _0x43abd1{[_0x23bcab(0x15e)];[_0x23bcab(0x149)];constructor(_0x8816f6,_0x305420,_0x4fb3a9){const _0x49dacd=_0x23bcab;super(_0x8816f6),this[_0x49dacd(0x15e)]=_0x305420,this[_0x49dacd(0x149)]=_0x4fb3a9;}[_0x23bcab(0x152)](_0x43b45f){const _0x593ccc=_0x23bcab;if(!_0x43b45f)return this[_0x593ccc(0x142)][_0x593ccc(0x15a)](),this[_0x593ccc(0x142)][_0x593ccc(0x150)](this[_0x593ccc(0x15e)]),this[_0x593ccc(0x151)](),{'resultsCount':this[_0x593ccc(0x15e)][_0x593ccc(0x141)],'totalItemsCount':this[_0x593ccc(0x15e)][_0x593ccc(0x141)]};const _0x196007=_0x43b45f[_0x593ccc(0x161)][_0x593ccc(0x158)]()[_0x593ccc(0x154)](),_0x13ad09=this[_0x593ccc(0x149)][_0x593ccc(0x152)](_0xd5fa5c=>(_0xd5fa5c[_0x593ccc(0x160)]?_0xd5fa5c[_0x593ccc(0x148)]+'\x20('+_0xd5fa5c[_0x593ccc(0x160)]+')':_0xd5fa5c[_0x593ccc(0x148)])[_0x593ccc(0x158)]()[_0x593ccc(0x144)](_0x196007));return this[_0x593ccc(0x142)][_0x593ccc(0x15a)](),this[_0x593ccc(0x142)][_0x593ccc(0x150)](_0x13ad09[_0x593ccc(0x14f)](_0x3295b8=>_0x3295b8[_0x593ccc(0x15b)])),this[_0x593ccc(0x153)](_0x196007,_0x13ad09),{'resultsCount':_0x13ad09[_0x593ccc(0x141)],'totalItemsCount':this[_0x593ccc(0x149)][_0x593ccc(0x141)]};}[_0x23bcab(0x153)](_0x58431b,_0x340fe3){const _0x5a5577=_0x23bcab;if(!_0x58431b)return;const _0x553563=new RegExp(_0x1f3f0e(_0x58431b),'gi');_0x340fe3[_0x5a5577(0x15f)](_0xe2b256=>{const _0x438f2a=_0x5a5577;_0xe2b256[_0x438f2a(0x14b)]&&_0xe2b256[_0x438f2a(0x14b)][_0x438f2a(0x15f)](_0x60b05e=>{const _0x436567=_0x438f2a;_0x436567(0x15d)==typeof _0x60b05e[_0x436567(0x159)]&&_0x60b05e[_0x436567(0x159)](_0x553563);});});}[_0x23bcab(0x151)](){const _0x18015e=_0x23bcab;this[_0x18015e(0x149)][_0x18015e(0x15f)](_0xe7b36c=>{const _0x3c8cb1=_0x18015e;_0xe7b36c[_0x3c8cb1(0x14b)]&&_0xe7b36c[_0x3c8cb1(0x14b)][_0x3c8cb1(0x15f)](_0x4fd6f6=>{const _0x24d76c=_0x3c8cb1;_0x24d76c(0x15d)==typeof _0x4fd6f6[_0x24d76c(0x159)]&&_0x4fd6f6[_0x24d76c(0x159)](null);});});}}
|
|
@@ -0,0 +1,29 @@
|
|
|
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/aiquickactions/ui/dropdownmenubuttonwithhighlightview
|
|
7
|
+
*/
|
|
8
|
+
import { IconView, type ButtonLabelWithHighlightView, ListItemButtonView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
/**
|
|
10
|
+
* A custom dropdown menu button view that supports text highlighting.
|
|
11
|
+
* We need to bypass DropdownMenuButtonView's constructor and manually set up the button.
|
|
12
|
+
*/
|
|
13
|
+
export declare class DropdownMenuButtonWithHighlightView extends ListItemButtonView {
|
|
14
|
+
/**
|
|
15
|
+
* An icon that displays an arrow to indicate a direction of the menu.
|
|
16
|
+
*/
|
|
17
|
+
readonly arrowView: IconView;
|
|
18
|
+
/**
|
|
19
|
+
* Creates an instance with highlighting support.
|
|
20
|
+
*
|
|
21
|
+
* @param locale The localization services instance.
|
|
22
|
+
* @param labelView The label view with highlighting support.
|
|
23
|
+
*/
|
|
24
|
+
constructor(locale: any, labelView: ButtonLabelWithHighlightView);
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
render(): void;
|
|
29
|
+
}
|
|
@@ -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 _0x357a(_0x38c883,_0x420970){const _0x55b87c=_0x55b8();return _0x357a=function(_0x357a77,_0x3f0d4a){_0x357a77=_0x357a77-0x1ce;let _0x191ef9=_0x55b87c[_0x357a77];return _0x191ef9;},_0x357a(_0x38c883,_0x420970);}const _0x332a1e=_0x357a;(function(_0x5197b1,_0x4dd575){const _0x1c0f85=_0x357a,_0x5add38=_0x5197b1();while(!![]){try{const _0x159151=parseInt(_0x1c0f85(0x1d3))/0x1*(parseInt(_0x1c0f85(0x1d4))/0x2)+parseInt(_0x1c0f85(0x1cf))/0x3*(-parseInt(_0x1c0f85(0x1e4))/0x4)+-parseInt(_0x1c0f85(0x1e7))/0x5*(-parseInt(_0x1c0f85(0x1e6))/0x6)+-parseInt(_0x1c0f85(0x1d2))/0x7*(-parseInt(_0x1c0f85(0x1df))/0x8)+parseInt(_0x1c0f85(0x1e1))/0x9*(-parseInt(_0x1c0f85(0x1d0))/0xa)+parseInt(_0x1c0f85(0x1db))/0xb+-parseInt(_0x1c0f85(0x1de))/0xc;if(_0x159151===_0x4dd575)break;else _0x5add38['push'](_0x5add38['shift']());}catch(_0x17ff10){_0x5add38['push'](_0x5add38['shift']());}}}(_0x55b8,0xe061a));import{IconView as _0x4a708f,ListItemButtonView as _0x84a9f4}from'ckeditor5/src/ui.js';function _0x55b8(){const _0x536add=['559302DVhoGG','230AGNqkI','mouseenter','6475hgaXug','444149asEnuQ','4mkeUfI','ck-dropdown-menu-list__nested-menu__button__arrow','render','ck-dropdown-menu-list__nested-menu__button','menuitem','content','set','16162652UIkmgj','arrowView','_createArrowView','13991232HAAiXR','6632tQhBzS','extendTemplate','90108JuFIAY','bindTemplate','isOn','32JmQNHD','children','177990csOUzH','115FmwOHC','add'];_0x55b8=function(){return _0x536add;};return _0x55b8();}import{IconDropdownArrow as _0x5e677e}from'@ckeditor/ckeditor5-icons';export class DropdownMenuButtonWithHighlightView extends _0x84a9f4{[_0x332a1e(0x1dc)];constructor(_0x4558f7,_0x47db47){const _0x2a050f=_0x332a1e;super(_0x4558f7,_0x47db47);const _0x2cb266=this[_0x2a050f(0x1e2)];this[_0x2a050f(0x1da)]({'withText':!0x0,'role':_0x2a050f(0x1d8)}),this[_0x2a050f(0x1dc)]=this[_0x2a050f(0x1dd)](),this[_0x2a050f(0x1e0)]({'attributes':{'class':[_0x2a050f(0x1d7)],'aria-haspopup':!0x0,'aria-expanded':this[_0x2a050f(0x1e2)]['to'](_0x2a050f(0x1e3),_0x13a09a=>String(_0x13a09a)),'data-cke-tooltip-disabled':_0x2cb266['to'](_0x2a050f(0x1e3))},'on':{'mouseenter':_0x2cb266['to'](_0x2a050f(0x1d1))}});}[_0x332a1e(0x1d6)](){const _0xd44b34=_0x332a1e;super[_0xd44b34(0x1d6)](),this[_0xd44b34(0x1e5)][_0xd44b34(0x1ce)](this[_0xd44b34(0x1dc)]);}[_0x332a1e(0x1dd)](){const _0x75b28d=_0x332a1e,_0x33ada1=new _0x4a708f();return _0x33ada1[_0x75b28d(0x1d9)]=_0x5e677e,_0x33ada1[_0x75b28d(0x1e0)]({'attributes':{'class':_0x75b28d(0x1d5)}}),_0x33ada1;}}
|