@ckeditor/ckeditor5-ai 47.2.0 → 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 _0x170f8d=_0x2d45;(function(_0x1b3e27,_0x56b655){const _0x5c6a01=_0x2d45,_0x4fdbea=_0x1b3e27();while(!![]){try{const _0x40f217=-parseInt(_0x5c6a01(0x218))/0x1*(parseInt(_0x5c6a01(0x235))/0x2)+parseInt(_0x5c6a01(0x1eb))/0x3+parseInt(_0x5c6a01(0x22d))/0x4+-parseInt(_0x5c6a01(0x1ee))/0x5*(-parseInt(_0x5c6a01(0x1f7))/0x6)+parseInt(_0x5c6a01(0x214))/0x7+-parseInt(_0x5c6a01(0x1fa))/0x8+-parseInt(_0x5c6a01(0x216))/0x9*(parseInt(_0x5c6a01(0x21d))/0xa);if(_0x40f217===_0x56b655)break;else _0x4fdbea['push'](_0x4fdbea['shift']());}catch(_0x8fb44e){_0x4fdbea['push'](_0x4fdbea['shift']());}}}(_0x1cea,0x75b50));function _0x1cea(){const _0x11a985=['311853WMiYNW','getContent','error-chunk','520035KRGCoc','isChangeActive','reviewName','version','reviewCheckResultAdded','error-general','forceReadyState','abortController','restart','6CHnqao','unmodified','getStream','2556720wtxuGC','_sendRatingRequest','set','filter','markChangeAsPending','review-metadata','elements','addResultChanges','_changes','currentError','_createApiRequest','abort','sendRating','clear','push','parent','ai-request-aborted','find','loading','forEach','outdated','deactivateChange','processedResultsCount','isRated','subTitle','size','6207390WIaKTU','change:isActivated','5485527ayDRdi','message','26mVKTjD','initialized','activateChange','length','ready','10CvGfqc','markChangeAsAccepted','change:status','start','rejected','_results','status','_reviewArgs','_addReviewCheckResult','event','aborted','markChangeAsOutdated','callId','reviewCheckRunUpdated','documentData','getActiveChanges','1666788XZxckb','get','hasModifications','title','isActivated','pending','reviewCheckResultReady','_activeRequest','7708yymIFM','operation','markAllChangesAsAccepted','accepted','_sourceCheck','data','includes','finished','fire','_reviewParams','dataId','_aiConnector','textDelta','every','error','_documentData','reviewCheckResultActivated','reviewCheckResultChangeStatusUpdated','_checkIfFinished','reviewCheckResultDeactivated','_currentError','markChangeAsRejected'];_0x1cea=function(){return _0x11a985;};return _0x1cea();}import{ObservableMixin as _0x1524c7,uid as _0x163526}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x3e9c2d}from'./aireviewcheckresult.js';function _0x2d45(_0x4539d2,_0x249512){const _0x1ceae1=_0x1cea();return _0x2d45=function(_0x2d4585,_0x478ca0){_0x2d4585=_0x2d4585-0x1d8;let _0xde19cd=_0x1ceae1[_0x2d4585];return _0xde19cd;},_0x2d45(_0x4539d2,_0x249512);}import{AIReviewCheckResultChange as _0x1b2148}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x1524c7(){['id']=_0x163526();[_0x170f8d(0x229)];[_0x170f8d(0x222)]=new Map();[_0x170f8d(0x202)]=[];[_0x170f8d(0x1e4)];[_0x170f8d(0x1d9)];[_0x170f8d(0x1e0)];[_0x170f8d(0x1de)];[_0x170f8d(0x224)];[_0x170f8d(0x234)]=null;[_0x170f8d(0x1e9)];constructor(_0x5b22cd,_0x50afb1,_0x15f19d,_0x1231ba,_0x5b37d5){const _0x41da22=_0x170f8d;super(),this[_0x41da22(0x1e4)]=_0x5b22cd,this[_0x41da22(0x1d9)]=_0x50afb1,this[_0x41da22(0x1e0)]=_0x15f19d,this[_0x41da22(0x1de)]=_0x1231ba,this[_0x41da22(0x224)]=_0x5b37d5,this['on'](_0x41da22(0x21f),(_0x50fcbe,_0x46c36f,_0x2e1839)=>{const _0x59b4f0=_0x41da22;this[_0x59b4f0(0x1dd)](_0x59b4f0(0x22a),{'status':_0x2e1839,'run':this,'error':this[_0x59b4f0(0x1e9)]});}),this[_0x41da22(0x1fc)](_0x41da22(0x223),_0x41da22(0x219));}get[_0x170f8d(0x22b)](){const _0x22736e=_0x170f8d;return this[_0x22736e(0x1e4)];}get[_0x170f8d(0x210)](){const _0x399c94=_0x170f8d;return this[_0x399c94(0x222)][_0x399c94(0x213)];}get[_0x170f8d(0x230)](){const _0x55d4e5=_0x170f8d;return this[_0x55d4e5(0x1d9)][_0x55d4e5(0x230)];}get[_0x170f8d(0x212)](){return'';}get[_0x170f8d(0x1f0)](){const _0x730cf6=_0x170f8d;return this[_0x730cf6(0x1d9)]['id'];}get[_0x170f8d(0x22f)](){const _0x3352dc=_0x170f8d;return!this[_0x3352dc(0x202)][_0x3352dc(0x1e2)](_0x59d468=>_0x3352dc(0x232)===_0x59d468[_0x3352dc(0x223)]);}get[_0x170f8d(0x203)](){const _0xc57e47=_0x170f8d;return this[_0xc57e47(0x1e9)];}async[_0x170f8d(0x220)](){const _0x2613c2=_0x170f8d;this[_0x2613c2(0x223)]=_0x2613c2(0x20c),this[_0x2613c2(0x1e9)]=void 0x0;try{this[_0x2613c2(0x234)]=this[_0x2613c2(0x204)]();const _0x3c7bdd=await this[_0x2613c2(0x234)][_0x2613c2(0x1f9)]();this[_0x2613c2(0x223)]=_0x2613c2(0x1da);for await(const _0x400cb6 of _0x3c7bdd)_0x2613c2(0x1f8)!==_0x400cb6[_0x2613c2(0x1da)][_0x2613c2(0x236)]&&(_0x2613c2(0x1e3)!==_0x400cb6[_0x2613c2(0x1da)][_0x2613c2(0x236)]?_0x2613c2(0x1ff)!==_0x400cb6[_0x2613c2(0x226)]?this[_0x2613c2(0x225)](_0x400cb6[_0x2613c2(0x1da)][_0x2613c2(0x1df)],_0x400cb6[_0x2613c2(0x1da)][_0x2613c2(0x1e1)]):this[_0x2613c2(0x229)]=_0x400cb6[_0x2613c2(0x1da)][_0x2613c2(0x229)]:this[_0x2613c2(0x223)]=_0x2613c2(0x1ed));_0x2613c2(0x1ed)!==this[_0x2613c2(0x223)]&&(0x0===this[_0x2613c2(0x222)][_0x2613c2(0x213)]?this[_0x2613c2(0x223)]=_0x2613c2(0x1f8):this[_0x2613c2(0x223)]=_0x2613c2(0x21c));}catch(_0x54e1aa){this[_0x2613c2(0x1e9)]=_0x54e1aa,_0x54e1aa instanceof Error&&_0x54e1aa[_0x2613c2(0x217)][_0x2613c2(0x1db)](_0x2613c2(0x20a))?this[_0x2613c2(0x223)]=_0x2613c2(0x227):this[_0x2613c2(0x223)]=_0x2613c2(0x1f3);}finally{this[_0x2613c2(0x234)]=null;}}async[_0x170f8d(0x1f6)](){const _0x49f5be=_0x170f8d;this[_0x49f5be(0x222)][_0x49f5be(0x207)](),this[_0x49f5be(0x202)][_0x49f5be(0x21b)]=0x0,this[_0x49f5be(0x1e9)]=void 0x0,await this[_0x49f5be(0x220)]();}[_0x170f8d(0x201)](_0x103cbd,_0x111c6b){const _0x527ae1=_0x170f8d,_0x43f0f1=this[_0x527ae1(0x222)][_0x527ae1(0x22e)](_0x103cbd);if(!_0x43f0f1)return;const _0x41cffa=[];_0x111c6b[_0x527ae1(0x20d)]((_0x23e06d,_0x41f6ac)=>{const _0x633d5d=_0x527ae1,_0x44198b=new _0x1b2148(_0x43f0f1['id']+'-'+_0x41f6ac,_0x23e06d,_0x43f0f1);_0x44198b['on'](_0x633d5d(0x21f),()=>{const _0x39df13=_0x633d5d;this[_0x39df13(0x1dd)](_0x39df13(0x1e6),{'change':_0x44198b,'status':_0x44198b[_0x39df13(0x223)]});}),_0x44198b['on'](_0x633d5d(0x215),()=>{const _0x2c31c4=_0x633d5d;_0x44198b[_0x2c31c4(0x231)]?this[_0x2c31c4(0x1dd)](_0x2c31c4(0x1e5),{'change':_0x44198b}):this[_0x2c31c4(0x1dd)](_0x2c31c4(0x1e8),{'change':_0x44198b});}),this[_0x633d5d(0x202)][_0x633d5d(0x208)](_0x44198b),_0x41cffa[_0x633d5d(0x208)](_0x44198b);}),this[_0x527ae1(0x1dd)](_0x527ae1(0x233),{'changes':_0x41cffa,'result':_0x43f0f1,'source':this});}[_0x170f8d(0x205)](){const _0x463163=_0x170f8d;this[_0x463163(0x234)]&&(this[_0x463163(0x234)][_0x463163(0x1f5)][_0x463163(0x205)](),this[_0x463163(0x234)]=null,this[_0x463163(0x223)]=_0x463163(0x227));}[_0x170f8d(0x1ef)](_0x49b90d){const _0x47bc8c=_0x170f8d,_0x16d36a=this[_0x47bc8c(0x202)][_0x47bc8c(0x20b)](_0x529308=>_0x529308['id']===_0x49b90d);return!(!_0x16d36a||_0x47bc8c(0x232)!==_0x16d36a[_0x47bc8c(0x223)]);}[_0x170f8d(0x22c)](){const _0x1c65ab=_0x170f8d;return this[_0x1c65ab(0x202)][_0x1c65ab(0x1fd)](_0x5cef91=>_0x1c65ab(0x232)===_0x5cef91[_0x1c65ab(0x223)]);}[_0x170f8d(0x237)](){const _0x516de7=_0x170f8d;for(const _0x2119bf of this[_0x516de7(0x202)])_0x516de7(0x232)===_0x2119bf[_0x516de7(0x223)]&&(_0x2119bf[_0x516de7(0x223)]=_0x516de7(0x1d8));this[_0x516de7(0x1e7)]();}[_0x170f8d(0x21e)](_0x41746d){const _0x4b27e7=_0x170f8d,_0x23fe7a=this[_0x4b27e7(0x202)][_0x4b27e7(0x20b)](_0x4f3cec=>_0x4f3cec['id']===_0x41746d);_0x23fe7a&&_0x4b27e7(0x232)===_0x23fe7a[_0x4b27e7(0x223)]&&(_0x23fe7a[_0x4b27e7(0x223)]=_0x4b27e7(0x1d8)),this[_0x4b27e7(0x1e7)]();}[_0x170f8d(0x1ea)](_0x7a7367){const _0x214a33=_0x170f8d,_0x1ddb92=this[_0x214a33(0x202)][_0x214a33(0x20b)](_0x5df50b=>_0x5df50b['id']===_0x7a7367);_0x1ddb92&&_0x214a33(0x232)===_0x1ddb92[_0x214a33(0x223)]&&(_0x1ddb92[_0x214a33(0x223)]=_0x214a33(0x221)),this[_0x214a33(0x1e7)]();}[_0x170f8d(0x228)](_0x5acbe0){const _0x285bd3=_0x170f8d,_0x49d0d2=this[_0x285bd3(0x202)][_0x285bd3(0x20b)](_0x8ac529=>_0x8ac529['id']===_0x5acbe0);_0x49d0d2&&_0x285bd3(0x232)===_0x49d0d2[_0x285bd3(0x223)]&&(_0x49d0d2[_0x285bd3(0x223)]=_0x285bd3(0x20e)),this[_0x285bd3(0x1e7)]();}[_0x170f8d(0x1fe)](_0x1a5ba6){const _0x47e000=_0x170f8d,_0x3d8744=this[_0x47e000(0x202)][_0x47e000(0x20b)](_0x115ddf=>_0x115ddf['id']===_0x1a5ba6);_0x3d8744&&_0x47e000(0x20e)===_0x3d8744[_0x47e000(0x223)]&&(_0x3d8744[_0x47e000(0x223)]=_0x47e000(0x232)),this[_0x47e000(0x1e7)]();}[_0x170f8d(0x21a)](_0x6b7ba8){const _0x45dde2=_0x170f8d;this[_0x45dde2(0x202)][_0x45dde2(0x1fd)](_0x5a91e3=>_0x5a91e3[_0x45dde2(0x231)]&&_0x5a91e3['id']!==_0x6b7ba8)[_0x45dde2(0x20d)](_0x1e6558=>{const _0x5fa6a1=_0x45dde2;_0x1e6558[_0x5fa6a1(0x231)]=!0x1;});const _0x858675=this[_0x45dde2(0x202)][_0x45dde2(0x20b)](_0x50651d=>_0x50651d['id']===_0x6b7ba8);_0x858675&&_0x45dde2(0x232)===_0x858675[_0x45dde2(0x223)]&&(_0x858675[_0x45dde2(0x231)]=!0x0);}[_0x170f8d(0x20f)](){const _0x4e8a23=_0x170f8d;this[_0x4e8a23(0x202)][_0x4e8a23(0x1fd)](_0x5a02a6=>_0x5a02a6[_0x4e8a23(0x231)])[_0x4e8a23(0x20d)](_0x455fb8=>{const _0x4d3a9c=_0x4e8a23;_0x455fb8[_0x4d3a9c(0x231)]=!0x1;});}[_0x170f8d(0x1f4)](){const _0x1b163d=_0x170f8d;this[_0x1b163d(0x223)]=_0x1b163d(0x21c);}async[_0x170f8d(0x206)](_0x2e6d81){const _0x188d66=_0x170f8d;if(_0x188d66(0x219)===this[_0x188d66(0x223)]||_0x188d66(0x20c)===this[_0x188d66(0x223)]||_0x188d66(0x1da)===this[_0x188d66(0x223)])return;if(!this[_0x188d66(0x229)]||0x0===this[_0x188d66(0x202)][_0x188d66(0x21b)])return;let _0x122b0e;if(_0x2e6d81){const _0x9b3219=this[_0x188d66(0x202)][_0x188d66(0x20b)](_0x34c115=>_0x34c115['id']===_0x2e6d81);if(_0x9b3219&&_0x9b3219[_0x188d66(0x211)])return;_0x9b3219&&(_0x122b0e=_0x9b3219[_0x188d66(0x209)]['id'],_0x9b3219[_0x188d66(0x211)]=!0x0);}const _0x1726f2={'positiveCount':this[_0x188d66(0x202)][_0x188d66(0x1fd)](_0x2df59e=>_0x188d66(0x1d8)===_0x2df59e[_0x188d66(0x223)])[_0x188d66(0x21b)],'totalCount':this[_0x188d66(0x202)][_0x188d66(0x21b)]};this[_0x188d66(0x1fb)](_0x1726f2,this[_0x188d66(0x229)],_0x122b0e);}[_0x170f8d(0x225)](_0x59e6a5,_0x1439d7){const _0x31d022=_0x170f8d,_0x266ab6=this[_0x31d022(0x1e4)][_0x31d022(0x200)][_0x31d022(0x22e)](_0x59e6a5);if(!_0x266ab6)return;const _0x317e7b=_0x266ab6[_0x31d022(0x1ec)]();if(_0x317e7b===_0x1439d7)return;const _0x5b927d=new _0x3e9c2d({'id':_0x59e6a5,'contentInitial':_0x317e7b,'contentNew':_0x1439d7,'documentVersion':this[_0x31d022(0x1e4)][_0x31d022(0x1f1)]});this[_0x31d022(0x222)][_0x31d022(0x1fc)](_0x5b927d['id'],_0x5b927d),this[_0x31d022(0x1dd)](_0x31d022(0x1f2),{'result':_0x5b927d,'source':this});}[_0x170f8d(0x1e7)](){const _0x390806=_0x170f8d;_0x390806(0x1dc)===this[_0x390806(0x223)]&&(this[_0x390806(0x202)][_0x390806(0x1fd)](_0x5383a5=>_0x390806(0x232)===_0x5383a5[_0x390806(0x223)])[_0x390806(0x21b)]>0x0&&(this[_0x390806(0x223)]=_0x390806(0x21c))),_0x390806(0x21c)===this[_0x390806(0x223)]&&(0x0===this[_0x390806(0x202)][_0x390806(0x1fd)](_0xbb08fc=>_0x390806(0x232)===_0xbb08fc[_0x390806(0x223)])[_0x390806(0x21b)]&&(this[_0x390806(0x223)]=_0x390806(0x1dc)));}}
|
|
23
|
+
const _0x97d53=_0x5d2b;function _0x468b(){const _0x3020bb=['error-general','elements','title','_documentData','fire','find','initialized','filter','callId','data','970013gHyKWo','reviewCheckResultReady','deactivateChange','outdated','168aEeqPN','status','_createApiRequest','start','98330VimseU','isChangeActive','reviewName','every','_results','message','accepted','ai-request-aborted','ready','getActiveChanges','33404530ZnHBuz','isAnyChangeActivated','_sendRatingRequest','change:isActivated','_aiConnector','size','_sourceCheck','push','processedResultsCount','restart','textDelta','reviewCheckRunUpdated','dataId','_addReviewCheckResult','clear','addResultChanges','2066eqWwot','forEach','loading','reviewCheckResultActivated','getStream','hasModifications','markChangeAsPending','getContent','5315032jCOFgX','forceReadyState','sendRating','unmodified','parent','_changes','activateChange','reviewCheckResultAdded','currentError','documentData','markChangeAsAccepted','change:status','includes','_activeRequest','431145eaYZBt','7PETfDh','rejected','_checkIfFinished','_reviewParams','markChangeAsOutdated','version','isRated','subTitle','length','3099gNzwsu','reviewCheckResultChangeStatusUpdated','_currentError','markAllChangesAsAccepted','reviewCheckResultDeactivated','event','isActivated','some','pending','abort','error-chunk','review-metadata','set','updateDocumentData','2695948xWnPmi','aborted','markChangeAsRejected','11SOvREU','_reviewArgs','getChangeById','finished','operation','error','get','abortController'];_0x468b=function(){return _0x3020bb;};return _0x468b();}(function(_0x4f40ea,_0x419a05){const _0x5d0839=_0x5d2b,_0x29090d=_0x4f40ea();while(!![]){try{const _0x56ab5d=parseInt(_0x5d0839(0x1a8))/0x1+parseInt(_0x5d0839(0x1ca))/0x2*(parseInt(_0x5d0839(0x1ea))/0x3)+parseInt(_0x5d0839(0x1f8))/0x4+-parseInt(_0x5d0839(0x1b0))/0x5*(-parseInt(_0x5d0839(0x1ac))/0x6)+-parseInt(_0x5d0839(0x1e1))/0x7*(-parseInt(_0x5d0839(0x1d2))/0x8)+parseInt(_0x5d0839(0x1e0))/0x9+-parseInt(_0x5d0839(0x1ba))/0xa*(parseInt(_0x5d0839(0x1fb))/0xb);if(_0x56ab5d===_0x419a05)break;else _0x29090d['push'](_0x29090d['shift']());}catch(_0x3bfb28){_0x29090d['push'](_0x29090d['shift']());}}}(_0x468b,0x9aae0));import{ObservableMixin as _0x16668e,uid as _0x58a43b}from'ckeditor5/src/utils.js';import{AIReviewCheckResult as _0x55587e}from'./aireviewcheckresult.js';function _0x5d2b(_0x26fd22,_0x281b57){const _0x468b27=_0x468b();return _0x5d2b=function(_0x5d2b27,_0x3373b2){_0x5d2b27=_0x5d2b27-0x1a0;let _0x207fe4=_0x468b27[_0x5d2b27];return _0x207fe4;},_0x5d2b(_0x26fd22,_0x281b57);}import{AIReviewCheckResultChange as _0xe44ef2}from'./aireviewcheckresultchange.js';export class AIReviewCheckRun extends _0x16668e(){['id']=_0x58a43b();[_0x97d53(0x1a6)];[_0x97d53(0x1b4)]=new Map();[_0x97d53(0x1d7)]=[];[_0x97d53(0x1c0)];[_0x97d53(0x1a1)];[_0x97d53(0x1be)];[_0x97d53(0x1e4)];[_0x97d53(0x1fc)];[_0x97d53(0x1df)]=null;[_0x97d53(0x1ec)];constructor(_0x328b0b,_0x2151ba,_0x55576f,_0x5733f6,_0x278fb5){const _0x5bd5e9=_0x97d53;super(),this[_0x5bd5e9(0x1c0)]=_0x2151ba,this[_0x5bd5e9(0x1a1)]=_0x328b0b,this[_0x5bd5e9(0x1be)]=_0x55576f,this[_0x5bd5e9(0x1e4)]=_0x5733f6,this[_0x5bd5e9(0x1fc)]=_0x278fb5,this['on'](_0x5bd5e9(0x1dd),(_0x2496f4,_0x42ae77,_0x3f9a72)=>{const _0x56ec39=_0x5bd5e9;this[_0x56ec39(0x1a2)](_0x56ec39(0x1c5),{'status':_0x3f9a72,'run':this,'error':this[_0x56ec39(0x1ec)]});}),this[_0x5bd5e9(0x1f6)](_0x5bd5e9(0x1ad),_0x5bd5e9(0x1a4));}get[_0x97d53(0x1db)](){const _0x234aa3=_0x97d53;return this[_0x234aa3(0x1a1)];}get[_0x97d53(0x1c2)](){const _0x4453ef=_0x97d53;return this[_0x4453ef(0x1b4)][_0x4453ef(0x1bf)];}get[_0x97d53(0x1a0)](){const _0x3db230=_0x97d53;return this[_0x3db230(0x1c0)][_0x3db230(0x1a0)];}get[_0x97d53(0x1e8)](){return'';}get[_0x97d53(0x1b2)](){const _0xe1a472=_0x97d53;return this[_0xe1a472(0x1c0)]['id'];}get[_0x97d53(0x1cf)](){const _0x524ed6=_0x97d53;return!this[_0x524ed6(0x1d7)][_0x524ed6(0x1b3)](_0x441708=>_0x524ed6(0x1f2)===_0x441708[_0x524ed6(0x1ad)]);}get[_0x97d53(0x1da)](){const _0x10f389=_0x97d53;return this[_0x10f389(0x1ec)];}[_0x97d53(0x1f7)](_0xc052d0){const _0x4732d7=_0x97d53;this[_0x4732d7(0x1a1)]=_0xc052d0;}async[_0x97d53(0x1af)](){const _0x462fb6=_0x97d53;this[_0x462fb6(0x1ad)]=_0x462fb6(0x1cc),this[_0x462fb6(0x1ec)]=void 0x0;try{this[_0x462fb6(0x1df)]=this[_0x462fb6(0x1ae)]();const _0x4cf350=await this[_0x462fb6(0x1df)][_0x462fb6(0x1ce)]();this[_0x462fb6(0x1ad)]=_0x462fb6(0x1a7);for await(const _0x496010 of _0x4cf350)_0x462fb6(0x1d5)!==_0x496010[_0x462fb6(0x1a7)][_0x462fb6(0x1ff)]&&(_0x462fb6(0x200)!==_0x496010[_0x462fb6(0x1a7)][_0x462fb6(0x1ff)]?_0x462fb6(0x1f5)!==_0x496010[_0x462fb6(0x1ef)]?this[_0x462fb6(0x1c7)](_0x496010[_0x462fb6(0x1a7)][_0x462fb6(0x1c6)],_0x496010[_0x462fb6(0x1a7)][_0x462fb6(0x1c4)]):this[_0x462fb6(0x1a6)]=_0x496010[_0x462fb6(0x1a7)][_0x462fb6(0x1a6)]:this[_0x462fb6(0x1ad)]=_0x462fb6(0x1f4));_0x462fb6(0x1f4)!==this[_0x462fb6(0x1ad)]&&(0x0===this[_0x462fb6(0x1b4)][_0x462fb6(0x1bf)]?this[_0x462fb6(0x1ad)]=_0x462fb6(0x1d5):this[_0x462fb6(0x1ad)]=_0x462fb6(0x1b8));}catch(_0x58f7d0){this[_0x462fb6(0x1ec)]=_0x58f7d0,_0x58f7d0 instanceof Error&&_0x58f7d0[_0x462fb6(0x1b5)][_0x462fb6(0x1de)](_0x462fb6(0x1b7))?this[_0x462fb6(0x1ad)]=_0x462fb6(0x1f9):this[_0x462fb6(0x1ad)]=_0x462fb6(0x203);}finally{this[_0x462fb6(0x1df)]=null;}}async[_0x97d53(0x1c3)](){const _0x3821de=_0x97d53;this[_0x3821de(0x1b4)][_0x3821de(0x1c8)](),this[_0x3821de(0x1d7)][_0x3821de(0x1e9)]=0x0,this[_0x3821de(0x1ec)]=void 0x0,await this[_0x3821de(0x1af)]();}[_0x97d53(0x1c9)](_0x2cf906,_0x108a2c){const _0x3054ea=_0x97d53,_0x1dd68b=this[_0x3054ea(0x1b4)][_0x3054ea(0x201)](_0x2cf906);if(!_0x1dd68b)return;const _0x30e14d=[];_0x108a2c[_0x3054ea(0x1cb)]((_0x40cb1f,_0x40306c)=>{const _0x271ae7=_0x3054ea,_0x11813d=new _0xe44ef2(_0x1dd68b['id']+'-'+_0x40306c,_0x40cb1f,_0x1dd68b);_0x11813d['on'](_0x271ae7(0x1dd),()=>{const _0x1d930a=_0x271ae7;this[_0x1d930a(0x1a2)](_0x1d930a(0x1eb),{'change':_0x11813d,'status':_0x11813d[_0x1d930a(0x1ad)]});}),_0x11813d['on'](_0x271ae7(0x1bd),()=>{const _0x33854f=_0x271ae7;_0x11813d[_0x33854f(0x1f0)]?this[_0x33854f(0x1a2)](_0x33854f(0x1cd),{'change':_0x11813d}):this[_0x33854f(0x1a2)](_0x33854f(0x1ee),{'change':_0x11813d});}),this[_0x271ae7(0x1d7)][_0x271ae7(0x1c1)](_0x11813d),_0x30e14d[_0x271ae7(0x1c1)](_0x11813d);}),this[_0x3054ea(0x1a2)](_0x3054ea(0x1a9),{'changes':_0x30e14d,'result':_0x1dd68b,'source':this});}[_0x97d53(0x1f3)](){const _0xfb7f95=_0x97d53;this[_0xfb7f95(0x1df)]&&(this[_0xfb7f95(0x1df)][_0xfb7f95(0x202)][_0xfb7f95(0x1f3)](),this[_0xfb7f95(0x1df)]=null,this[_0xfb7f95(0x1ad)]=_0xfb7f95(0x1f9));}[_0x97d53(0x1b1)](_0xcb5713){const _0x2e110d=_0x97d53,_0x24afc2=this[_0x2e110d(0x1d7)][_0x2e110d(0x1a3)](_0x560613=>_0x560613['id']===_0xcb5713);return!(!_0x24afc2||_0x2e110d(0x1f2)!==_0x24afc2[_0x2e110d(0x1ad)]);}[_0x97d53(0x1bb)](){const _0x3af754=_0x97d53;return this[_0x3af754(0x1d7)][_0x3af754(0x1f1)](_0x5d3ed8=>!0x0===_0x5d3ed8[_0x3af754(0x1f0)]);}[_0x97d53(0x1b9)](){const _0x4233c8=_0x97d53;return this[_0x4233c8(0x1d7)][_0x4233c8(0x1a5)](_0x2d5183=>_0x4233c8(0x1f2)===_0x2d5183[_0x4233c8(0x1ad)]);}[_0x97d53(0x1fd)](_0x47e6ee){const _0x5ba4fd=_0x97d53;return this[_0x5ba4fd(0x1d7)][_0x5ba4fd(0x1a3)](_0x1f878f=>_0x1f878f['id']===_0x47e6ee);}[_0x97d53(0x1ed)](){const _0x1fced0=_0x97d53;for(const _0x1ddf55 of this[_0x1fced0(0x1d7)])_0x1fced0(0x1f2)===_0x1ddf55[_0x1fced0(0x1ad)]&&(_0x1ddf55[_0x1fced0(0x1ad)]=_0x1fced0(0x1b6));this[_0x1fced0(0x1e3)]();}[_0x97d53(0x1dc)](_0x45aa9a){const _0x1f706a=_0x97d53,_0x4de5b5=this[_0x1f706a(0x1d7)][_0x1f706a(0x1a3)](_0x1e32f7=>_0x1e32f7['id']===_0x45aa9a);_0x4de5b5&&_0x1f706a(0x1f2)===_0x4de5b5[_0x1f706a(0x1ad)]&&(_0x4de5b5[_0x1f706a(0x1ad)]=_0x1f706a(0x1b6)),this[_0x1f706a(0x1e3)]();}[_0x97d53(0x1fa)](_0x1e4a07){const _0x28df83=_0x97d53,_0x31f79e=this[_0x28df83(0x1d7)][_0x28df83(0x1a3)](_0x50da36=>_0x50da36['id']===_0x1e4a07);_0x31f79e&&_0x28df83(0x1f2)===_0x31f79e[_0x28df83(0x1ad)]&&(_0x31f79e[_0x28df83(0x1ad)]=_0x28df83(0x1e2)),this[_0x28df83(0x1e3)]();}[_0x97d53(0x1e5)](_0x1e634b){const _0x3ec750=_0x97d53,_0x355877=this[_0x3ec750(0x1d7)][_0x3ec750(0x1a3)](_0x7d978=>_0x7d978['id']===_0x1e634b);_0x355877&&_0x3ec750(0x1f2)===_0x355877[_0x3ec750(0x1ad)]&&(_0x355877[_0x3ec750(0x1ad)]=_0x3ec750(0x1ab)),this[_0x3ec750(0x1e3)]();}[_0x97d53(0x1d0)](_0x2290d0){const _0x296f3c=_0x97d53,_0x6c14a=this[_0x296f3c(0x1d7)][_0x296f3c(0x1a3)](_0x5187c8=>_0x5187c8['id']===_0x2290d0);_0x6c14a&&_0x296f3c(0x1ab)===_0x6c14a[_0x296f3c(0x1ad)]&&(_0x6c14a[_0x296f3c(0x1ad)]=_0x296f3c(0x1f2)),this[_0x296f3c(0x1e3)]();}[_0x97d53(0x1d8)](_0x2106a4){const _0x225a9c=_0x97d53;this[_0x225a9c(0x1d7)][_0x225a9c(0x1a5)](_0x5ca1de=>_0x5ca1de[_0x225a9c(0x1f0)]&&_0x5ca1de['id']!==_0x2106a4)[_0x225a9c(0x1cb)](_0x4ac060=>{const _0x518f9e=_0x225a9c;_0x4ac060[_0x518f9e(0x1f0)]=!0x1;});const _0x4f5082=this[_0x225a9c(0x1d7)][_0x225a9c(0x1a3)](_0x1f84d0=>_0x1f84d0['id']===_0x2106a4);_0x4f5082&&_0x225a9c(0x1f2)===_0x4f5082[_0x225a9c(0x1ad)]&&(_0x4f5082[_0x225a9c(0x1f0)]=!0x0);}[_0x97d53(0x1aa)](){const _0x26cbdb=_0x97d53;this[_0x26cbdb(0x1d7)][_0x26cbdb(0x1a5)](_0x227fdf=>_0x227fdf[_0x26cbdb(0x1f0)])[_0x26cbdb(0x1cb)](_0xc14c75=>{const _0x332229=_0x26cbdb;_0xc14c75[_0x332229(0x1f0)]=!0x1;});}[_0x97d53(0x1d3)](){const _0x33b5f2=_0x97d53;this[_0x33b5f2(0x1ad)]=_0x33b5f2(0x1b8);}async[_0x97d53(0x1d4)](_0x5edb22){const _0x242714=_0x97d53;if(_0x242714(0x1a4)===this[_0x242714(0x1ad)]||_0x242714(0x1cc)===this[_0x242714(0x1ad)]||_0x242714(0x1a7)===this[_0x242714(0x1ad)])return;if(!this[_0x242714(0x1a6)]||0x0===this[_0x242714(0x1d7)][_0x242714(0x1e9)])return;let _0x12555f;if(_0x5edb22){const _0x5e17f8=this[_0x242714(0x1d7)][_0x242714(0x1a3)](_0x34b840=>_0x34b840['id']===_0x5edb22);if(_0x5e17f8&&_0x5e17f8[_0x242714(0x1e7)])return;_0x5e17f8&&(_0x12555f=_0x5e17f8[_0x242714(0x1d6)]['id'],_0x5e17f8[_0x242714(0x1e7)]=!0x0);}const _0x33584a={'positiveCount':this[_0x242714(0x1d7)][_0x242714(0x1a5)](_0x311426=>_0x242714(0x1b6)===_0x311426[_0x242714(0x1ad)])[_0x242714(0x1e9)],'totalCount':this[_0x242714(0x1d7)][_0x242714(0x1e9)]};this[_0x242714(0x1bc)](_0x33584a,this[_0x242714(0x1a6)],_0x12555f);}[_0x97d53(0x1c7)](_0x3f9ced,_0x445d2c){const _0x471696=_0x97d53,_0x48aabf=this[_0x471696(0x1a1)][_0x471696(0x204)][_0x471696(0x201)](_0x3f9ced);if(!_0x48aabf)return;const _0x2a1f7e=_0x48aabf[_0x471696(0x1d1)]();if(_0x2a1f7e===_0x445d2c)return;const _0x12d6d6=new _0x55587e({'id':_0x3f9ced,'contentInitial':_0x2a1f7e,'contentNew':_0x445d2c,'documentVersion':this[_0x471696(0x1a1)][_0x471696(0x1e6)]});this[_0x471696(0x1b4)][_0x471696(0x1f6)](_0x12d6d6['id'],_0x12d6d6),this[_0x471696(0x1a2)](_0x471696(0x1d9),{'result':_0x12d6d6,'source':this});}[_0x97d53(0x1e3)](){const _0x5a8389=_0x97d53;_0x5a8389(0x1fe)===this[_0x5a8389(0x1ad)]&&(this[_0x5a8389(0x1d7)][_0x5a8389(0x1a5)](_0x579ce5=>_0x5a8389(0x1f2)===_0x579ce5[_0x5a8389(0x1ad)])[_0x5a8389(0x1e9)]>0x0&&(this[_0x5a8389(0x1ad)]=_0x5a8389(0x1b8))),_0x5a8389(0x1b8)===this[_0x5a8389(0x1ad)]&&(0x0===this[_0x5a8389(0x1d7)][_0x5a8389(0x1a5)](_0xa67d83=>_0x5a8389(0x1f2)===_0xa67d83[_0x5a8389(0x1ad)])[_0x5a8389(0x1e9)]&&(this[_0x5a8389(0x1ad)]=_0x5a8389(0x1fe)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3510(_0x95d55f,_0x43db7b){var _0x3f421d=_0x3f42();return _0x3510=function(_0x351091,_0x3896b9){_0x351091=_0x351091-0xa0;var _0x56c20d=_0x3f421d[_0x351091];return _0x56c20d;},_0x3510(_0x95d55f,_0x43db7b);}function _0x3f42(){var _0x5dd30e=['_prompt','callCustomReview','_createApiRequest','21nzwVBE','subTitle','600651SwOBAb','52420PnOBkI','27098790tFYJmH','892351yYyPnK','1559116bdPemA','_aiConnector','_documentData','_model','_sendRatingRequest','upsertCustomAIReviewRating','89106yiIcGx','content','4801048jsURhT','120FfPzAx','16GTyLKz','11kIsZYV'];_0x3f42=function(){return _0x5dd30e;};return _0x3f42();}var _0x2a8592=_0x3510;(function(_0x5f1be0,_0x4eecae){var _0x103bde=_0x3510,_0x2406ca=_0x5f1be0();while(!![]){try{var _0xcd5958=-parseInt(_0x103bde(0xb3))/0x1+-parseInt(_0x103bde(0xb4))/0x2+parseInt(_0x103bde(0xae))/0x3*(-parseInt(_0x103bde(0xb1))/0x4)+-parseInt(_0x103bde(0xa8))/0x5*(-parseInt(_0x103bde(0xa5))/0x6)+-parseInt(_0x103bde(0xa7))/0x7+-parseInt(_0x103bde(0xa9))/0x8*(parseInt(_0x103bde(0xb0))/0x9)+-parseInt(_0x103bde(0xb2))/0xa*(-parseInt(_0x103bde(0xaa))/0xb);if(_0xcd5958===_0x4eecae)break;else _0x2406ca['push'](_0x2406ca['shift']());}catch(_0x5958f2){_0x2406ca['push'](_0x2406ca['shift']());}}}(_0x3f42,0x75ff5));import{AIReviewCheckRun as _0x2eed7c}from'./aireviewcheckrun.js';export class AIReviewCustomCheckRun extends _0x2eed7c{[_0x2a8592(0xab)];[_0x2a8592(0xa2)];constructor(_0xa8dd72,_0x1d3898,_0x29fe0b,_0x36ba2a,_0x5cfeed){var _0x1fafa9=_0x2a8592;super(_0x29fe0b,_0x36ba2a,_0x5cfeed),this[_0x1fafa9(0xab)]=_0xa8dd72,this[_0x1fafa9(0xa2)]=_0x1d3898;}get[_0x2a8592(0xaf)](){var _0x2d19d6=_0x2a8592;return this[_0x2d19d6(0xab)];}[_0x2a8592(0xad)](){var _0x475382=_0x2a8592;return this[_0x475382(0xa0)][_0x475382(0xac)]({'content':this[_0x475382(0xa1)][_0x475382(0xa6)],'prompt':this[_0x475382(0xab)],'model':this[_0x475382(0xa2)]});}[_0x2a8592(0xa3)](_0x275ab0,_0x3d9563,_0xfbb096){var _0x407519=_0x2a8592;return this[_0x407519(0xa0)][_0x407519(0xa4)](_0x3d9563,_0x275ab0,_0xfbb096);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d194e=_0x5c60;(function(_0x5e7263,_0x2650c8){const _0x1d05f4=_0x5c60,_0x1e2293=_0x5e7263();while(!![]){try{const _0xa9cd6=-parseInt(_0x1d05f4(0x126))/0x1*(-parseInt(_0x1d05f4(0x120))/0x2)+-parseInt(_0x1d05f4(0x121))/0x3*(parseInt(_0x1d05f4(0x12a))/0x4)+-parseInt(_0x1d05f4(0x134))/0x5*(-parseInt(_0x1d05f4(0x128))/0x6)+-parseInt(_0x1d05f4(0x11b))/0x7+parseInt(_0x1d05f4(0x131))/0x8+parseInt(_0x1d05f4(0x123))/0x9*(parseInt(_0x1d05f4(0x132))/0xa)+parseInt(_0x1d05f4(0x12e))/0xb*(-parseInt(_0x1d05f4(0x135))/0xc);if(_0xa9cd6===_0x2650c8)break;else _0x1e2293['push'](_0x1e2293['shift']());}catch(_0x2dbe2f){_0x1e2293['push'](_0x1e2293['shift']());}}}(_0x2408,0x41f90));function _0x5c60(_0x184d64,_0x284287){const _0x24088f=_0x2408();return _0x5c60=function(_0x5c607b,_0x2f9d8f){_0x5c607b=_0x5c607b-0x11a;let _0x267c91=_0x24088f[_0x5c607b];return _0x267c91;},_0x5c60(_0x184d64,_0x284287);}import{AIReviewCheckRun as _0x27ce45}from'./aireviewcheckrun.js';export class AIReviewSystemCheckRun extends _0x27ce45{get[_0x5d194e(0x127)](){const _0x26e5a3=_0x5d194e;if(!this[_0x26e5a3(0x122)]||0x0===this[_0x26e5a3(0x122)][_0x26e5a3(0x129)])return'';const _0x5e7bf3=[];if(this[_0x26e5a3(0x122)][_0x26e5a3(0x129)]>0x0&&this[_0x26e5a3(0x12c)][_0x26e5a3(0x11a)])for(let _0x409ea0=0x0;_0x409ea0<this[_0x26e5a3(0x122)][_0x26e5a3(0x129)];_0x409ea0++){if(!this[_0x26e5a3(0x122)][_0x409ea0]||!this[_0x26e5a3(0x12c)][_0x26e5a3(0x11a)][_0x409ea0])continue;const _0x21da90=this[_0x26e5a3(0x12c)][_0x26e5a3(0x11a)][_0x409ea0],_0x306fe6=_0x21da90[_0x26e5a3(0x11f)]?.[_0x26e5a3(0x137)](_0x2133ac=>_0x2133ac['id']===this[_0x26e5a3(0x122)][_0x409ea0]);_0x306fe6&&_0x5e7bf3[_0x26e5a3(0x125)](_0x306fe6[_0x26e5a3(0x11d)]);}return _0x5e7bf3[_0x26e5a3(0x11c)](',\x20');}get[_0x5d194e(0x130)](){const _0x4f962b=_0x5d194e;return this[_0x4f962b(0x139)]();}[_0x5d194e(0x124)](){const _0xf6995a=_0x5d194e;return this[_0xf6995a(0x138)][_0xf6995a(0x12f)]({'reviewName':this[_0xf6995a(0x139)](),'content':this[_0xf6995a(0x12b)][_0xf6995a(0x12d)],'args':this[_0xf6995a(0x136)]});}[_0x5d194e(0x133)](_0x2bcb8c,_0x1004ae,_0x467e46){const _0x9b7e88=_0x5d194e;return this[_0x9b7e88(0x138)][_0x9b7e88(0x11e)](this[_0x9b7e88(0x130)],_0x1004ae,_0x2bcb8c,_0x467e46);}[_0x5d194e(0x139)](){const _0x5ecb04=_0x5d194e;return!this[_0x5ecb04(0x122)]||0x0===this[_0x5ecb04(0x122)][_0x5ecb04(0x129)]||this[_0x5ecb04(0x12c)][_0x5ecb04(0x13a)]?this[_0x5ecb04(0x12c)]['id']:[this[_0x5ecb04(0x12c)]['id'],...this[_0x5ecb04(0x122)]][_0x5ecb04(0x11c)]('-');}}function _0x2408(){const _0x44572c=['_sendRatingRequest','83045gKssNM','42876QpzLEa','_reviewArgs','find','_aiConnector','_composeReviewName','useArgs','options','278026hYmWeM','join','label','upsertAIReviewRating','data','28jSTBdy','3YoDyVC','_reviewParams','18eNXhjg','_createApiRequest','push','4729AvsKMs','subTitle','132aiGHZh','length','12996MecQYl','_documentData','_sourceCheck','content','1837LDuDUi','callSystemReview','reviewName','2879840kIVgNh','591490aFqtVv'];_0x2408=function(){return _0x44572c;};return _0x2408();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x332ea9=_0x41bc;function _0x1fa9(){var _0x4afd58=['8XvOZBs','value','76833cZFIJf','listenTo','48NvWOjh','9192029FFTSWz','10PWmlXA','6544419daAmrN','4GYzgKx','68223tmZlJO','ai-review-mode-prompt-input','element','set','ck-review-mode__prompt-input','maxRows','303140TEiLLk','50xwlJNl','update','extendTemplate','render','minRows','MAX_ROWS','794028UtJmFc','5638395MaRDNR','keystrokes','trim','isEmpty','MIN_ROWS'];_0x1fa9=function(){return _0x4afd58;};return _0x1fa9();}function _0x41bc(_0x15aa70,_0x2f2b7b){var _0x1fa9d9=_0x1fa9();return _0x41bc=function(_0x41bcbd,_0xe9d26c){_0x41bcbd=_0x41bcbd-0x18f;var _0x224495=_0x1fa9d9[_0x41bcbd];return _0x224495;},_0x41bc(_0x15aa70,_0x2f2b7b);}(function(_0x1e6c73,_0x1645aa){var _0x4aa3c=_0x41bc,_0x3096a4=_0x1e6c73();while(!![]){try{var _0x2bf538=-parseInt(_0x4aa3c(0x19d))/0x1+parseInt(_0x4aa3c(0x194))/0x2*(-parseInt(_0x4aa3c(0x197))/0x3)+-parseInt(_0x4aa3c(0x196))/0x4*(parseInt(_0x4aa3c(0x1a5))/0x5)+-parseInt(_0x4aa3c(0x1a4))/0x6+-parseInt(_0x4aa3c(0x195))/0x7*(parseInt(_0x4aa3c(0x1aa))/0x8)+-parseInt(_0x4aa3c(0x190))/0x9*(-parseInt(_0x4aa3c(0x19e))/0xa)+-parseInt(_0x4aa3c(0x193))/0xb*(-parseInt(_0x4aa3c(0x192))/0xc);if(_0x2bf538===_0x1645aa)break;else _0x3096a4['push'](_0x3096a4['shift']());}catch(_0x2711ca){_0x3096a4['push'](_0x3096a4['shift']());}}}(_0x1fa9,0xbcd56));import{TextareaView as _0x2170aa}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x585341}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x2170aa{[_0x332ea9(0x1a6)];static [_0x332ea9(0x1a9)]=0x1;static [_0x332ea9(0x1a3)]=0xc;constructor(_0x1d9b03){var _0xd72cfb=_0x332ea9;super(_0x1d9b03),this[_0xd72cfb(0x19a)](_0xd72cfb(0x1a8),!0x0),this[_0xd72cfb(0x1a6)]=new _0x585341(),this[_0xd72cfb(0x1a2)]=AIReviewModePromptInputView[_0xd72cfb(0x1a9)],this[_0xd72cfb(0x19c)]=AIReviewModePromptInputView[_0xd72cfb(0x1a3)],this[_0xd72cfb(0x1a0)]({'attributes':{'id':_0xd72cfb(0x198),'class':['ck',_0xd72cfb(0x19b)]}});}[_0x332ea9(0x1a1)](){var _0x2203b3=_0x332ea9;super[_0x2203b3(0x1a1)](),this['on'](_0x2203b3(0x19f),()=>{var _0x40432a=_0x2203b3;this[_0x40432a(0x1a8)]=''===this[_0x40432a(0x199)][_0x40432a(0x18f)]?.[_0x40432a(0x1a7)]();}),this[_0x2203b3(0x1a6)][_0x2203b3(0x191)](this[_0x2203b3(0x199)]);}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aireviewmode/ui/customcontrols/aireviewmodeballoonsuggestionview
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { BalloonPanelView, type BodyCollection } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { AIReviewModeReviewCheckListItemResultsView } from './aireviewmodechecklistitemresultview.js';
|
|
11
11
|
import type { AIReviewCheckResultChange } from '../model/aireviewcheckresultchange.js';
|
|
@@ -18,10 +18,19 @@ export declare class AIReviewModeBalloonSuggestionItemView extends BalloonPanelV
|
|
|
18
18
|
* @param locale The localization services instance.
|
|
19
19
|
*/
|
|
20
20
|
resultItemView: AIReviewModeReviewCheckListItemResultsView;
|
|
21
|
+
/**
|
|
22
|
+
* @observable
|
|
23
|
+
*/
|
|
24
|
+
isDiffActive: boolean;
|
|
21
25
|
constructor(locale: Locale, bodyCollection: BodyCollection);
|
|
22
26
|
render(): void;
|
|
23
27
|
updateContent(change: AIReviewCheckResultChange): void;
|
|
24
|
-
showBalloon(change: AIReviewCheckResultChange, target: HTMLElement
|
|
28
|
+
showBalloon(change: AIReviewCheckResultChange, target: HTMLElement, domEvent: MouseEvent | undefined, eventType?: 'click' | 'hover', limiter?: HTMLElement, viewportOffset?: {
|
|
29
|
+
top?: number;
|
|
30
|
+
left?: number;
|
|
31
|
+
bottom?: number;
|
|
32
|
+
right?: number;
|
|
33
|
+
}): void;
|
|
25
34
|
hideBalloon(): void;
|
|
26
35
|
hideDiffInBalloon(): void;
|
|
27
36
|
showDiffInBalloon(): void;
|
|
@@ -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 _0x21bf2c,View as _0x2a91ba,ViewCollection as _0x49cecb,ButtonView as _0x15acfc}from'ckeditor5/src/ui.js';import{IconStop as _0x125536,IconEye as _0x44efc0,IconEyeCrossedOut as _0x1edc0a}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x595a42}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x317f7e}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x270f0d,SKELETON_DEFINITIONS as _0xf74b1}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x56e1ac}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x291e9c}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2511c8}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x21bf2c{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x23085c){super(_0x23085c),this['_resultViews']=new _0x49cecb(),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 _0x56e1ac(_0x23085c),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 _0x3fd9f6=this['_createCombinedSkeletonLoader'](),_0x3ea738=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3ea738['if']('isVisible','ck-hidden',_0x4d9d0a=>!_0x4d9d0a)]},'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',_0x31ea40=>_0x31ea40)]},'children':this['_resultViews']},_0x3fd9f6]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x475c9c){const _0x4f1487=new _0x595a42(this['locale'],_0x475c9c['id']);_0x4f1487['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x4f1487),_0x4f1487['resultResponseView']['element']['innerHTML']=_0x475c9c['contentDiffed'];}['hideResult'](_0x55214a,_0x407cbc){if('pending'===_0x407cbc)return;const _0x520c0d=this['_resultViews']['find'](_0x35419f=>_0x35419f['id']===_0x55214a);_0x520c0d&&(_0x520c0d['status']=_0x407cbc,_0x520c0d['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x45f0d7,_0x16de08){if('pending'!==_0x16de08)return;const _0x199f86=this['_resultViews']['find'](_0x27c914=>_0x27c914['id']===_0x45f0d7);_0x199f86&&(_0x199f86['status']=_0x16de08,_0x199f86['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x8aae45,_0x53ba1a){this['headerTitle']=_0x8aae45,this['headerSubtitle']=_0x53ba1a||'';}['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 _0x270f0d(this['locale'],_0xf74b1['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x565344=new _0x2a91ba(this['locale']),_0x553379=[];for(let _0x3b1794=0x0;_0x3b1794<0x10;_0x3b1794++){const _0x1462a0=this['_createSkeletonLoader']();_0x1462a0['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x553379['push'](_0x1462a0);}return _0x565344['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x40855f=>!_0x40855f)]},'children':_0x553379}),_0x565344;}['_createErrorView'](){const _0x421edd=new _0x2a91ba(this['locale']),_0x329a71=new _0x15acfc(this['locale']),t=this['locale']['t'];return _0x421edd['delegate']('retryReview')['to'](this),_0x329a71['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x329a71['on']('execute',()=>{this['fire']('retryReview');}),_0x421edd['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x1a17dd=>!_0x1a17dd),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x3035a1=>'chunk'===_0x3035a1)]},'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',_0x2d6d4e=>'chunk'===_0x2d6d4e)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3de209=>'general'!==_0x3de209)]},'children':[{'text':_0x291e9c(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-chat-error__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x5c40f5=>'chunk'!==_0x5c40f5)]},'children':[{'text':_0x291e9c(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x329a71]}),_0x421edd;}['_createCancelButtonView'](){const _0x3581ed=new _0x15acfc(this['locale']);return _0x3581ed['set']({'label':_0x291e9c(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x125536}),_0x3581ed['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x4945ad=>_0x4945ad),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x599ca8=>_0x599ca8)]}}),_0x3581ed['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x3581ed;}['_createToggleDiffButtonView'](){const _0x182cbf=new _0x15acfc(this['locale']);_0x182cbf['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x182cbf['bind']('isEnabled')['to'](this,'isError',_0x5bf676=>!_0x5bf676),_0x182cbf['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x2d9e3a=>!_0x2d9e3a),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5b86f4=>_0x5b86f4)]}});const _0x36b4e3=_0x291e9c(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x114cb6=_0x291e9c(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x182cbf['bind']('isOn')['to'](this,'isToggleDiffOn',_0x2f11b5=>_0x2f11b5),_0x182cbf['bind']('icon')['to'](this,'isToggleDiffOn',_0x3e9080=>_0x3e9080?_0x44efc0:_0x1edc0a),_0x182cbf['bind']('label')['to'](this,'isToggleDiffOn',_0xa56e1a=>_0xa56e1a?_0x36b4e3:_0x114cb6),_0x182cbf['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x182cbf;}['_createAcceptAllButtonView'](){const _0x1c710a=new _0x15acfc(this['locale']);return _0x1c710a['set']({'label':_0x291e9c(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x1c710a['bind']('isEnabled')['to'](this,'isError',_0x5935b3=>!_0x5935b3),_0x1c710a['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x496f92=>!_0x496f92),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x53253c=>_0x53253c)]}}),_0x1c710a['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x1c710a;}['_createExitReviewButtonView'](){const _0x191c72=new _0x15acfc(this['locale']);return _0x191c72['set']({'label':_0x291e9c(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x191c72['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1d1276=>!_0x1d1276),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3b3d39=>_0x3b3d39)]}}),_0x191c72['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x191c72;}['_createResultHeaderView'](){const _0xeb9f67=new _0x2a91ba(this['locale']),_0x157494=this['_createTitleView']();return _0xeb9f67['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x5cbec6=>_0x5cbec6)]},'children':[_0x157494,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0xeb9f67;}['_createTitleView'](){const _0x21e2b9=new _0x2a91ba(this['locale']),_0x2d3972=new _0x2511c8();return _0x2d3972['bind']('isVisible')['to'](this,'isResultReady',_0x168b8c=>!_0x168b8c),_0x21e2b9['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x2d3972,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x1c504e=>_0x1c504e)]},'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',_0xe69a8=>!_0xe69a8)]},'children':[{'text':_0x291e9c(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x21e2b9;}['_createFinishReviewButtonView'](){const _0x408804=new _0x317f7e(this['locale']);return _0x408804['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x3dd953=>!_0x3dd953)]}}),_0x408804['delegate']('finishReview')['to'](this),_0x408804;}}
|
|
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'];}}
|