@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.3.0-alpha.0
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 _0x38a156=_0x3fc4;(function(_0xd75d86,_0x413c25){const _0x39a41c=_0x3fc4,_0x20c7b8=_0xd75d86();while(!![]){try{const _0x3ca8b6=-parseInt(_0x39a41c(0x1d6))/0x1*(-parseInt(_0x39a41c(0x20b))/0x2)+-parseInt(_0x39a41c(0x1dc))/0x3+-parseInt(_0x39a41c(0x1d4))/0x4+-parseInt(_0x39a41c(0x1ee))/0x5*(-parseInt(_0x39a41c(0x1ce))/0x6)+-parseInt(_0x39a41c(0x1d2))/0x7+-parseInt(_0x39a41c(0x1b8))/0x8+parseInt(_0x39a41c(0x1bf))/0x9*(parseInt(_0x39a41c(0x1bc))/0xa);if(_0x3ca8b6===_0x413c25)break;else _0x20c7b8['push'](_0x20c7b8['shift']());}catch(_0x3a4fbe){_0x20c7b8['push'](_0x20c7b8['shift']());}}}(_0x516e,0x4941d));function _0x516e(){const _0x3c31df=['right','remove','_removeActiveClassFromMarkers','_createContentView','clientY','add','deactivateChange','78pbXxcQ','position','ck-ai-review-mode-balloon-panel-suggestion','_setupClickOutsideHandler','3600954FCPCUV','ck-content','1401712UzeHUv','reverse','104059FwwDut','ck-ai-review-mode__change_active','top','locale','bottom','clientX','1708863ZBpiqO','ck-ai-review-mode-balloon-panel-suggestion_diff-active','isVisible','_getPointedRectIndexFromEvent','showDiffInBalloon','contentDiffed','bindTemplate','extendTemplate','length','innerHTML','content','_pinnedRectIndex','getIntersection','isDiffActive','pin','ck-reset','_pinnedTargetElement','updateContent','214645AmRHVP','left','setTemplate','div','from','_isPinnedRectVisible','getBoundingClientRect','_getBestRectPositionOnHover','hide','width','_getBestRectPositionOnClick','_pinnedTargetChangeId','resultResponseView','ck-ai-review-mode__suggestion-text','resultItemView','changeId','push','click','querySelectorAll','delegate','fire','.ck-ai-review-mode__change_active','render','arrow_se','hover','span[data-marker-id*=\x22','_setActiveClassOnMarker','unpin','element','6iDEsrO','hideDiffInBalloon','acceptChange','showBalloon','25808EWzMJt','documentElement','set','show','5830IECieG','replace','classList','13392qbwBfo','getClientRects','document','dismissChange','forEach','arrow_','hideBalloon','showDiff'];_0x516e=function(){return _0x3c31df;};return _0x516e();}function _0x3fc4(_0x21d8bb,_0x51c7a7){const _0x516e01=_0x516e();return _0x3fc4=function(_0x3fc4af,_0x3ad15e){_0x3fc4af=_0x3fc4af-0x1b5;let _0xcc71f0=_0x516e01[_0x3fc4af];return _0xcc71f0;},_0x3fc4(_0x21d8bb,_0x51c7a7);}import{Rect as _0x3646b4,getConstrainedViewportRect as _0x3a3326,global as _0x44d02e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x293d10,View as _0x340019,clickOutsideHandler as _0x460bc3}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCheckListItemResultsView as _0x4faf9f}from'./aireviewmodechecklistitemresultview.js';import'../../../theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeBalloonSuggestionItemView extends _0x293d10{[_0x38a156(0x1fc)];[_0x38a156(0x1e7)]=void 0x0;[_0x38a156(0x1ec)]=void 0x0;[_0x38a156(0x1f9)]=void 0x0;constructor(_0x43837f,_0x3fee5b){const _0x1da3e3=_0x38a156;super(_0x43837f),this[_0x1da3e3(0x1ba)]({'isVisible':!0x1,'position':_0x1da3e3(0x205),'class':null,'top':0x0,'left':0x0}),this[_0x1da3e3(0x1e3)]({'tag':_0x1da3e3(0x1f1),'attributes':{'class':[_0x1da3e3(0x1eb)],'tabindex':'-1'}}),this[_0x1da3e3(0x1ba)](_0x1da3e3(0x1e9),!0x1),this[_0x1da3e3(0x1e6)][_0x1da3e3(0x1cc)](this[_0x1da3e3(0x1ca)]()),_0x3fee5b[_0x1da3e3(0x1cc)](this);}[_0x38a156(0x204)](){const _0x49bfeb=_0x38a156;super[_0x49bfeb(0x204)](),this[_0x49bfeb(0x1d1)]();}[_0x38a156(0x1ed)](_0xcf5277){const _0x32aa11=_0x38a156;this[_0x32aa11(0x1fc)][_0x32aa11(0x1fd)]=_0xcf5277['id'],this[_0x32aa11(0x1fc)][_0x32aa11(0x1fa)][_0x32aa11(0x20a)][_0x32aa11(0x1e5)]=_0xcf5277[_0x32aa11(0x1e1)];}[_0x38a156(0x1b7)](_0x382633,_0x6ce55c,_0x954633,_0x4dadb1,_0x1d620e,_0x28d296){const _0x16c0b6=_0x38a156;this[_0x16c0b6(0x1c9)](),this[_0x16c0b6(0x1ed)](_0x382633),this[_0x16c0b6(0x1bb)]();const _0x1a506c=Array[_0x16c0b6(0x1f2)](_0x6ce55c[_0x16c0b6(0x1c0)]())[_0x16c0b6(0x1d5)](),_0x1ebfb3=this[_0x16c0b6(0x1df)](_0x954633,_0x1a506c);_0x16c0b6(0x1ff)===_0x4dadb1?(this[_0x16c0b6(0x1e9)]=!0x0,this[_0x16c0b6(0x208)](_0x382633['id']),this[_0x16c0b6(0x1ea)]({'target':()=>this[_0x16c0b6(0x1f8)](_0x6ce55c,_0x1ebfb3,_0x382633['id'],_0x1d620e,_0x28d296)})):_0x16c0b6(0x206)===_0x4dadb1&&(this[_0x16c0b6(0x1e9)]=!0x1,this[_0x16c0b6(0x1ea)]({'target':()=>this[_0x16c0b6(0x1f5)](_0x6ce55c,_0x1ebfb3,_0x382633['id'])}));}[_0x38a156(0x1c5)](){const _0x25932f=_0x38a156;this[_0x25932f(0x1f6)](),this[_0x25932f(0x209)](),this[_0x25932f(0x1c9)](),this[_0x25932f(0x1e7)]=void 0x0,this[_0x25932f(0x1ec)]=void 0x0,this[_0x25932f(0x1f9)]=void 0x0;}[_0x38a156(0x1b5)](){const _0x341ae8=_0x38a156;this[_0x341ae8(0x1fc)][_0x341ae8(0x1c6)]=!0x1;}[_0x38a156(0x1e0)](){const _0x3feb67=_0x38a156;this[_0x3feb67(0x1fc)][_0x3feb67(0x1c6)]=!0x0;}[_0x38a156(0x1cd)](){const _0x474900=_0x38a156;this[_0x474900(0x202)](_0x474900(0x1cd));}[_0x38a156(0x1c9)](){const _0x3542cd=_0x38a156;_0x44d02e[_0x3542cd(0x1c1)][_0x3542cd(0x200)](_0x3542cd(0x203))[_0x3542cd(0x1c3)](_0x5d35f3=>{const _0x31ea76=_0x3542cd;_0x5d35f3[_0x31ea76(0x1be)][_0x31ea76(0x1c8)](_0x31ea76(0x1d7));});}[_0x38a156(0x208)](_0x30622c){const _0xdaf44b=_0x38a156;_0x44d02e[_0xdaf44b(0x1c1)][_0xdaf44b(0x200)](_0xdaf44b(0x207)+_0x30622c+'\x22]')[_0xdaf44b(0x1c3)](_0x3795ed=>{const _0x33b516=_0xdaf44b;_0x3795ed[_0x33b516(0x1be)][_0x33b516(0x1cc)](_0x33b516(0x1d7));});}[_0x38a156(0x1d1)](){const _0x3f947a=_0x38a156;_0x460bc3({'emitter':this,'activator':()=>this[_0x3f947a(0x1de)],'contextElements':()=>{const _0x593a84=_0x3f947a,_0x3bb923=[this[_0x593a84(0x20a)]];return this[_0x593a84(0x1ec)]&&_0x3bb923[_0x593a84(0x1fe)](this[_0x593a84(0x1ec)]),_0x3bb923;},'callback':()=>{const _0x4bcea4=_0x3f947a;this[_0x4bcea4(0x1f6)](),this[_0x4bcea4(0x209)](),this[_0x4bcea4(0x1c9)](),this[_0x4bcea4(0x1cd)](),this[_0x4bcea4(0x1ec)]=void 0x0,this[_0x4bcea4(0x1e7)]=void 0x0,this[_0x4bcea4(0x1f9)]=void 0x0;}});}[_0x38a156(0x1ca)](){const _0x3c2e8b=_0x38a156,_0x54514c=new _0x340019();return this[_0x3c2e8b(0x1fc)]=new _0x4faf9f(this[_0x3c2e8b(0x1d9)],''),this[_0x3c2e8b(0x1fc)][_0x3c2e8b(0x1fa)][_0x3c2e8b(0x1e3)]({'attributes':{'class':[_0x3c2e8b(0x1d3)]}}),this[_0x3c2e8b(0x1fc)][_0x3c2e8b(0x201)](_0x3c2e8b(0x1b6),_0x3c2e8b(0x1c2))['to'](this),_0x54514c[_0x3c2e8b(0x1f0)]({'tag':_0x3c2e8b(0x1f1),'attributes':{'class':[_0x3c2e8b(0x1eb),_0x3c2e8b(0x1d0),this[_0x3c2e8b(0x1e2)]['if'](_0x3c2e8b(0x1e9),_0x3c2e8b(0x1dd))]},'children':[{'tag':'p','attributes':{'class':[_0x3c2e8b(0x1fb)]},'children':[this[_0x3c2e8b(0x1fc)]]}]}),_0x54514c;}[_0x38a156(0x1f8)](_0x23ee0a,_0x255ed2,_0x376195,_0x2a11d7,_0x16799d){const _0x41e444=_0x38a156,_0x2f27a9=this[_0x41e444(0x1cf)][_0x41e444(0x1bd)](_0x41e444(0x1c4),''),_0x75e8d6=Array[_0x41e444(0x1f2)](_0x23ee0a[_0x41e444(0x1c0)]());let _0x4a5084,_0x1aafcc=_0x75e8d6[_0x41e444(0x1d5)]();return void 0x0!==_0x255ed2&&this[_0x41e444(0x1f3)](_0x1aafcc[_0x255ed2],_0x2a11d7,_0x16799d)?(_0x4a5084=_0x1aafcc[_0x255ed2],this[_0x41e444(0x1e7)]=_0x255ed2):this[_0x41e444(0x1f3)](_0x1aafcc[0x0],_0x2a11d7,_0x16799d)&&void 0x0===_0x255ed2?_0x4a5084=_0x1aafcc[0x0]:(_0x1aafcc='s'==_0x2f27a9[0x0]?[..._0x75e8d6][_0x41e444(0x1d5)]():_0x75e8d6,_0x1aafcc[_0x41e444(0x1c3)](_0x119434=>{const _0x2bf69d=_0x41e444;this[_0x2bf69d(0x1f3)](_0x119434,_0x2a11d7,_0x16799d)&&(_0x4a5084=_0x119434);})),this[_0x41e444(0x1f9)]=_0x376195,this[_0x41e444(0x1ec)]=_0x23ee0a,_0x4a5084||_0x23ee0a[_0x41e444(0x1f4)]();}[_0x38a156(0x1f5)](_0x3e4174,_0x3e4a4c,_0x19bb72){const _0x37a662=_0x38a156,_0x2f5b30=Array[_0x37a662(0x1f2)](_0x3e4174[_0x37a662(0x1c0)]())[_0x37a662(0x1d5)]();if(void 0x0===this[_0x37a662(0x1e7)]&&void 0x0!==_0x3e4a4c&&this[_0x37a662(0x1f9)]!==_0x19bb72)return this[_0x37a662(0x1e7)]=_0x3e4a4c,this[_0x37a662(0x1ec)]=_0x3e4174,this[_0x37a662(0x1f9)]=_0x19bb72,_0x2f5b30[_0x3e4a4c];if(void 0x0!==this[_0x37a662(0x1e7)]&&this[_0x37a662(0x1f9)]===_0x19bb72){if(_0x3e4174!==this[_0x37a662(0x1ec)])return Array[_0x37a662(0x1f2)](this[_0x37a662(0x1ec)][_0x37a662(0x1c0)]())[_0x37a662(0x1d5)]()[this[_0x37a662(0x1e7)]];return _0x2f5b30[this[_0x37a662(0x1e7)]];}return void 0x0!==_0x3e4a4c&&this[_0x37a662(0x1f9)]!==_0x19bb72?(this[_0x37a662(0x1e7)]=_0x3e4a4c,this[_0x37a662(0x1ec)]=_0x3e4174,this[_0x37a662(0x1f9)]=_0x19bb72,_0x2f5b30[_0x3e4a4c]):_0x3e4174[_0x37a662(0x1f4)]();}[_0x38a156(0x1df)](_0x119d4c,_0x280061){const _0x5a6e03=_0x38a156;if(_0x119d4c)for(let _0x4e7808=0x0;_0x4e7808<_0x280061[_0x5a6e03(0x1e4)];_0x4e7808++){const _0x8eedba=_0x280061[_0x4e7808];if(_0x119d4c[_0x5a6e03(0x1db)]>=_0x8eedba[_0x5a6e03(0x1ef)]-0x3&&_0x119d4c[_0x5a6e03(0x1db)]<=_0x8eedba[_0x5a6e03(0x1c7)]+0x3&&_0x119d4c[_0x5a6e03(0x1cb)]>=_0x8eedba[_0x5a6e03(0x1d8)]-0x3&&_0x119d4c[_0x5a6e03(0x1cb)]<=_0x8eedba[_0x5a6e03(0x1da)]+0x3)return _0x4e7808;}}[_0x38a156(0x1f3)](_0x4e4a48,_0x3ed3ea,_0x1298fb){const _0x774cb9=_0x38a156,_0xf05f9=new _0x3646b4(_0x4e4a48),_0x10e606=_0x3ed3ea||document[_0x774cb9(0x1b9)],_0x6d84c4=_0xf05f9[_0x774cb9(0x1e8)](_0x3a3326(_0x1298fb)),_0x5be7a9=new _0x3646b4(_0x10e606)[_0x774cb9(0x1e8)](_0xf05f9);return!!(_0x6d84c4&&_0x5be7a9&&_0xf05f9[_0x774cb9(0x1f7)]>0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x235694=_0xb2a0;(function(_0x20c20f,_0x2b7caa){const _0x54537c=_0xb2a0,_0x1f8864=_0x20c20f();while(!![]){try{const _0x5198d5=parseInt(_0x54537c(0xc7))/0x1+parseInt(_0x54537c(0xd5))/0x2*(parseInt(_0x54537c(0xe6))/0x3)+parseInt(_0x54537c(0xba))/0x4+parseInt(_0x54537c(0xb3))/0x5+-parseInt(_0x54537c(0xbc))/0x6+-parseInt(_0x54537c(0xc9))/0x7+parseInt(_0x54537c(0xc8))/0x8;if(_0x5198d5===_0x2b7caa)break;else _0x1f8864['push'](_0x1f8864['shift']());}catch(_0x53d514){_0x1f8864['push'](_0x1f8864['shift']());}}}(_0x433f,0x5cf38));import{View as _0x3e697b,ButtonView as _0x11f720}from'ckeditor5/src/ui.js';function _0xb2a0(_0x139001,_0xb4d95d){const _0x433fd7=_0x433f();return _0xb2a0=function(_0xb2a006,_0x58d3ac){_0xb2a006=_0xb2a006-0xae;let _0x2212c2=_0x433fd7[_0xb2a006];return _0x2212c2;},_0xb2a0(_0x139001,_0xb4d95d);}import{IconInfo as _0x562271,IconCheck as _0x41283c,IconCancel as _0x583234,IconOutdated as _0x41d5ff}from'ckeditor5/src/icons.js';import{getTranslation as _0x51728b}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x3e697b{[_0x235694(0xdc)];[_0x235694(0xb9)];[_0x235694(0xcb)];[_0x235694(0xcc)];[_0x235694(0xc2)];constructor(_0x1669f7,_0x545268){const _0x20098a=_0x235694;super(_0x1669f7),this['id']=_0x545268,this[_0x20098a(0xd8)](_0x20098a(0xb2),_0x20098a(0xe7)),this[_0x20098a(0xd8)](_0x20098a(0xc3),_0x545268),this[_0x20098a(0xdc)]=this[_0x20098a(0xd3)](),this[_0x20098a(0xb9)]=this[_0x20098a(0xea)](),this[_0x20098a(0xcb)]=this[_0x20098a(0xbb)](),this[_0x20098a(0xcc)]=this[_0x20098a(0xca)](),this[_0x20098a(0xc2)]=this[_0x20098a(0xe8)](),this[_0x20098a(0xd8)](_0x20098a(0xe5),!0x1),this[_0x20098a(0xd8)](_0x20098a(0xb4),!0x1),this[_0x20098a(0xd8)](_0x20098a(0xae),!0x0),this[_0x20098a(0xde)]({'tag':_0x20098a(0xd6),'attributes':{'class':[_0x20098a(0xe1),this[_0x20098a(0xc4)]['if'](_0x20098a(0xb4),_0x20098a(0xdb))]},'on':{'click':this[_0x20098a(0xc4)]['to'](_0x20098a(0xcd))},'children':[this[_0x20098a(0xdc)],{'tag':_0x20098a(0xd6),'attributes':{'class':[_0x20098a(0xbe)]},'children':[{'tag':_0x20098a(0xd6),'attributes':{'class':[_0x20098a(0xe9)]},'children':[this[_0x20098a(0xb9)],this[_0x20098a(0xcb)],this[_0x20098a(0xc2)]]},this[_0x20098a(0xcc)]]}]}),this['on'](_0x20098a(0xcd),()=>{const _0x291a26=_0x20098a;this[_0x291a26(0xe4)](_0x291a26(0xb5),{'id':_0x545268,'source':this});});}[_0x235694(0xbf)](){const _0x5d0c47=_0x235694;this[_0x5d0c47(0xb4)]=!0x0;}[_0x235694(0xe2)](){const _0x562922=_0x235694;this[_0x562922(0xb4)]=!0x1;}[_0x235694(0xd3)](){const _0xa07fde=_0x235694,_0x1ca590=new _0x3e697b(this[_0xa07fde(0xbd)]);return _0x1ca590[_0xa07fde(0xde)]({'tag':_0xa07fde(0xd6),'attributes':{'class':['ck',_0xa07fde(0xc6),_0xa07fde(0xc0),_0xa07fde(0xee),this[_0xa07fde(0xc4)]['if'](_0xa07fde(0xae),_0xa07fde(0xc5),_0x363c02=>!_0x363c02)]}}),_0x1ca590;}[_0x235694(0xea)](){const _0x28d5ab=_0x235694,_0x135485=new _0x11f720(this[_0x28d5ab(0xbd)]);return _0x135485[_0x28d5ab(0xd8)]({'label':_0x51728b(this[_0x28d5ab(0xbd)],_0x28d5ab(0xb0)),'withText':!0x0}),_0x135485[_0x28d5ab(0xcf)]({'on':{'click':this[_0x28d5ab(0xc4)]['to'](_0x45c202=>{const _0x396ae3=_0x28d5ab;this[_0x396ae3(0xe4)](_0x396ae3(0xdd),{'id':this[_0x396ae3(0xc3)]}),_0x45c202[_0x396ae3(0xce)]();})},'attributes':{'class':[_0x28d5ab(0xdf),_0x28d5ab(0xc1),this[_0x28d5ab(0xc4)]['if'](_0x28d5ab(0xb2),_0x28d5ab(0xc5),_0x2faa32=>_0x28d5ab(0xe7)!==_0x2faa32)]}}),_0x135485;}[_0x235694(0xbb)](){const _0x136315=_0x235694,_0x64f0c8=new _0x11f720(this[_0x136315(0xbd)]);return _0x64f0c8[_0x136315(0xd8)]({'label':_0x51728b(this[_0x136315(0xbd)],_0x136315(0xeb)),'withText':!0x0}),_0x64f0c8[_0x136315(0xcf)]({'on':{'click':this[_0x136315(0xc4)]['to'](_0x4292d6=>{const _0x4cebe3=_0x136315;this[_0x4cebe3(0xe4)](_0x4cebe3(0xd9),{'id':this[_0x4cebe3(0xc3)]}),_0x4292d6[_0x4cebe3(0xce)]();})},'attributes':{'class':[_0x136315(0xef),_0x136315(0xd2),this[_0x136315(0xc4)]['if'](_0x136315(0xb2),_0x136315(0xc5),_0x31710b=>_0x136315(0xe7)!==_0x31710b)]}}),_0x64f0c8;}[_0x235694(0xca)](){const _0x308df0=_0x235694,_0x1de17a=new _0x11f720(this[_0x308df0(0xbd)]);return _0x1de17a[_0x308df0(0xd8)]({'label':_0x51728b(this[_0x308df0(0xbd)],_0x308df0(0xd1)),'icon':_0x562271,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x308df0(0xaf),'class':_0x308df0(0xe0)}),_0x1de17a[_0x308df0(0xb1)](_0x308df0(0xb6))['to'](this,_0x308df0(0xe5),_0xaeb39b=>_0xaeb39b),_0x1de17a['on'](_0x308df0(0xd7),()=>{const _0x5f8c0a=_0x308df0;this[_0x5f8c0a(0xe5)]=!this[_0x5f8c0a(0xe5)];}),_0x1de17a;}[_0x235694(0xe8)](){const _0x24904c=_0x235694,_0x3d0c96=new _0x11f720(this[_0x24904c(0xbd)]);return _0x3d0c96[_0x24904c(0xd8)]({'withText':!0x0,'isEnabled':!0x1}),_0x3d0c96[_0x24904c(0xb1)](_0x24904c(0xb7))['to'](this,_0x24904c(0xb2),_0x3e847c=>_0x51728b(this[_0x24904c(0xbd)],_0x24904c(0xd0)+_0x3e847c[_0x24904c(0xe3)]())),_0x3d0c96[_0x24904c(0xb1)](_0x24904c(0xb8))['to'](this,_0x24904c(0xb2),_0x590f0f=>_0x24904c(0xda)===_0x590f0f[_0x24904c(0xe3)]()?_0x41283c:_0x24904c(0xed)===_0x590f0f[_0x24904c(0xe3)]()?_0x583234:_0x41d5ff),_0x3d0c96[_0x24904c(0xcf)]({'attributes':{'class':[_0x24904c(0xdf),_0x24904c(0xd4),this[_0x24904c(0xc4)]['if'](_0x24904c(0xb2),_0x24904c(0xc5),_0x408f66=>_0x24904c(0xe7)===_0x408f66)],'disabled':_0x24904c(0xec)}}),_0x3d0c96;}}function _0x433f(){const _0x3c8f14=['status','1128240iBEyCJ','isActive','activateChange','isOn','label','icon','acceptButtonView','581188hPFqaq','_createDismissButtonView','4082742JgCkUr','locale','ck-ai-review-mode__check-run-result-footer','setItemAsActive','ck-content-direct-excluded','ck-ai-review-mode__check-run-result-accept-button','statusButtonView','changeId','bindTemplate','ck-hidden','ck-content','400787QFWzTg','4363576YXnfGy','5312160eoskUx','_createInfoButtonView','dismissButtonView','infoButtonView','click','stopPropagation','extendTemplate','AI_REVIEW_MODE_CHECK_STATUS_','AI_REVIEW_MODE_LEARN_MORE','ck-ai-review-mode__check-run-result-dismiss-button','_createResultResponseView','ck-ai-review-mode__check-run-result-status-button','1005772TkRuvF','div','execute','set','dismissChange','ACCEPTED','ck-ai-review-mode__check-run-result_active','resultResponseView','acceptChange','setTemplate','ck-ai-button-secondary','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','ck-ai-review-mode__check-run-result','setItemAsInactive','toUpperCase','fire','isInfoToggleOn','3kxVxjk','pending','_createStatusButtonView','ck-ai-review-mode__check-run-result-action-buttons','_createAcceptButtonView','AI_REVIEW_MODE_DISMISS_CHANGE','disabled','REJECTED','ck-ai-review-mode__check-run-result-response','ck-ai-button-tertiary-filled','showDiff','menuitemcheckbox','AI_REVIEW_MODE_ACCEPT_CHANGE','bind'];_0x433f=function(){return _0x3c8f14;};return _0x433f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x313bc1,KeystrokeHandler as Bt,FocusTracker as jt}from'ckeditor5/src/utils.js';import{View as _0x1f56de,ViewCollection as _0x144ea5,ButtonView as _0x763841,FormRowView as _0x2b154c,createDropdown as _0x1dd4f8,addListToDropdown as _0x2cddf1,UIModel as _0x166b96,ButtonLabelView as _0xbc3be9,LabeledFieldView as _0x448554,FocusCycler as Vt}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x25237a}from'./aireviemodepromptinputview.js';import{getTranslation as _0x2d1e29}from'../../aicore/utils/common-translations.js';import{AIModels as Mt}from'../../aicore/model/aimodels.js';export class AIReviewModeCustomCheckView extends _0x1f56de{['focusTracker']=new jt();['keystrokes']=new Bt();['focusCycler'];['_focusables']=new _0x144ea5();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x29d89c,_0x53eaf7){super(_0x29d89c),this['_check']=_0x53eaf7,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x53eaf7['models']&&_0x53eaf7['models']['length']>0x0?_0x53eaf7['models'][0x0]['id']:'',this['_defaultLabel']=_0x53eaf7['models']&&_0x53eaf7['models']['length']>0x0?_0x53eaf7['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x448554(this['locale'],()=>new _0x25237a(_0x29d89c)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new _0x313bc1(),this['_setModelList'](),_0x2cddf1(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions']},'children':[new _0x2b154c(this['locale'],{'children':[this['promptInputView']]}),new _0x2b154c(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x4ab955,_0x31fa86)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x31fa86()):_0x31fa86();}),this['focusCycler']=new Vt({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x47bb34=>{this['_focusables']['add'](_0x47bb34),this['focusTracker']['add'](_0x47bb34['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x3d62cd of this['_getFormValidators']()){const _0x29725b=_0x3d62cd();if(_0x29725b)return this['promptInputView']['errorText']=_0x29725b,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x2d1e29(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x3da808=new _0x763841(this['locale']),t=this['locale']['t'];return _0x3da808['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x3da808['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x3da808;}['_createCancelButtonView'](){const _0x1c316a=new _0x763841(this['locale']),t=this['locale']['t'];return _0x1c316a['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x1c316a['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0xc303f2=>{_0xc303f2['stopPropagation']();})}}),_0x1c316a['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x1c316a;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x55cc7b=this['_check']['models'];if(this['resetToDefault'](),_0x55cc7b?.['length']){const _0x5cf83e=Mt['getLocalized'](this['locale'],_0x55cc7b);for(const _0x3cd4cc of _0x5cf83e){const _0x4cfd92=new _0x166b96({'label':_0x3cd4cc['name'],'withText':!0x0,'role':'menuitemradio','id':_0x3cd4cc['id'],'model':_0x3cd4cc});_0x4cfd92['bind']('isOn')['to'](this,'modelId',_0x31fc1f=>_0x31fc1f===_0x3cd4cc['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x4cfd92,'labelView':new Xs(this['locale'],_0x3cd4cc)});}}}['_createModelSelectionDropdown'](){const _0x54a988=_0x1dd4f8(this['locale']);return _0x54a988['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x54a988['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x54a988,'execute',_0x3698f9=>{this['modelId']=_0x3698f9['source']['model']['id'],_0x54a988['buttonView']['label']=_0x3698f9['source']['label'];}),_0x54a988;}['_createActionsFooterView'](){const _0x2376e4=new _0x1f56de(this['locale']);return _0x2376e4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x2376e4;}}class Xs extends _0xbc3be9{constructor(_0x5e74bd,_0x1a35a0){super();const _0x581082=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x581082['to']('style'),'id':_0x581082['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x581082['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x1a35a0['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x10d7(_0x135f88,_0x5f0b45){var _0x47f464=_0x47f4();return _0x10d7=function(_0x10d77c,_0x4fea1d){_0x10d77c=_0x10d77c-0x11c;var _0x454228=_0x47f464[_0x10d77c];return _0x454228;},_0x10d7(_0x135f88,_0x5f0b45);}(function(_0x57199a,_0x101a7a){var _0x12ed91=_0x10d7,_0x3358e1=_0x57199a();while(!![]){try{var _0x22ca57=-parseInt(_0x12ed91(0x122))/0x1+parseInt(_0x12ed91(0x123))/0x2+parseInt(_0x12ed91(0x12d))/0x3+-parseInt(_0x12ed91(0x12b))/0x4*(-parseInt(_0x12ed91(0x11f))/0x5)+-parseInt(_0x12ed91(0x128))/0x6*(-parseInt(_0x12ed91(0x121))/0x7)+parseInt(_0x12ed91(0x12c))/0x8*(parseInt(_0x12ed91(0x124))/0x9)+parseInt(_0x12ed91(0x120))/0xa*(-parseInt(_0x12ed91(0x126))/0xb);if(_0x22ca57===_0x101a7a)break;else _0x3358e1['push'](_0x3358e1['shift']());}catch(_0x35eaec){_0x3358e1['push'](_0x3358e1['shift']());}}}(_0x47f4,0xeceeb));import{ButtonView as _0x45f40f}from'ckeditor5/src/ui.js';import{getTranslation as _0x13b8d3}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeFinishReviewButtonView extends _0x45f40f{constructor(_0x314eb1){var _0x3962ed=_0x10d7;super(_0x314eb1),this[_0x3962ed(0x129)]({'label':_0x13b8d3(this[_0x3962ed(0x12a)],_0x3962ed(0x11c)),'withText':!0x0,'class':_0x3962ed(0x11e)}),this['on'](_0x3962ed(0x125),()=>{var _0x4cac2a=_0x3962ed;this[_0x4cac2a(0x127)](_0x4cac2a(0x11d));});}}function _0x47f4(){var _0x4749a6=['set','locale','9332XDDmKX','248rSdxMW','3033306rdfPdq','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','finishReview','ck-ai-button-primary','4035UXUygc','10lbovwm','28RrGPDF','703216ckUNxI','1942926OrLvGA','440154ntuhAf','execute','45692009uBjdoC','fire','669192ifEVek'];_0x47f4=function(){return _0x4749a6;};return _0x47f4();}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aireviewmode/ui/aireviewmodegeneralerrorview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
export declare class AIReviewModeGeneralErrorView extends View {
|
|
11
|
+
/**
|
|
12
|
+
* Controls whether the view is visible.
|
|
13
|
+
*
|
|
14
|
+
* @observable
|
|
15
|
+
*/
|
|
16
|
+
isVisible: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The error message to display.
|
|
19
|
+
*
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
errorMessage: string;
|
|
23
|
+
constructor(locale: Locale);
|
|
24
|
+
}
|
|
@@ -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 _0x5d7c(){const _0x25d312=['div','2231620PqIiPR','4BHDhJe','setTemplate','11962320sxJTQB','314399BUPbJF','isVisible','ck\x20ck-ai-notification\x20ck-ai-notification_error','10TucCaG','48sMgCUF','ck-hidden','2846565oORGuz','bindTemplate','ck-ai-review-mode__general-error-container','set','427917TqFmCd','errorMessage','2012262ellfOU','1086672xBaJnG'];_0x5d7c=function(){return _0x25d312;};return _0x5d7c();}function _0x1a23(_0x151dae,_0x125025){const _0x5d7cd6=_0x5d7c();return _0x1a23=function(_0x1a2361,_0x31e280){_0x1a2361=_0x1a2361-0x163;let _0x446ffb=_0x5d7cd6[_0x1a2361];return _0x446ffb;},_0x1a23(_0x151dae,_0x125025);}(function(_0x5f0eef,_0x571947){const _0x396a3b=_0x1a23,_0x340206=_0x5f0eef();while(!![]){try{const _0x4cf19f=parseInt(_0x396a3b(0x175))/0x1*(parseInt(_0x396a3b(0x172))/0x2)+-parseInt(_0x396a3b(0x16e))/0x3+parseInt(_0x396a3b(0x171))/0x4*(-parseInt(_0x396a3b(0x165))/0x5)+-parseInt(_0x396a3b(0x166))/0x6*(-parseInt(_0x396a3b(0x16c))/0x7)+-parseInt(_0x396a3b(0x16f))/0x8+parseInt(_0x396a3b(0x168))/0x9+parseInt(_0x396a3b(0x174))/0xa;if(_0x4cf19f===_0x571947)break;else _0x340206['push'](_0x340206['shift']());}catch(_0x582a30){_0x340206['push'](_0x340206['shift']());}}}(_0x5d7c,0xacd7d));import{View as _0x2ec37f}from'ckeditor5/src/ui.js';export class AIReviewModeGeneralErrorView extends _0x2ec37f{constructor(_0x3ec95e){const _0x298c4c=_0x1a23;super(_0x3ec95e),this[_0x298c4c(0x16b)](_0x298c4c(0x163),!0x1),this[_0x298c4c(0x16b)](_0x298c4c(0x16d),'');const _0x59f6b3=this[_0x298c4c(0x169)];this[_0x298c4c(0x173)]({'tag':_0x298c4c(0x170),'attributes':{'class':['ck',_0x298c4c(0x16a),_0x59f6b3['if'](_0x298c4c(0x163),_0x298c4c(0x167),_0x58dfc3=>!_0x58dfc3)]},'children':[{'tag':'p','attributes':{'class':_0x298c4c(0x164)},'children':[{'text':_0x59f6b3['to'](_0x298c4c(0x16d))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1deb03=_0x25df;(function(_0x207c37,_0x174d83){const _0x341d13=_0x25df,_0xfccde2=_0x207c37();while(!![]){try{const _0x1c2848=-parseInt(_0x341d13(0x1fc))/0x1+parseInt(_0x341d13(0x1f7))/0x2+parseInt(_0x341d13(0x1f4))/0x3+parseInt(_0x341d13(0x1f5))/0x4+parseInt(_0x341d13(0x1ef))/0x5+parseInt(_0x341d13(0x201))/0x6+parseInt(_0x341d13(0x1f3))/0x7*(-parseInt(_0x341d13(0x1f0))/0x8);if(_0x1c2848===_0x174d83)break;else _0xfccde2['push'](_0xfccde2['shift']());}catch(_0x19533a){_0xfccde2['push'](_0xfccde2['shift']());}}}(_0x11c1,0xe1412));import{ListItemView as _0x19183a,ViewCollection as _0x31782c}from'ckeditor5/src/ui.js';function _0x11c1(){const _0x1794ae=['951254kdJvzL','div','entries','hasChecks','ck-ai-review-mode__check-list','9271038WMBtom','setTemplate','bindTemplate','_checkViews','locale','length','resetAllParameterizedChecks','clear','6719030QkFjNY','376TqSymS','isVisible','delegate','719558JrRWpW','2906016GZbuYl','5247020ONkebh','ck-hidden','3071616xjuLnc','resetToDefault','add','runReviewCheck','setChecks'];_0x11c1=function(){return _0x1794ae;};return _0x11c1();}import{AIReviewModeReviewCommandListItemView as _0x5e322f}from'./aireviewmodereviewcommandlistitemview.js';function _0x25df(_0x14e059,_0x5ecf61){const _0x11c10a=_0x11c1();return _0x25df=function(_0x25dfea,_0x2de973){_0x25dfea=_0x25dfea-0x1eb;let _0x2310e1=_0x11c10a[_0x25dfea];return _0x2310e1;},_0x25df(_0x14e059,_0x5ecf61);}import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x19183a{[_0x1deb03(0x204)];constructor(_0x3ac18d){const _0x48a52a=_0x1deb03;super(_0x3ac18d),this[_0x48a52a(0x204)]=new _0x31782c();const _0x1f7735=this[_0x48a52a(0x203)];this[_0x48a52a(0x202)]({'tag':_0x48a52a(0x1fd),'attributes':{'class':[_0x48a52a(0x200),_0x1f7735['if'](_0x48a52a(0x1f1),_0x48a52a(0x1f6),_0x2c6dec=>!_0x2c6dec)]},'children':this[_0x48a52a(0x204)]});}[_0x1deb03(0x1fb)](_0x22d3cc){const _0x2a1f98=_0x1deb03;this[_0x2a1f98(0x204)][_0x2a1f98(0x1ee)]();for(const [_0x2ee44b,_0x14ed36]of _0x22d3cc[_0x2a1f98(0x1fe)]()){const _0x3e89f9=new _0x5e322f(this[_0x2a1f98(0x1eb)],_0x14ed36,_0x2ee44b);_0x3e89f9[_0x2a1f98(0x1f2)](_0x2a1f98(0x1fa))['to'](this),this[_0x2a1f98(0x204)][_0x2a1f98(0x1f9)](_0x3e89f9);}}[_0x1deb03(0x1ff)](){const _0x9eb31b=_0x1deb03;return this[_0x9eb31b(0x204)][_0x9eb31b(0x1ec)]>0x0;}[_0x1deb03(0x1ed)](){const _0x29dab5=_0x1deb03;for(const _0x45998b of this[_0x29dab5(0x204)])_0x45998b instanceof _0x5e322f&&_0x45998b[_0x29dab5(0x1f8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as _0x13276a,View as _0x56eba2,ViewCollection as _0x43a950,ButtonView as _0x11b6fd}from'ckeditor5/src/ui.js';import{IconStop as _0xac6891,IconEye as _0x319091,IconEyeCrossedOut as _0x138b77}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0xfd409f}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x55ab1d}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x4cf731,SKELETON_DEFINITIONS as _0x44d4c5}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x4bf82a}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x4fbf48}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x4be4aa}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x13276a{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x4a4790){super(_0x4a4790),this['_resultViews']=new _0x43a950(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x4bf82a(_0x4a4790),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x35a36f=this['_createCombinedSkeletonLoader'](),_0x59075c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x59075c['if']('isVisible','ck-hidden',_0x58d022=>!_0x58d022)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x3fe10b=>_0x3fe10b)]},'children':this['_resultViews']},_0x35a36f]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x2937e4){const _0x4ef088=new _0xfd409f(this['locale'],_0x2937e4['id']);_0x4ef088['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x4ef088),_0x4ef088['resultResponseView']['element']['innerHTML']=_0x2937e4['contentDiffed'];}['hideResult'](_0x3a637b,_0x5e3ed4){if('pending'===_0x5e3ed4)return;const _0xddd2ee=this['_resultViews']['find'](_0x14579c=>_0x14579c['id']===_0x3a637b);_0xddd2ee&&(_0xddd2ee['status']=_0x5e3ed4,_0xddd2ee['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x1496e4,_0x3cc719){if('pending'!==_0x3cc719)return;const _0x2120c3=this['_resultViews']['find'](_0xfad037=>_0xfad037['id']===_0x1496e4);_0x2120c3&&(_0x2120c3['status']=_0x3cc719,_0x2120c3['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x8ad2bf,_0x5215ac){this['headerTitle']=_0x8ad2bf,this['headerSubtitle']=_0x5215ac||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x4cf731(this['locale'],_0x44d4c5['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x4af64b=new _0x56eba2(this['locale']),_0x4462da=[];for(let _0x57afa8=0x0;_0x57afa8<0x10;_0x57afa8++){const _0x3ce307=this['_createSkeletonLoader']();_0x3ce307['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x4462da['push'](_0x3ce307);}return _0x4af64b['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x2df427=>!_0x2df427)]},'children':_0x4462da}),_0x4af64b;}['_createErrorView'](){const _0x25f111=new _0x56eba2(this['locale']),_0x5b0a8d=new _0x11b6fd(this['locale']),t=this['locale']['t'];return _0x25f111['delegate']('retryReview')['to'](this),_0x5b0a8d['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x5b0a8d['on']('execute',()=>{this['fire']('retryReview');}),_0x25f111['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0xfc9d01=>!_0xfc9d01),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x43314c=>'chunk'===_0x43314c)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-chat-error','ck-ai-chat-error_full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-chat-error_warning',_0x52eba6=>'chunk'===_0x52eba6)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x18e5fa=>'general'!==_0x18e5fa)]},'children':[{'text':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x30289c=>'chunk'!==_0x30289c)]},'children':[{'text':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x5b0a8d]}),_0x25f111;}['_createCancelButtonView'](){const _0x58d0c1=new _0x11b6fd(this['locale']);return _0x58d0c1['set']({'label':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0xac6891}),_0x58d0c1['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5748c8=>_0x5748c8),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4a9971=>_0x4a9971)]}}),_0x58d0c1['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x58d0c1;}['_createToggleDiffButtonView'](){const _0x3de7cf=new _0x11b6fd(this['locale']);_0x3de7cf['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x3de7cf['bind']('isEnabled')['to'](this,'isError',_0x220044=>!_0x220044),_0x3de7cf['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xbee5a0=>!_0xbee5a0),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x718325=>_0x718325)]}});const _0x4d3a51=_0x4fbf48(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x321e4a=_0x4fbf48(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x3de7cf['bind']('isOn')['to'](this,'isToggleDiffOn',_0x43d3ab=>_0x43d3ab),_0x3de7cf['bind']('icon')['to'](this,'isToggleDiffOn',_0x2c4a7c=>_0x2c4a7c?_0x319091:_0x138b77),_0x3de7cf['bind']('label')['to'](this,'isToggleDiffOn',_0x2dc553=>_0x2dc553?_0x4d3a51:_0x321e4a),_0x3de7cf['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x3de7cf;}['_createAcceptAllButtonView'](){const _0xe53897=new _0x11b6fd(this['locale']);return _0xe53897['set']({'label':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0xe53897['bind']('isEnabled')['to'](this,'isError',_0x1c4ad0=>!_0x1c4ad0),_0xe53897['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x145975=>!_0x145975),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3d7ac3=>_0x3d7ac3)]}}),_0xe53897['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0xe53897;}['_createExitReviewButtonView'](){const _0x29d430=new _0x11b6fd(this['locale']);return _0x29d430['set']({'label':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x29d430['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3ff21b=>!_0x3ff21b),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x457e08=>_0x457e08)]}}),_0x29d430['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x29d430;}['_createResultHeaderView'](){const _0x4ba4f6=new _0x56eba2(this['locale']),_0x5c4a6f=this['_createTitleView']();return _0x4ba4f6['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x5d75cf=>_0x5d75cf)]},'children':[_0x5c4a6f,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x4ba4f6;}['_createTitleView'](){const _0x299210=new _0x56eba2(this['locale']),_0x218453=new _0x4be4aa();return _0x218453['bind']('isVisible')['to'](this,'isResultReady',_0x57b630=>!_0x57b630),_0x299210['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x218453,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x19e1fb=>_0x19e1fb)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4e5cef=>!_0x4e5cef)]},'children':[{'text':_0x4fbf48(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x299210;}['_createFinishReviewButtonView'](){const _0x533fd6=new _0x55ab1d(this['locale']);return _0x533fd6['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x2f3b3a=>!_0x2f3b3a)]}}),_0x533fd6['delegate']('finishReview')['to'](this),_0x533fd6;}}
|
|
23
|
+
import{ListItemView as _0x5c2d97,View as _0x55c2e0,ViewCollection as _0x20231a,ButtonView as _0x582f20}from'ckeditor5/src/ui.js';import{IconStop as _0x2e6973,IconEye as _0x1cb71a,IconEyeCrossedOut as _0xa8dc2b}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x40ffdd}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0xad245e}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x2e5cbe,SKELETON_DEFINITIONS as _0x156d63}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x278141}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x3b87c0}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x47a62e}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x5c2d97{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x2fa261){super(_0x2fa261),this['_resultViews']=new _0x20231a(),this['_cancelButtonView']=this['_createCancelButtonView'](),this['_acceptAllButtonView']=this['_createAcceptAllButtonView'](),this['_exitReviewButtonView']=this['_createExitReviewButtonView'](),this['_toggleDiffButtonView']=this['_createToggleDiffButtonView'](),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](),this['resultsHeader']=this['_createResultHeaderView'](),this['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new _0x278141(_0x2fa261),this['set']('isLoading',!0x1),this['set']('isToggleDiffOn',!0x1),this['set']('isResultReady',!0x1),this['set']('headerTitle',''),this['set']('headerSubtitle',''),this['set']('isError',!0x1),this['set']('showErrorMessage',!0x1),this['set']('errorType','general'),this['set']('isCompleted',!0x1);const _0x24fac3=this['_createCombinedSkeletonLoader'](),_0x4cd047=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x4cd047['if']('isVisible','ck-hidden',_0x341fa4=>!_0x341fa4)]},'children':[this['resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x446783=>_0x446783)]},'children':this['_resultViews']},_0x24fac3]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x574ee0){const _0x38837d=new _0x40ffdd(this['locale'],_0x574ee0['id']);_0x38837d['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x38837d),_0x38837d['resultResponseView']['element']['innerHTML']=_0x574ee0['contentDiffed'];}['hideResult'](_0x5bfb91,_0x4845bb){if('pending'===_0x4845bb)return;const _0x4212a8=this['_resultViews']['find'](_0x3ac1a8=>_0x3ac1a8['id']===_0x5bfb91);_0x4212a8&&(_0x4212a8['status']=_0x4845bb,_0x4212a8['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x44e428,_0x1a94e9){if('pending'!==_0x1a94e9)return;const _0xe85314=this['_resultViews']['find'](_0x2dab0e=>_0x2dab0e['id']===_0x44e428);_0xe85314&&(_0xe85314['status']=_0x1a94e9,_0xe85314['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x4427c9,_0x77f027){this['headerTitle']=_0x4427c9,this['headerSubtitle']=_0x77f027||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new _0x2e5cbe(this['locale'],_0x156d63['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x55b215=new _0x55c2e0(this['locale']),_0x2ee37e=[];for(let _0x450e3b=0x0;_0x450e3b<0x10;_0x450e3b++){const _0x14de31=this['_createSkeletonLoader']();_0x14de31['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x2ee37e['push'](_0x14de31);}return _0x55b215['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x184e76=>!_0x184e76)]},'children':_0x2ee37e}),_0x55b215;}['_createErrorView'](){const _0x54bfdc=new _0x55c2e0(this['locale']),_0x16643d=new _0x582f20(this['locale']),t=this['locale']['t'];return _0x54bfdc['delegate']('retryReview')['to'](this),_0x16643d['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x16643d['on']('execute',()=>{this['fire']('retryReview');}),_0x54bfdc['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x1eeacc=>!_0x1eeacc),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x288865=>'chunk'===_0x288865)]},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error','ck-ai-notification__full-width','ck-ai-review-mode__check-run-error-message',this['bindTemplate']['if']('errorType','ck-ai-notification_warning',_0x5a45de=>'chunk'===_0x5a45de)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xb3cb1f=>'general'!==_0xb3cb1f)]},'children':[{'text':_0x3b87c0(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0xfa27e0=>'chunk'!==_0xfa27e0)]},'children':[{'text':_0x3b87c0(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x16643d]}),_0x54bfdc;}['_createCancelButtonView'](){const _0x306ff0=new _0x582f20(this['locale']);return _0x306ff0['set']({'label':_0x3b87c0(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x2e6973}),_0x306ff0['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1dcf20=>_0x1dcf20),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x430427=>_0x430427)]}}),_0x306ff0['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x306ff0;}['_createToggleDiffButtonView'](){const _0x522e39=new _0x582f20(this['locale']);_0x522e39['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x522e39['bind']('isEnabled')['to'](this,'isError',_0x18e5a8=>!_0x18e5a8),_0x522e39['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xe70e4b=>!_0xe70e4b),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x42e0f3=>_0x42e0f3)]}});const _0x2cab3e=_0x3b87c0(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x1e9006=_0x3b87c0(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x522e39['bind']('isOn')['to'](this,'isToggleDiffOn',_0x579a21=>_0x579a21),_0x522e39['bind']('icon')['to'](this,'isToggleDiffOn',_0x152f83=>_0x152f83?_0x1cb71a:_0xa8dc2b),_0x522e39['bind']('label')['to'](this,'isToggleDiffOn',_0x245bbc=>_0x245bbc?_0x2cab3e:_0x1e9006),_0x522e39['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x522e39;}['_createAcceptAllButtonView'](){const _0x3bf578=new _0x582f20(this['locale']);return _0x3bf578['set']({'label':_0x3b87c0(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x3bf578['bind']('isEnabled')['to'](this,'isError',_0x2fd7da=>!_0x2fd7da),_0x3bf578['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x161b30=>!_0x161b30),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x30ced1=>_0x30ced1)]}}),_0x3bf578['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x3bf578;}['_createExitReviewButtonView'](){const _0x3195cb=new _0x582f20(this['locale']);return _0x3195cb['set']({'label':_0x3b87c0(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x3195cb['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x5ae28f=>!_0x5ae28f),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1a0822=>_0x1a0822)]}}),_0x3195cb['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x3195cb;}['_createResultHeaderView'](){const _0x26d400=new _0x55c2e0(this['locale']),_0x16ea04=this['_createTitleView']();return _0x26d400['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x3d23f2=>_0x3d23f2)]},'children':[_0x16ea04,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x26d400;}['_createTitleView'](){const _0x2a06c1=new _0x55c2e0(this['locale']),_0x5f1f41=new _0x47a62e();return _0x5f1f41['bind']('isVisible')['to'](this,'isResultReady',_0x5ada28=>!_0x5ada28),_0x2a06c1['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x5f1f41,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1e7806=>_0x1e7806)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title']},'children':[{'text':this['bindTemplate']['to']('headerTitle')}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-run-results-header-subtitle']},'children':[{'text':this['bindTemplate']['to']('headerSubtitle')}]}]},{'tag':'span','attributes':{'class':['ck-ai-review-mode__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x40e437=>!_0x40e437)]},'children':[{'text':_0x3b87c0(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x2a06c1;}['_createFinishReviewButtonView'](){const _0x13a8df=new _0xad245e(this['locale']);return _0x13a8df['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5ab056=>!_0x5ab056)]}}),_0x13a8df['delegate']('finishReview')['to'](this),_0x13a8df;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x193e15,IconView as _0x1e6648,View as _0x27b5d0,ViewCollection as _0x3757a2,ButtonView as _0x4bb8b5,clickOutsideHandler as ts}from'ckeditor5/src/ui.js';import{IconChevronRight as _0x25d667}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x316a3d}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as tc}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x193e15{['_formItemsCollection']=new _0x3757a2();['_customCheckView']=null;constructor(_0x5c9fb5,_0x3c63ad,_0x3aac0d){super(_0x5c9fb5),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x3c63ad['isParameterized']);const _0x3a9320=this['_createIconView']();this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item',this['bindTemplate']['if']('isParametrizedViewOpen','ck-ai-review-mode__check-list-item_selected',_0x11a86d=>_0x11a86d),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x2892ce=>_0x2892ce)],'style':{'--ck-ai-review-check-list-item-index':_0x3aac0d}},'on':{'click':this['bindTemplate']['to']('click')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-main-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-title']},'children':[{'tag':'span','attributes':{'class':['ck-ai-review-mode__check-list-item-title-text']},'children':[{'text':_0x3c63ad['title']}]},_0x3a9320]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x3c63ad['description']}]}]}]},..._0x3c63ad['isParameterized']?[this['_createParameterizedView'](_0x3c63ad)]:[],...'custom'===_0x3c63ad['id']?[this['_createCustomView'](_0x3c63ad)]:[]]}),this['on']('click',()=>{_0x3c63ad['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x3c63ad['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&ts({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x402983=>{_0x402983['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x562422=new _0x1e6648();return _0x562422['content']=_0x25d667,_0x562422['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x562422;}['_createParameterizedView'](_0x3c21e0){const _0x281cc2=new _0x27b5d0(),_0x44ebb8=this['_createFormView'](_0x3c21e0);return _0x281cc2['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x1439f7=>!_0x1439f7)]},'children':[_0x44ebb8]}),_0x281cc2;}['_createFormView'](_0x12737c){const _0x2e0961=new _0x27b5d0(),_0x527eb1=Array['isArray'](_0x12737c['options'])?_0x12737c['options']:[],_0x364319=new _0x4bb8b5(this['locale']),t=this['locale']['t'];_0x364319['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x364319['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x38701b=>{_0x38701b['stopPropagation']();})}}),_0x364319['on']('execute',()=>{const _0x4c5c37=[],_0x497039={};this['_formItemsCollection']['forEach'](_0x43b6be=>{_0x4c5c37['push'](_0x43b6be['value']),_0x12737c['useArgs']&&_0x12737c['options']&&(_0x497039[_0x43b6be['argsKey']]=_0x43b6be['value']);}),this['fire']('runReviewCheck',{'id':_0x12737c['id'],'params':_0x4c5c37['length']?_0x4c5c37:void 0x0,'args':Object['keys'](_0x497039)['length']?_0x497039:void 0x0});});const _0x4b63ac=_0x527eb1['length'];return _0x527eb1['forEach']((_0x22950b,_0x12b4d8)=>{const _0x1197fd=_0x12b4d8===_0x4b63ac-0x1;this['_formItemsCollection']['add'](new _0x316a3d(this['locale'],_0x22950b,_0x1197fd?_0x364319:null));}),_0x2e0961['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x2e0961;}['_createCustomView'](_0x19346e){return this['_customCheckView']=new tc(this['locale'],_0x19346e),this['_customCheckView']['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized','ck-ai-review-mode__check-list-item-parameterized_custom',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x29421f=>!_0x29421f)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x2ca516,_0x27508d,_0x1be5f6)=>{_0x1be5f6||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5d2b(_0x4c2c52,_0x174c7c){const _0xab640e=_0xab64();return _0x5d2b=function(_0x5d2b26,_0x2a6ef8){_0x5d2b26=_0x5d2b26-0xbc;let _0x15c1f0=_0xab640e[_0x5d2b26];return _0x15c1f0;},_0x5d2b(_0x4c2c52,_0x174c7c);}const _0xa4046b=_0x5d2b;(function(_0x30054f,_0x247fe4){const _0x3293ae=_0x5d2b,_0x153280=_0x30054f();while(!![]){try{const _0x49aa6a=parseInt(_0x3293ae(0xbd))/0x1*(-parseInt(_0x3293ae(0xc6))/0x2)+-parseInt(_0x3293ae(0xd7))/0x3*(-parseInt(_0x3293ae(0xd2))/0x4)+parseInt(_0x3293ae(0xcc))/0x5+-parseInt(_0x3293ae(0xd3))/0x6+parseInt(_0x3293ae(0xda))/0x7+-parseInt(_0x3293ae(0xc0))/0x8+parseInt(_0x3293ae(0xd0))/0x9;if(_0x49aa6a===_0x247fe4)break;else _0x153280['push'](_0x153280['shift']());}catch(_0x49e9f3){_0x153280['push'](_0x153280['shift']());}}}(_0xab64,0xdd18c));import{ListItemView as _0x24f208,View as _0x24cf2}from'ckeditor5/src/ui.js';import{AIReviewModeFinishReviewButtonView as _0x2ac506}from'./aireviewmodefinishreviewbuttonview.js';function _0xab64(){const _0x52863e=['805162EboOqg','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','locale','div','setTemplate','_createFinishReviewButtonView','3273900kWViRS','_finishReviewButtonView','finishReview','_createResultHeaderView','12315807Yhcugb','delegate','88444TDaIXi','4114854WszbWF','ck-ai-review-mode__review-completed-header','ck-ai-review-mode__review-completed-content-icon','bindTemplate','186vmuljR','ck-ai-review-mode__review-completed-header-buttons','ck-ai-review-mode__review-completed-content-text','3842342sCXCSL','ck-hidden','2CmhnNq','ck-ai-review-mode__review-completed','ck-ai-review-mode__review-completed-header-title','12371264COVyyc','span','ck-ai-review-mode__review-completed-content','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE','resultsHeader','isVisible'];_0xab64=function(){return _0x52863e;};return _0xab64();}import{getTranslation as _0x49104a}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeReviewCompletedView extends _0x24f208{[_0xa4046b(0xc4)];[_0xa4046b(0xcd)];constructor(_0x55dc86){const _0x14720f=_0xa4046b;super(_0x55dc86),this[_0x14720f(0xcd)]=this[_0x14720f(0xcb)](),this[_0x14720f(0xc4)]=this[_0x14720f(0xcf)]();const _0x39287a=this[_0x14720f(0xd6)];this[_0x14720f(0xca)]({'tag':_0x14720f(0xc9),'attributes':{'class':[_0x14720f(0xbe),_0x39287a['if'](_0x14720f(0xc5),_0x14720f(0xbc),_0x5cae96=>!_0x5cae96)]},'children':[this[_0x14720f(0xc4)],{'tag':_0x14720f(0xc9),'attributes':{'class':[_0x14720f(0xc2)]},'children':[{'tag':_0x14720f(0xc1),'attributes':{'class':[_0x14720f(0xd5)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x14720f(0xd9)]},'children':[{'text':_0x49104a(_0x55dc86,_0x14720f(0xc7))}]}]}]});}[_0xa4046b(0xcb)](){const _0x4e2e5d=_0xa4046b,_0x8d2813=new _0x2ac506(this[_0x4e2e5d(0xc8)]);return _0x8d2813[_0x4e2e5d(0xd1)](_0x4e2e5d(0xce))['to'](this),_0x8d2813;}[_0xa4046b(0xcf)](){const _0x1ef5ad=_0xa4046b,_0x8b32f7=new _0x24cf2(this[_0x1ef5ad(0xc8)]);return _0x8b32f7[_0x1ef5ad(0xca)]({'tag':_0x1ef5ad(0xc9),'attributes':{'class':[_0x1ef5ad(0xd4)]},'children':[{'tag':_0x1ef5ad(0xc1),'attributes':{'class':[_0x1ef5ad(0xbf)]},'children':[{'text':_0x49104a(this[_0x1ef5ad(0xc8)],_0x1ef5ad(0xc3))}]},{'tag':_0x1ef5ad(0xc9),'attributes':{'class':[_0x1ef5ad(0xd8)]},'children':[this[_0x1ef5ad(0xcd)]]}]}),_0x8b32f7;}}
|
|
@@ -10,11 +10,16 @@ import { View, FormHeaderView } from 'ckeditor5/src/ui.js';
|
|
|
10
10
|
import { AIReviewModeReviewCheckListView } from './aireviewmodereviewchecklistview.js';
|
|
11
11
|
import { AIReviewModeReviewCheckResultsView } from './aireviewmodereviewcheckresultsview.js';
|
|
12
12
|
import { AIReviewModeReviewCompletedView } from './aireviewmodereviewcompletedview.js';
|
|
13
|
+
import { AIReviewModeGeneralErrorView } from './aireviewmodegeneralerrorview.js';
|
|
13
14
|
export declare class AIReviewModeView extends View {
|
|
14
15
|
/**
|
|
15
16
|
* The header of the AI Review Mode.
|
|
16
17
|
*/
|
|
17
18
|
reviewModeHeader: FormHeaderView;
|
|
19
|
+
/**
|
|
20
|
+
* The general error view of the AI Review Mode.
|
|
21
|
+
*/
|
|
22
|
+
generalErrorView: AIReviewModeGeneralErrorView;
|
|
18
23
|
/**
|
|
19
24
|
* The review check list view of the AI Review Mode.
|
|
20
25
|
*/
|
|
@@ -38,6 +43,7 @@ export declare class AIReviewModeView extends View {
|
|
|
38
43
|
showActionsWhenResultIsReady(): void;
|
|
39
44
|
showNoChangesView(): void;
|
|
40
45
|
hideActionsWhenResultIsReady(): void;
|
|
41
|
-
|
|
46
|
+
showGeneralReviewModeErrorView(errorMessage: string): void;
|
|
47
|
+
showGeneralResultsErrorView(): void;
|
|
42
48
|
showChunkErrorView(): void;
|
|
43
49
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x211c1e=_0x437c;(function(_0x1adf34,_0x55c97e){var _0x6afc54=_0x437c,_0x54dc85=_0x1adf34();while(!![]){try{var _0x43c04d=-parseInt(_0x6afc54(0xfe))/0x1*(parseInt(_0x6afc54(0x112))/0x2)+parseInt(_0x6afc54(0x10e))/0x3+parseInt(_0x6afc54(0x118))/0x4*(parseInt(_0x6afc54(0x126))/0x5)+parseInt(_0x6afc54(0x120))/0x6+-parseInt(_0x6afc54(0xf7))/0x7*(parseInt(_0x6afc54(0x11e))/0x8)+parseInt(_0x6afc54(0x10c))/0x9*(-parseInt(_0x6afc54(0x121))/0xa)+parseInt(_0x6afc54(0x124))/0xb;if(_0x43c04d===_0x55c97e)break;else _0x54dc85['push'](_0x54dc85['shift']());}catch(_0x5b3d7a){_0x54dc85['push'](_0x54dc85['shift']());}}}(_0x1f19,0x2c59a));function _0x1f19(){var _0x1d941f=['236020aZOxJH','set','showNoChangesView','3239621exOIPE','showGeneralResultsErrorView','15qvZlkE','708498LyzGeK','isResultReady','showActionsWhenResultIsReady','reviewCompletedView','ck-reset_all','showReviewCompletedView','isVisible','16103qxTFoN','showChunkErrorView','isLoading','clearResults','delegate','showReviewCheckListView','div','reviewCheckListView','showChunkErrorMessage','isCompleted','resetAllParameterizedChecks','resetErrorState','reviewModeHeader','addResult','81TYtKDo','hideActionsWhenResultIsReady','329931NLRJBx','showReviewCheckResultsView','showGeneralErrorMessage','ck-ai-header\x20ck-ai-header_review-mode','20MFIDRn','reviewCheckResultsView','AI_REVIEW_MODE','ltr','generalErrorView','addCheckRunResult','427316SYFZzm','finishReview','showGeneralReviewModeErrorView','ck-ai-review-mode','ck-rounded-corners','errorMessage','24yDBEgW','setTemplate','802638rfaLUJ'];_0x1f19=function(){return _0x1d941f;};return _0x1f19();}import{View as _0xcb5bac,FormHeaderView as _0x5b8164}from'ckeditor5/src/ui.js';import{IconAIReview as _0x482ac8}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListView as _0x5235be}from'./aireviewmodereviewchecklistview.js';import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x45825e}from'../aireviewmodeui.js';import{AIReviewModeReviewCheckResultsView as _0x149901}from'./aireviewmodereviewcheckresultsview.js';function _0x437c(_0x49812d,_0x363102){var _0x1f19ee=_0x1f19();return _0x437c=function(_0x437ccd,_0x114f7f){_0x437ccd=_0x437ccd-0xf7;var _0x336acf=_0x1f19ee[_0x437ccd];return _0x336acf;},_0x437c(_0x49812d,_0x363102);}import{AIReviewModeReviewCompletedView as _0x36a2f5}from'./aireviewmodereviewcompletedview.js';import{AIReviewModeGeneralErrorView as _0x478435}from'./aireviewmodegeneralerrorview.js';import{getTranslation as _0x296d6a}from'../../aicore/utils/common-translations.js';export class AIReviewModeView extends _0xcb5bac{[_0x211c1e(0x10a)];[_0x211c1e(0x116)];[_0x211c1e(0x105)];[_0x211c1e(0x113)];[_0x211c1e(0xfa)];constructor(_0x122949){var _0x26285c=_0x211c1e;super(_0x122949),this[_0x26285c(0x10a)]=new _0x5b8164(_0x122949,{'label':_0x296d6a(_0x122949,_0x26285c(0x114)),'icon':_0x482ac8,'class':_0x26285c(0x111)}),this[_0x26285c(0x116)]=new _0x478435(_0x122949),this[_0x26285c(0x105)]=new _0x5235be(_0x122949),this[_0x26285c(0x105)][_0x26285c(0x102)](..._0x45825e)['to'](this),this[_0x26285c(0x113)]=new _0x149901(_0x122949),this[_0x26285c(0x113)][_0x26285c(0x102)](..._0x45825e)['to'](this),this[_0x26285c(0xfa)]=new _0x36a2f5(_0x122949),this[_0x26285c(0xfa)][_0x26285c(0x102)](_0x26285c(0x119))['to'](this),this[_0x26285c(0x105)][_0x26285c(0x122)](_0x26285c(0xfd),!0x1),this[_0x26285c(0x113)][_0x26285c(0x122)](_0x26285c(0xfd),!0x1),this[_0x26285c(0x113)][_0x26285c(0x122)](_0x26285c(0x100),!0x1),this[_0x26285c(0x113)][_0x26285c(0x122)](_0x26285c(0xf8),!0x1),this[_0x26285c(0xfa)][_0x26285c(0x122)](_0x26285c(0xfd),!0x1),this[_0x26285c(0x11f)]({'tag':_0x26285c(0x104),'attributes':{'class':['ck',_0x26285c(0xfb),_0x26285c(0x11b),_0x26285c(0x11c)],'dir':_0x26285c(0x115)},'children':[this[_0x26285c(0x10a)],this[_0x26285c(0x116)],this[_0x26285c(0x105)],this[_0x26285c(0x113)],this[_0x26285c(0xfa)]]});}[_0x211c1e(0x103)](){var _0x12c532=_0x211c1e;this[_0x12c532(0x105)][_0x12c532(0x108)](),this[_0x12c532(0x105)][_0x12c532(0x122)](_0x12c532(0xfd),!0x0),this[_0x12c532(0x113)][_0x12c532(0x122)](_0x12c532(0xfd),!0x1),this[_0x12c532(0xfa)][_0x12c532(0x122)](_0x12c532(0xfd),!0x1);}[_0x211c1e(0x10f)](){var _0x3e84b2=_0x211c1e;this[_0x3e84b2(0x10d)](),this[_0x3e84b2(0x113)][_0x3e84b2(0x109)](),this[_0x3e84b2(0x105)][_0x3e84b2(0x122)](_0x3e84b2(0xfd),!0x1),this[_0x3e84b2(0x113)][_0x3e84b2(0x122)](_0x3e84b2(0xfd),!0x0),this[_0x3e84b2(0x113)][_0x3e84b2(0x101)](),this[_0x3e84b2(0x113)][_0x3e84b2(0x122)](_0x3e84b2(0x100),!0x0),this[_0x3e84b2(0x113)][_0x3e84b2(0x122)](_0x3e84b2(0x107),!0x1);}[_0x211c1e(0x117)](_0x2fce80){var _0x2c17ca=_0x211c1e;this[_0x2c17ca(0x113)][_0x2c17ca(0x10b)](_0x2fce80),this[_0x2c17ca(0x113)][_0x2c17ca(0x122)](_0x2c17ca(0x100),!0x1);}[_0x211c1e(0xfc)](){var _0x182147=_0x211c1e;this[_0x182147(0x113)][_0x182147(0x122)](_0x182147(0xfd),!0x0),this[_0x182147(0xfa)][_0x182147(0x122)](_0x182147(0xfd),!0x1),this[_0x182147(0x113)][_0x182147(0x122)](_0x182147(0x107),!0x0),this[_0x182147(0x105)][_0x182147(0x122)](_0x182147(0xfd),!0x1);}[_0x211c1e(0xf9)](){var _0x590587=_0x211c1e;this[_0x590587(0x113)][_0x590587(0xf8)]?(this[_0x590587(0x105)][_0x590587(0x122)](_0x590587(0xfd),!0x1),this[_0x590587(0x113)][_0x590587(0x122)](_0x590587(0xfd),!0x0),this[_0x590587(0xfa)][_0x590587(0x122)](_0x590587(0xfd),!0x1)):this[_0x590587(0x113)][_0x590587(0xf8)]=!0x0;}[_0x211c1e(0x123)](){var _0x393aee=_0x211c1e;this[_0x393aee(0x105)][_0x393aee(0x122)](_0x393aee(0xfd),!0x1),this[_0x393aee(0x113)][_0x393aee(0x122)](_0x393aee(0xfd),!0x1),this[_0x393aee(0xfa)][_0x393aee(0x122)](_0x393aee(0xfd),!0x0);}[_0x211c1e(0x10d)](){var _0x458040=_0x211c1e;this[_0x458040(0x113)][_0x458040(0xf8)]=!0x1;}[_0x211c1e(0x11a)](_0x360439){var _0x2b339b=_0x211c1e;this[_0x2b339b(0x116)][_0x2b339b(0x122)](_0x2b339b(0xfd),!0x0),this[_0x2b339b(0x116)][_0x2b339b(0x11d)]=_0x360439;}[_0x211c1e(0x125)](){var _0x298c20=_0x211c1e;this[_0x298c20(0x113)][_0x298c20(0x122)](_0x298c20(0x100),!0x1),this[_0x298c20(0xf9)](),this[_0x298c20(0x113)][_0x298c20(0x110)]();}[_0x211c1e(0xff)](){var _0x3839f2=_0x211c1e;this[_0x3839f2(0x113)][_0x3839f2(0x122)](_0x3839f2(0x100),!0x1),this[_0x3839f2(0xf9)](),this[_0x3839f2(0x113)][_0x3839f2(0x106)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ba512=_0x2b25;function _0x42ad(){const _0x259c59=['_prepareListOptions','_defaultLabel','set','label','7860444ZpDbJv','source','1599850BfeGua','684EivnMy','3494380NwjGit','execute','stopPropagation','bind','3509SVkzGS','resetToDefault','find','_defaultValue','555605spahxC','ck-ai-review-mode__check-list-item-parameterized-form-element','extendTemplate','div','menuitemradio','buttonView','listenTo','31016GjRrjJ','formValue','default','setTemplate','isOn','add','data','bindTemplate','locale','11aPrqBo','length','button','2692MyNNkg','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','270lZZUZg','ck-reset_all','24twjiqL','model','menu','182lHvbKn','_dropdownView'];_0x42ad=function(){return _0x259c59;};return _0x42ad();}(function(_0xb02590,_0x4c4f39){const _0xa0e6d4=_0x2b25,_0xa9f180=_0xb02590();while(!![]){try{const _0x2786b1=parseInt(_0xa0e6d4(0x1f5))/0x1*(-parseInt(_0xa0e6d4(0x1e7))/0x2)+-parseInt(_0xa0e6d4(0x1e2))/0x3*(parseInt(_0xa0e6d4(0x1e0))/0x4)+parseInt(_0xa0e6d4(0x1cd))/0x5*(-parseInt(_0xa0e6d4(0x1e4))/0x6)+-parseInt(_0xa0e6d4(0x1ef))/0x7+-parseInt(_0xa0e6d4(0x1d4))/0x8*(-parseInt(_0xa0e6d4(0x1f0))/0x9)+parseInt(_0xa0e6d4(0x1f1))/0xa+parseInt(_0xa0e6d4(0x1dd))/0xb*(parseInt(_0xa0e6d4(0x1ed))/0xc);if(_0x2786b1===_0x4c4f39)break;else _0xa9f180['push'](_0xa9f180['shift']());}catch(_0x2544ef){_0xa9f180['push'](_0xa9f180['shift']());}}}(_0x42ad,0x3c1bc));import{Collection as _0x5b5db5}from'ckeditor5/src/utils.js';function _0x2b25(_0x2de7c0,_0x9d2fb8){const _0x42ade0=_0x42ad();return _0x2b25=function(_0x2b2579,_0x5766fa){_0x2b2579=_0x2b2579-0x1cc;let _0x528cd1=_0x42ade0[_0x2b2579];return _0x528cd1;},_0x2b25(_0x2de7c0,_0x9d2fb8);}import{View as _0x36fde3,createDropdown as _0x1c109d,addListToDropdown as _0x196b54,UIModel as _0x486288}from'ckeditor5/src/ui.js';export class AIReviewModeFormDropdownView extends _0x36fde3{[_0x4ba512(0x1e8)];[_0x4ba512(0x1cc)];[_0x4ba512(0x1ea)];constructor(_0x18365e,_0x2a91fb){const _0x200f3c=_0x4ba512;super(_0x18365e),this[_0x200f3c(0x1cc)]=_0x2a91fb[_0x200f3c(0x1d6)]||(_0x2a91fb[_0x200f3c(0x1da)][_0x200f3c(0x1de)]>0x0?_0x2a91fb[_0x200f3c(0x1da)][0x0]['id']:''),this[_0x200f3c(0x1ea)]=_0x2a91fb[_0x200f3c(0x1da)][_0x200f3c(0x1f7)](_0x4c137e=>_0x4c137e['id']===this[_0x200f3c(0x1cc)])?.[_0x200f3c(0x1ec)]||'',this[_0x200f3c(0x1eb)](_0x200f3c(0x1d5),''),this[_0x200f3c(0x1e8)]=_0x1c109d(this[_0x200f3c(0x1dc)]);const _0x5a92e4=this[_0x200f3c(0x1e9)](_0x2a91fb[_0x200f3c(0x1da)]);_0x196b54(this[_0x200f3c(0x1e8)],_0x5a92e4,{'role':_0x200f3c(0x1e6),'ariaLabel':_0x2a91fb[_0x200f3c(0x1ec)]}),this[_0x200f3c(0x1e8)][_0x200f3c(0x1d2)][_0x200f3c(0x1eb)]({'label':this[_0x200f3c(0x1ea)],'withText':!0x0}),this[_0x200f3c(0x1e8)][_0x200f3c(0x1cf)]({'on':{'click':this[_0x200f3c(0x1db)]['to'](_0xa6ed2=>{const _0x2cb6b8=_0x200f3c;_0xa6ed2[_0x2cb6b8(0x1f3)]();})}}),this[_0x200f3c(0x1d3)](this[_0x200f3c(0x1e8)],_0x200f3c(0x1f2),_0x4b3811=>{const _0x13b451=_0x200f3c;this[_0x13b451(0x1d5)]=_0x4b3811[_0x13b451(0x1ee)][_0x13b451(0x1e5)]['id'],this[_0x13b451(0x1e8)][_0x13b451(0x1d2)][_0x13b451(0x1ec)]=_0x4b3811[_0x13b451(0x1ee)][_0x13b451(0x1e5)][_0x13b451(0x1ec)];}),this[_0x200f3c(0x1d7)]({'tag':_0x200f3c(0x1d0),'attributes':{'class':['ck',_0x200f3c(0x1e3),_0x200f3c(0x1ce),_0x200f3c(0x1e1)]},'children':[this[_0x200f3c(0x1e8)]]});}[_0x4ba512(0x1f6)](){const _0x4db66b=_0x4ba512;this[_0x4db66b(0x1d5)]=this[_0x4db66b(0x1cc)],this[_0x4db66b(0x1e8)][_0x4db66b(0x1d2)][_0x4db66b(0x1ec)]=this[_0x4db66b(0x1ea)];}[_0x4ba512(0x1e9)](_0x4b475b=[]){const _0x3624dd=_0x4ba512,_0x1f5a65=new _0x5b5db5();this[_0x3624dd(0x1f6)]();for(const _0x4cc3cf of _0x4b475b){const _0x3769b6=new _0x486288({'label':_0x4cc3cf[_0x3624dd(0x1ec)],'withText':!0x0,'role':_0x3624dd(0x1d1),'id':_0x4cc3cf['id'],'model':_0x4cc3cf});_0x3769b6[_0x3624dd(0x1f4)](_0x3624dd(0x1d8))['to'](this,_0x3624dd(0x1d5),_0xd0557b=>_0xd0557b===_0x3769b6['id']);const _0x5037bc={'type':_0x3624dd(0x1df),'model':_0x3769b6};_0x1f5a65[_0x3624dd(0x1d9)](_0x5037bc);}return _0x1f5a65;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42f060=_0x4672;function _0x4672(_0x4093d4,_0x3243ab){const _0x3bbce0=_0x3bbc();return _0x4672=function(_0x467217,_0x50cdfd){_0x467217=_0x467217-0xcf;let _0x217bfa=_0x3bbce0[_0x467217];return _0x217bfa;},_0x4672(_0x4093d4,_0x3243ab);}(function(_0x46c498,_0xf8350b){const _0x354a8c=_0x4672,_0x5b509e=_0x46c498();while(!![]){try{const _0x4fc0dc=-parseInt(_0x354a8c(0xd5))/0x1*(-parseInt(_0x354a8c(0xd1))/0x2)+-parseInt(_0x354a8c(0xe0))/0x3+-parseInt(_0x354a8c(0xe2))/0x4+-parseInt(_0x354a8c(0xe1))/0x5+parseInt(_0x354a8c(0xe4))/0x6*(-parseInt(_0x354a8c(0xda))/0x7)+parseInt(_0x354a8c(0xd7))/0x8+parseInt(_0x354a8c(0xe8))/0x9*(parseInt(_0x354a8c(0xdd))/0xa);if(_0x4fc0dc===_0xf8350b)break;else _0x5b509e['push'](_0x5b509e['shift']());}catch(_0x242245){_0x5b509e['push'](_0x5b509e['shift']());}}}(_0x3bbc,0x220d4));import{FormRowView as _0x336915,ListItemView as _0x1bc265}from'ckeditor5/src/ui.js';function _0x3bbc(){const _0x223dc4=['ck-form__row_with-submit','bind','set','3237444RlHlUM','value','_formItem','argsKey','28sFODPZ','ck-reset_all','formValue','resetToDefault','10707MAWwLc','div','863640mIktZh','formType','setTemplate','308zFksnd','locale','dropdown','10ckqYrm','ck-ai-review-mode__form-item','children','446328pQHbYE','644060ATIdBU','385076XQoLFU','add','14214kKEkQU'];_0x3bbc=function(){return _0x223dc4;};return _0x3bbc();}import{AIReviewModeFormDropdownView as _0x46d628}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x1bc265{[_0x42f060(0xcf)]=null;constructor(_0x58ff62,_0x169667,_0x388d1e){const _0x472728=_0x42f060;super(_0x58ff62),this[_0x472728(0xd0)]=_0x169667?.[_0x472728(0xd0)];if(_0x472728(0xdc)===_0x169667[_0x472728(0xd8)])this[_0x472728(0xcf)]=new _0x46d628(this[_0x472728(0xdb)],_0x169667);this[_0x472728(0xe7)](_0x472728(0xe9),''),this[_0x472728(0xe6)](_0x472728(0xe9))['to'](this[_0x472728(0xcf)],_0x472728(0xd3));const _0x242c3f=new _0x336915(this[_0x472728(0xdb)],{'children':[this[_0x472728(0xcf)]],'class':[_0x388d1e?_0x472728(0xe5):'']});_0x388d1e&&_0x242c3f[_0x472728(0xdf)][_0x472728(0xe3)](_0x388d1e),this[_0x472728(0xd9)]({'tag':_0x472728(0xd6),'attributes':{'class':['ck',_0x472728(0xde),_0x472728(0xd2)]},'children':[_0x242c3f]});}[_0x42f060(0xd4)](){const _0x4547a3=_0x42f060;this[_0x4547a3(0xcf)][_0x4547a3(0xd4)]();}}
|