@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.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/translations/ar.po +9 -9
- package/lang/translations/bg.po +9 -9
- package/lang/translations/bn.po +9 -9
- package/lang/translations/ca.po +9 -9
- package/lang/translations/cs.po +9 -9
- package/lang/translations/da.po +9 -9
- package/lang/translations/de.po +9 -9
- package/lang/translations/el.po +9 -9
- package/lang/translations/es.po +9 -9
- package/lang/translations/et.po +9 -9
- package/lang/translations/fi.po +9 -9
- package/lang/translations/fr.po +9 -9
- package/lang/translations/he.po +9 -9
- package/lang/translations/hi.po +9 -9
- package/lang/translations/hu.po +9 -9
- package/lang/translations/id.po +9 -9
- package/lang/translations/it.po +9 -9
- package/lang/translations/ja.po +9 -9
- package/lang/translations/ko.po +9 -9
- package/lang/translations/lt.po +9 -9
- package/lang/translations/lv.po +9 -9
- package/lang/translations/ms.po +9 -9
- package/lang/translations/nl.po +9 -9
- package/lang/translations/no.po +9 -9
- package/lang/translations/pl.po +9 -9
- package/lang/translations/pt-br.po +9 -9
- package/lang/translations/pt.po +9 -9
- package/lang/translations/ro.po +9 -9
- package/lang/translations/ru.po +9 -9
- package/lang/translations/sk.po +9 -9
- package/lang/translations/sr.po +9 -9
- package/lang/translations/sv.po +9 -9
- package/lang/translations/th.po +9 -9
- package/lang/translations/tr.po +9 -9
- package/lang/translations/uk.po +9 -9
- package/lang/translations/vi.po +9 -9
- package/lang/translations/zh-cn.po +9 -9
- package/lang/translations/zh.po +9 -9
- 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.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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 +1 -1
- 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.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- 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.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.js +1 -1
- 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.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.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e7ec=_0x4a06;function _0x4a06(_0x15f624,_0x44ac50){const _0x141e4a=_0x141e();return _0x4a06=function(_0x4a0656,_0x3840bd){_0x4a0656=_0x4a0656-0x15e;let _0x60760e=_0x141e4a[_0x4a0656];return _0x60760e;},_0x4a06(_0x15f624,_0x44ac50);}(function(_0x2711c7,_0x1562be){const _0x14bf0b=_0x4a06,_0x1aeb58=_0x2711c7();while(!![]){try{const _0x2e4e22=parseInt(_0x14bf0b(0x1a0))/0x1+-parseInt(_0x14bf0b(0x17b))/0x2*(-parseInt(_0x14bf0b(0x174))/0x3)+parseInt(_0x14bf0b(0x168))/0x4+parseInt(_0x14bf0b(0x183))/0x5*(parseInt(_0x14bf0b(0x161))/0x6)+parseInt(_0x14bf0b(0x176))/0x7+parseInt(_0x14bf0b(0x163))/0x8+-parseInt(_0x14bf0b(0x18c))/0x9;if(_0x2e4e22===_0x1562be)break;else _0x1aeb58['push'](_0x1aeb58['shift']());}catch(_0x3ba81b){_0x1aeb58['push'](_0x1aeb58['shift']());}}}(_0x141e,0xcabff));import{View as _0x3628b7,ButtonView as _0xa0ab70}from'ckeditor5/src/ui.js';import{IconInfo as _0x397aac,IconCheck as _0x2be99c,IconCancel as _0x41f033,IconOutdated as _0x37d1cf}from'ckeditor5/src/icons.js';import{getTranslation as _0x50db3a}from'../../aicore/utils/common-translations.js';export class AIReviewModeReviewCheckListItemResultsView extends _0x3628b7{[_0x55e7ec(0x17a)];[_0x55e7ec(0x197)];[_0x55e7ec(0x166)];[_0x55e7ec(0x179)];[_0x55e7ec(0x164)];constructor(_0x3a518b,_0x3e937e){const _0x43b564=_0x55e7ec;super(_0x3a518b),this['id']=_0x3e937e,this[_0x43b564(0x199)](_0x43b564(0x19f),_0x43b564(0x162)),this[_0x43b564(0x199)](_0x43b564(0x180),_0x3e937e),this[_0x43b564(0x17a)]=this[_0x43b564(0x195)](),this[_0x43b564(0x197)]=this[_0x43b564(0x196)](),this[_0x43b564(0x166)]=this[_0x43b564(0x19d)](),this[_0x43b564(0x179)]=this[_0x43b564(0x19e)](),this[_0x43b564(0x164)]=this[_0x43b564(0x19c)](),this[_0x43b564(0x199)](_0x43b564(0x177),!0x1),this[_0x43b564(0x199)](_0x43b564(0x189),!0x1),this[_0x43b564(0x199)](_0x43b564(0x19a),!0x0),this[_0x43b564(0x18a)]({'tag':_0x43b564(0x19b),'attributes':{'class':[_0x43b564(0x198),this[_0x43b564(0x17c)]['if'](_0x43b564(0x189),_0x43b564(0x17f))]},'on':{'click':this[_0x43b564(0x17c)]['to'](_0x43b564(0x16b))},'children':[this[_0x43b564(0x17a)],{'tag':_0x43b564(0x19b),'attributes':{'class':[_0x43b564(0x15f)]},'children':[{'tag':_0x43b564(0x19b),'attributes':{'class':[_0x43b564(0x184)]},'children':[this[_0x43b564(0x197)],this[_0x43b564(0x166)],this[_0x43b564(0x164)]]},this[_0x43b564(0x179)]]}]}),this['on'](_0x43b564(0x16b),()=>{const _0x35939e=_0x43b564;this[_0x35939e(0x169)](_0x35939e(0x181),{'id':_0x3e937e,'source':this});});}[_0x55e7ec(0x16f)](){const _0x5de913=_0x55e7ec;this[_0x5de913(0x189)]=!0x0;}[_0x55e7ec(0x16e)](){const _0x5a1e99=_0x55e7ec;this[_0x5a1e99(0x189)]=!0x1;}[_0x55e7ec(0x195)](){const _0x55e2be=_0x55e7ec,_0x317416=new _0x3628b7(this[_0x55e2be(0x193)]);return _0x317416[_0x55e2be(0x18a)]({'tag':_0x55e2be(0x19b),'attributes':{'class':['ck',_0x55e2be(0x16c),_0x55e2be(0x18d),_0x55e2be(0x173),this[_0x55e2be(0x17c)]['if'](_0x55e2be(0x19a),_0x55e2be(0x178),_0x45e5d0=>!_0x45e5d0)]}}),_0x317416;}[_0x55e7ec(0x196)](){const _0x5aa491=_0x55e7ec,_0x4b3ac9=new _0xa0ab70(this[_0x5aa491(0x193)]);return _0x4b3ac9[_0x5aa491(0x199)]({'label':_0x50db3a(this[_0x5aa491(0x193)],_0x5aa491(0x186)),'withText':!0x0}),_0x4b3ac9[_0x5aa491(0x188)]({'on':{'click':this[_0x5aa491(0x17c)]['to'](_0xe2470c=>{const _0x5c127d=_0x5aa491;this[_0x5c127d(0x169)](_0x5c127d(0x18b),{'id':this[_0x5c127d(0x180)]}),_0xe2470c[_0x5c127d(0x165)]();})},'attributes':{'class':[_0x5aa491(0x16d),_0x5aa491(0x18f),this[_0x5aa491(0x17c)]['if'](_0x5aa491(0x19f),_0x5aa491(0x178),_0x150aa3=>_0x5aa491(0x162)!==_0x150aa3)]}}),_0x4b3ac9;}[_0x55e7ec(0x19d)](){const _0xca15a9=_0x55e7ec,_0x4746c9=new _0xa0ab70(this[_0xca15a9(0x193)]);return _0x4746c9[_0xca15a9(0x199)]({'label':_0x50db3a(this[_0xca15a9(0x193)],_0xca15a9(0x15e)),'withText':!0x0}),_0x4746c9[_0xca15a9(0x188)]({'on':{'click':this[_0xca15a9(0x17c)]['to'](_0x106cab=>{const _0xe566df=_0xca15a9;this[_0xe566df(0x169)](_0xe566df(0x175),{'id':this[_0xe566df(0x180)]}),_0x106cab[_0xe566df(0x165)]();})},'attributes':{'class':[_0xca15a9(0x160),_0xca15a9(0x187),this[_0xca15a9(0x17c)]['if'](_0xca15a9(0x19f),_0xca15a9(0x178),_0xaa216d=>_0xca15a9(0x162)!==_0xaa216d)]}}),_0x4746c9;}[_0x55e7ec(0x19e)](){const _0x2609fe=_0x55e7ec,_0x2ae969=new _0xa0ab70(this[_0x2609fe(0x193)]);return _0x2ae969[_0x2609fe(0x199)]({'label':_0x50db3a(this[_0x2609fe(0x193)],_0x2609fe(0x16a)),'icon':_0x397aac,'tooltip':!0x0,'isToggleable':!0x0,'role':_0x2609fe(0x18e),'class':_0x2609fe(0x171)}),_0x2ae969[_0x2609fe(0x185)](_0x2609fe(0x182))['to'](this,_0x2609fe(0x177),_0x38229a=>_0x38229a),_0x2ae969['on'](_0x2609fe(0x167),()=>{const _0x1c2af1=_0x2609fe;this[_0x1c2af1(0x177)]=!this[_0x1c2af1(0x177)];}),_0x2ae969;}[_0x55e7ec(0x19c)](){const _0x24d4e8=_0x55e7ec,_0x20a83c=new _0xa0ab70(this[_0x24d4e8(0x193)]);return _0x20a83c[_0x24d4e8(0x199)]({'withText':!0x0,'isEnabled':!0x1}),_0x20a83c[_0x24d4e8(0x185)](_0x24d4e8(0x17d))['to'](this,_0x24d4e8(0x19f),_0x4ae63a=>_0x50db3a(this[_0x24d4e8(0x193)],_0x24d4e8(0x191)+_0x4ae63a[_0x24d4e8(0x172)]())),_0x20a83c[_0x24d4e8(0x185)](_0x24d4e8(0x192))['to'](this,_0x24d4e8(0x19f),_0x305386=>_0x24d4e8(0x17e)===_0x305386[_0x24d4e8(0x172)]()?_0x2be99c:_0x24d4e8(0x190)===_0x305386[_0x24d4e8(0x172)]()?_0x41f033:_0x37d1cf),_0x20a83c[_0x24d4e8(0x188)]({'attributes':{'class':[_0x24d4e8(0x16d),_0x24d4e8(0x170),this[_0x24d4e8(0x17c)]['if'](_0x24d4e8(0x19f),_0x24d4e8(0x178),_0xcf3fdc=>_0x24d4e8(0x162)===_0xcf3fdc)],'disabled':_0x24d4e8(0x194)}}),_0x20a83c;}}function _0x141e(){const _0x375ad2=['ck-content','ck-ai-button-secondary','setItemAsInactive','setItemAsActive','ck-ai-review-mode__check-run-result-status-button','ck-ai-button-tertiary-filled\x20ck-ai-review-mode__check-run-result-info-button\x20ck-hidden','toUpperCase','ck-ai-review-mode__check-run-result-response','974517hpHWSx','dismissChange','728735ymHLSA','isInfoToggleOn','ck-hidden','infoButtonView','resultResponseView','2MqehWW','bindTemplate','label','ACCEPTED','ck-ai-review-mode__check-run-result_active','changeId','activateChange','isOn','120205hvZNYY','ck-ai-review-mode__check-run-result-action-buttons','bind','AI_REVIEW_MODE_ACCEPT_CHANGE','ck-ai-review-mode__check-run-result-dismiss-button','extendTemplate','isActive','setTemplate','acceptChange','24568785GBqccW','ck-content-direct-excluded','menuitemcheckbox','ck-ai-review-mode__check-run-result-accept-button','REJECTED','AI_REVIEW_MODE_CHECK_STATUS_','icon','locale','disabled','_createResultResponseView','_createAcceptButtonView','acceptButtonView','ck-ai-review-mode__check-run-result','set','showDiff','div','_createStatusButtonView','_createDismissButtonView','_createInfoButtonView','status','881001ybswGN','AI_REVIEW_MODE_DISMISS_CHANGE','ck-ai-review-mode__check-run-result-footer','ck-ai-button-tertiary-filled','180tuRuQk','pending','10412352NUmnwR','statusButtonView','stopPropagation','dismissButtonView','execute','910436RgfMpu','fire','AI_REVIEW_MODE_LEARN_MORE','click'];_0x141e=function(){return _0x375ad2;};return _0x141e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Collection as
|
|
23
|
+
import{Collection as _0x5daf35,KeystrokeHandler as _0x1e626c,FocusTracker as _0x4c8514}from'ckeditor5/src/utils.js';import{View as _0x2b4297,ViewCollection as _0x5d98eb,ButtonView as _0x24be1a,FormRowView as _0x51f6e6,createDropdown as _0x21a7dd,addListToDropdown as _0x3caff5,UIModel as _0x710a1,ButtonLabelView as _0x7c81b4,LabeledFieldView as _0x231ebb,FocusCycler as _0x439ad1}from'ckeditor5/src/ui.js';import{AIReviewModePromptInputView as _0x2274ba}from'./aireviemodepromptinputview.js';import{getTranslation as _0x2c24bc}from'../../aicore/utils/common-translations.js';import{AIModels as _0x9cafe9}from'../../aicore/model/aimodels.js';export class AIReviewModeCustomCheckView extends _0x2b4297{['focusTracker']=new _0x4c8514();['keystrokes']=new _0x1e626c();['focusCycler'];['_focusables']=new _0x5d98eb();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x7743b3,_0x14e840){super(_0x7743b3),this['_check']=_0x14e840,this['set']('prompt',''),this['set']('modelId',''),this['_defaultValue']=_0x14e840['models']&&_0x14e840['models']['length']>0x0?_0x14e840['models'][0x0]['id']:'',this['_defaultLabel']=_0x14e840['models']&&_0x14e840['models']['length']>0x0?_0x14e840['models'][0x0]['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new _0x231ebb(this['locale'],()=>new _0x2274ba(_0x7743b3)),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 _0x5daf35(),this['_setModelList'](),_0x3caff5(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 _0x51f6e6(this['locale'],{'children':[this['promptInputView']]}),new _0x51f6e6(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x8450c4,_0x858fcb)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x858fcb()):_0x858fcb();}),this['focusCycler']=new _0x439ad1({'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'](_0x3def15=>{this['_focusables']['add'](_0x3def15),this['focusTracker']['add'](_0x3def15['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 _0x2ed6cc of this['_getFormValidators']()){const _0x5479d6=_0x2ed6cc();if(_0x5479d6)return this['promptInputView']['errorText']=_0x5479d6,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return _0x2c24bc(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x4b4b56=new _0x24be1a(this['locale']),t=this['locale']['t'];return _0x4b4b56['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x4b4b56['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x4b4b56;}['_createCancelButtonView'](){const _0x2490cf=new _0x24be1a(this['locale']),t=this['locale']['t'];return _0x2490cf['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary-filled'}),_0x2490cf['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0xa928d=>{_0xa928d['stopPropagation']();})}}),_0x2490cf['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x2490cf;}['_setModelList'](){this['_modelSelectionDropdownItems']['clear']();const _0x33e8d7=this['_check']['models'];if(this['resetToDefault'](),_0x33e8d7?.['length']){const _0x313053=_0x9cafe9['getLocalized'](this['locale'],_0x33e8d7);for(const _0x3ef2d0 of _0x313053){const _0x103a9b=new _0x710a1({'label':_0x3ef2d0['name'],'withText':!0x0,'role':'menuitemradio','id':_0x3ef2d0['id'],'model':_0x3ef2d0});_0x103a9b['bind']('isOn')['to'](this,'modelId',_0x1388a5=>_0x1388a5===_0x3ef2d0['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x103a9b,'labelView':new Zs(this['locale'],_0x3ef2d0)});}}}['_createModelSelectionDropdown'](){const _0x32648a=_0x21a7dd(this['locale']);return _0x32648a['set']({'panelPosition':'se','class':'ck-ai-review-mode__check-list-item-model-dropdown'}),_0x32648a['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),this['listenTo'](_0x32648a,'execute',_0x288db1=>{this['modelId']=_0x288db1['source']['model']['id'],_0x32648a['buttonView']['label']=_0x288db1['source']['label'];}),_0x32648a;}['_createActionsFooterView'](){const _0x8c85c9=new _0x2b4297(this['locale']);return _0x8c85c9['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']]}]}),_0x8c85c9;}}class Zs extends _0x7c81b4{constructor(_0xc38f1,_0x323b99){super();const _0x333cca=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x333cca['to']('style'),'id':_0x333cca['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x333cca['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x323b99['description']||'']}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x10c858,_0x38f443){var _0x514024=_0x1ab7,_0x5f15f7=_0x10c858();while(!![]){try{var _0x364293=-parseInt(_0x514024(0xae))/0x1+parseInt(_0x514024(0xba))/0x2+-parseInt(_0x514024(0xbe))/0x3+parseInt(_0x514024(0xbb))/0x4*(-parseInt(_0x514024(0xaf))/0x5)+-parseInt(_0x514024(0xb8))/0x6*(-parseInt(_0x514024(0xb9))/0x7)+parseInt(_0x514024(0xad))/0x8*(parseInt(_0x514024(0xb3))/0x9)+parseInt(_0x514024(0xb4))/0xa*(parseInt(_0x514024(0xb6))/0xb);if(_0x364293===_0x38f443)break;else _0x5f15f7['push'](_0x5f15f7['shift']());}catch(_0x24cdd8){_0x5f15f7['push'](_0x5f15f7['shift']());}}}(_0x4dae,0x97076));import{ButtonView as _0x5889e3}from'ckeditor5/src/ui.js';function _0x1ab7(_0x65f280,_0x2c153){var _0x4dae9c=_0x4dae();return _0x1ab7=function(_0x1ab78f,_0x5cddd4){_0x1ab78f=_0x1ab78f-0xad;var _0x52dd5a=_0x4dae9c[_0x1ab78f];return _0x52dd5a;},_0x1ab7(_0x65f280,_0x2c153);}function _0x4dae(){var _0x183391=['283394VmwVLO','4KExUGE','ck-ai-button-primary','locale','2212716ZugciR','1144JvIvqE','256312qhMwbZ','5159930VYbaoB','execute','fire','AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL','57726ZDALNp','10tBQfgS','set','12189397tubnNJ','finishReview','12AgDNwN','1671103ZXJUHR'];_0x4dae=function(){return _0x183391;};return _0x4dae();}import{getTranslation as _0x1fd57e}from'../../aicore/utils/common-translations.js';import'../../../theme/aireviewmode/aireviewmode-review-completed.css';export class AIReviewModeFinishReviewButtonView extends _0x5889e3{constructor(_0x20c761){var _0x3600c8=_0x1ab7;super(_0x20c761),this[_0x3600c8(0xb5)]({'label':_0x1fd57e(this[_0x3600c8(0xbd)],_0x3600c8(0xb2)),'withText':!0x0,'class':_0x3600c8(0xbc)}),this['on'](_0x3600c8(0xb0),()=>{var _0x3b52d7=_0x3600c8;this[_0x3b52d7(0xb1)](_0x3b52d7(0xb7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x48859e,_0xb25448){const _0x1d0a63=_0x15e8,_0x4618ac=_0x48859e();while(!![]){try{const _0x2d0d8d=-parseInt(_0x1d0a63(0x152))/0x1+-parseInt(_0x1d0a63(0x145))/0x2+-parseInt(_0x1d0a63(0x146))/0x3*(-parseInt(_0x1d0a63(0x150))/0x4)+parseInt(_0x1d0a63(0x14c))/0x5+parseInt(_0x1d0a63(0x156))/0x6*(-parseInt(_0x1d0a63(0x144))/0x7)+parseInt(_0x1d0a63(0x148))/0x8+parseInt(_0x1d0a63(0x154))/0x9*(parseInt(_0x1d0a63(0x151))/0xa);if(_0x2d0d8d===_0xb25448)break;else _0x4618ac['push'](_0x4618ac['shift']());}catch(_0x299218){_0x4618ac['push'](_0x4618ac['shift']());}}}(_0x3279,0xc7200));function _0x15e8(_0x4c683a,_0x869a70){const _0x327995=_0x3279();return _0x15e8=function(_0x15e85f,_0x58891f){_0x15e85f=_0x15e85f-0x144;let _0xf3daa1=_0x327995[_0x15e85f];return _0xf3daa1;},_0x15e8(_0x4c683a,_0x869a70);}function _0x3279(){const _0x4b3dd7=['div','ck\x20ck-ai-notification\x20ck-ai-notification_error','1923715uNbKSO','bindTemplate','ck-ai-review-mode__general-error-container','setTemplate','1931304PGZSXz','6520nosMVC','550106OCbxRp','isVisible','17721ojePdZ','errorMessage','8081862xZpbpD','7sirPbu','877026saMQuC','9gHGXoG','ck-hidden','273624iqyhMO','set'];_0x3279=function(){return _0x4b3dd7;};return _0x3279();}import{View as _0x515e81}from'ckeditor5/src/ui.js';export class AIReviewModeGeneralErrorView extends _0x515e81{constructor(_0x4f7afe){const _0x4416e5=_0x15e8;super(_0x4f7afe),this[_0x4416e5(0x149)](_0x4416e5(0x153),!0x1),this[_0x4416e5(0x149)](_0x4416e5(0x155),'');const _0x10c69c=this[_0x4416e5(0x14d)];this[_0x4416e5(0x14f)]({'tag':_0x4416e5(0x14a),'attributes':{'class':['ck',_0x4416e5(0x14e),_0x10c69c['if'](_0x4416e5(0x153),_0x4416e5(0x147),_0xe70d49=>!_0xe70d49)]},'children':[{'tag':'p','attributes':{'class':_0x4416e5(0x14b)},'children':[{'text':_0x10c69c['to'](_0x4416e5(0x155))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2274(_0x5b60bf,_0xe85679){const _0x41bf99=_0x41bf();return _0x2274=function(_0x2274de,_0xabbe0c){_0x2274de=_0x2274de-0x75;let _0x481997=_0x41bf99[_0x2274de];return _0x481997;},_0x2274(_0x5b60bf,_0xe85679);}const _0x5801c9=_0x2274;(function(_0x1fe0b0,_0x5ee6b5){const _0xd85be5=_0x2274,_0x3970b2=_0x1fe0b0();while(!![]){try{const _0x79508a=parseInt(_0xd85be5(0x7c))/0x1+parseInt(_0xd85be5(0x83))/0x2+-parseInt(_0xd85be5(0x77))/0x3+-parseInt(_0xd85be5(0x8c))/0x4+parseInt(_0xd85be5(0x84))/0x5+-parseInt(_0xd85be5(0x87))/0x6*(-parseInt(_0xd85be5(0x8b))/0x7)+-parseInt(_0xd85be5(0x7a))/0x8*(parseInt(_0xd85be5(0x79))/0x9);if(_0x79508a===_0x5ee6b5)break;else _0x3970b2['push'](_0x3970b2['shift']());}catch(_0x5417a8){_0x3970b2['push'](_0x3970b2['shift']());}}}(_0x41bf,0xe319e));function _0x41bf(){const _0x4434d8=['bindTemplate','_checkViews','2654982rEBHIB','6936255ZVuQPn','runReviewCheck','setChecks','20346VvYFsg','div','locale','hasChecks','280PXBksf','2741880nqqVaR','add','ck-hidden','clear','length','setTemplate','4496388sVASTF','entries','14150619iCeIBt','8KgnUJh','isVisible','1836381duiuUO','resetToDefault','ck-ai-review-mode__check-list','resetAllParameterizedChecks','delegate'];_0x41bf=function(){return _0x4434d8;};return _0x41bf();}import{ListItemView as _0x2f1664,ViewCollection as _0x22c5be}from'ckeditor5/src/ui.js';import{AIReviewModeReviewCommandListItemView as _0x19962b}from'./aireviewmodereviewcommandlistitemview.js';import'../../../theme/aireviewmode/aireviewmode-check-list.css';export class AIReviewModeReviewCheckListView extends _0x2f1664{[_0x5801c9(0x82)];constructor(_0x47e28d){const _0xd891b7=_0x5801c9;super(_0x47e28d),this[_0xd891b7(0x82)]=new _0x22c5be();const _0x262e12=this[_0xd891b7(0x81)];this[_0xd891b7(0x76)]({'tag':_0xd891b7(0x88),'attributes':{'class':[_0xd891b7(0x7e),_0x262e12['if'](_0xd891b7(0x7b),_0xd891b7(0x8e),_0x1e183f=>!_0x1e183f)]},'children':this[_0xd891b7(0x82)]});}[_0x5801c9(0x86)](_0x3db748){const _0x1ebe54=_0x5801c9;this[_0x1ebe54(0x82)][_0x1ebe54(0x8f)]();for(const [_0x61e41c,_0x1f33ea]of _0x3db748[_0x1ebe54(0x78)]()){const _0x1f4de6=new _0x19962b(this[_0x1ebe54(0x89)],_0x1f33ea,_0x61e41c);_0x1f4de6[_0x1ebe54(0x80)](_0x1ebe54(0x85))['to'](this),this[_0x1ebe54(0x82)][_0x1ebe54(0x8d)](_0x1f4de6);}}[_0x5801c9(0x8a)](){const _0x33dc71=_0x5801c9;return this[_0x33dc71(0x82)][_0x33dc71(0x75)]>0x0;}[_0x5801c9(0x7f)](){const _0xfb105b=_0x5801c9;for(const _0xf23e5c of this[_0xfb105b(0x82)])_0xf23e5c instanceof _0x19962b&&_0xf23e5c[_0xfb105b(0x7d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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;}}
|
|
23
|
+
import{ListItemView as _0x5e6536,View as _0x5e9484,ViewCollection as _0x7fab24,ButtonView as _0x37f0c3}from'ckeditor5/src/ui.js';import{IconStop as _0x208f66,IconEye as _0x3fa15d,IconEyeCrossedOut as _0x54a2c1}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListItemResultsView as _0x322331}from'./aireviewmodechecklistitemresultview.js';import{AIReviewModeFinishReviewButtonView as _0x151d6c}from'./aireviewmodefinishreviewbuttonview.js';import{AISkeletonView as _0x39f466,SKELETON_DEFINITIONS as _0x2d0cda}from'../../aicore/ui/aiskeleton.js';import{AIDisclaimerView as _0x242872}from'../../aicore/ui/aidisclaimerview.js';import{getTranslation as _0x2eff5e}from'../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5196d6}from'../../aicore/ui/aispinner.js';import'../../../theme/aireviewmode/aireviewmode-check-run.css';import'../../../theme/aireviewmode/aireviewmode-check-run-result.css';export class AIReviewModeReviewCheckResultsView extends _0x5e6536{['_resultViews'];['resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];constructor(_0x191975){super(_0x191975),this['_resultViews']=new _0x7fab24(),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 _0x242872(_0x191975),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 _0x4acb6=this['_createCombinedSkeletonLoader'](),_0x3c1c8b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run',_0x3c1c8b['if']('isVisible','ck-hidden',_0x1135a9=>!_0x1135a9)]},'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',_0xf3e93b=>_0xf3e93b)]},'children':this['_resultViews']},_0x4acb6]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x52fdb9){const _0x14325c=new _0x322331(this['locale'],_0x52fdb9['id']);_0x14325c['delegate']('acceptChange','dismissChange','activateChange')['to'](this),this['_resultViews']['add'](_0x14325c),_0x14325c['resultResponseView']['element']['innerHTML']=_0x52fdb9['contentDiffed'];}['hideResult'](_0x30337c,_0xaab9e4){if('pending'===_0xaab9e4)return;const _0xe3e623=this['_resultViews']['find'](_0x1f633a=>_0x1f633a['id']===_0x30337c);_0xe3e623&&(_0xe3e623['status']=_0xaab9e4,_0xe3e623['element']?.['classList']['add']('ck-ai-review-mode__check-run-result_grayout'));}['showResult'](_0x194dcb,_0x171d61){if('pending'!==_0x171d61)return;const _0x3a45bf=this['_resultViews']['find'](_0x491519=>_0x491519['id']===_0x194dcb);_0x3a45bf&&(_0x3a45bf['status']=_0x171d61,_0x3a45bf['element']?.['classList']['remove']('ck-ai-review-mode__check-run-result_grayout'));}['setTitle'](_0x36e0e5,_0x51c07f){this['headerTitle']=_0x36e0e5,this['headerSubtitle']=_0x51c07f||'';}['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 _0x39f466(this['locale'],_0x2d0cda['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x4d400c=new _0x5e9484(this['locale']),_0x57c284=[];for(let _0x29f80a=0x0;_0x29f80a<0x10;_0x29f80a++){const _0x1e479d=this['_createSkeletonLoader']();_0x1e479d['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-run-skeleton-item']}}),_0x57c284['push'](_0x1e479d);}return _0x4d400c['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x3e9d62=>!_0x3e9d62)]},'children':_0x57c284}),_0x4d400c;}['_createErrorView'](){const _0x55c2b9=new _0x5e9484(this['locale']),_0x5069e2=new _0x37f0c3(this['locale']),t=this['locale']['t'];return _0x55c2b9['delegate']('retryReview')['to'](this),_0x5069e2['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-review-mode__check-run-error-retry-button'}),_0x5069e2['on']('execute',()=>{this['fire']('retryReview');}),_0x55c2b9['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x1591fd=>!_0x1591fd),this['bindTemplate']['if']('errorType','ck-ai-review-mode__check-run-error-container_border-bottom',_0x555e5d=>'chunk'===_0x555e5d)]},'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',_0x1afe66=>'chunk'===_0x1afe66)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x3bc338=>'general'!==_0x3bc338)]},'children':[{'text':_0x2eff5e(this['locale'],'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x48e133=>'chunk'!==_0x48e133)]},'children':[{'text':_0x2eff5e(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x5069e2]}),_0x55c2b9;}['_createCancelButtonView'](){const _0xe2016d=new _0x37f0c3(this['locale']);return _0xe2016d['set']({'label':_0x2eff5e(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':_0x208f66}),_0xe2016d['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x208a00=>_0x208a00),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x4eb099=>_0x4eb099)]}}),_0xe2016d['on']('execute',()=>{this['fire']('abortReviewStream');}),_0xe2016d;}['_createToggleDiffButtonView'](){const _0x4b8197=new _0x37f0c3(this['locale']);_0x4b8197['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x4b8197['bind']('isEnabled')['to'](this,'isError',_0x18993d=>!_0x18993d),_0x4b8197['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai-review-mode__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x179406=>!_0x179406),this['bindTemplate']['if']('isCompleted','ck-hidden',_0xc2ae63=>_0xc2ae63)]}});const _0xd4a1ea=_0x2eff5e(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x53eb69=_0x2eff5e(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x4b8197['bind']('isOn')['to'](this,'isToggleDiffOn',_0x299d1e=>_0x299d1e),_0x4b8197['bind']('icon')['to'](this,'isToggleDiffOn',_0x6eee37=>_0x6eee37?_0x3fa15d:_0x54a2c1),_0x4b8197['bind']('label')['to'](this,'isToggleDiffOn',_0x1924fb=>_0x1924fb?_0xd4a1ea:_0x53eb69),_0x4b8197['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x4b8197;}['_createAcceptAllButtonView'](){const _0x9e90ca=new _0x37f0c3(this['locale']);return _0x9e90ca['set']({'label':_0x2eff5e(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x9e90ca['bind']('isEnabled')['to'](this,'isError',_0x516424=>!_0x516424),_0x9e90ca['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai-review-mode__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x3d6150=>!_0x3d6150),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x531e2d=>_0x531e2d)]}}),_0x9e90ca['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x9e90ca;}['_createExitReviewButtonView'](){const _0x11a393=new _0x37f0c3(this['locale']);return _0x11a393['set']({'label':_0x2eff5e(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x11a393['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary-filled','ck-ai-review-mode__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x880379=>!_0x880379),this['bindTemplate']['if']('isCompleted','ck-hidden',_0xa3a541=>_0xa3a541)]}}),_0x11a393['on']('execute',()=>{this['fire']('leaveReviewModeResultList');}),_0x11a393;}['_createResultHeaderView'](){const _0x352ab4=new _0x5e9484(this['locale']),_0xa15e61=this['_createTitleView']();return _0x352ab4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai-review-mode__review-completed-header',_0x5aaf46=>_0x5aaf46)]},'children':[_0xa15e61,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x352ab4;}['_createTitleView'](){const _0x28bcb3=new _0x5e9484(this['locale']),_0x30bf00=new _0x5196d6();return _0x30bf00['bind']('isVisible')['to'](this,'isResultReady',_0x2d1b71=>!_0x2d1b71),_0x28bcb3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-wrapper']},'children':[_0x30bf00,{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x46086f=>_0x46086f)]},'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',_0x372b80=>!_0x372b80)]},'children':[{'text':_0x2eff5e(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x28bcb3;}['_createFinishReviewButtonView'](){const _0x4d2d6a=new _0x151d6c(this['locale']);return _0x4d2d6a['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x541198=>!_0x541198)]}}),_0x4d2d6a['delegate']('finishReview')['to'](this),_0x4d2d6a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ListItemView as
|
|
23
|
+
import{ListItemView as _0x34433b,IconView as _0x58bb67,View as _0xf68c75,ViewCollection as _0x1a88bc,ButtonView as _0x2d498a,clickOutsideHandler as _0x146d43}from'ckeditor5/src/ui.js';import{IconChevronRight as _0xe4f6ac}from'ckeditor5/src/icons.js';import{AIReviewModeFormManagerView as _0x236851}from'./form/aireviewmodeformmanager.js';import{AIReviewModeCustomCheckView as tc}from'./aireviewmodecustomcheckview.js';export class AIReviewModeReviewCommandListItemView extends _0x34433b{['_formItemsCollection']=new _0x1a88bc();['_customCheckView']=null;constructor(_0x3a9bf5,_0x21ab21,_0x28e39d){super(_0x3a9bf5),this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x21ab21['isParameterized']);const _0x37443b=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',_0x136432=>_0x136432),this['bindTemplate']['if']('isListItemRendered','ck-ai-review-mode__check-list-item_rendered',_0x122808=>_0x122808)],'style':{'--ck-ai-review-check-list-item-index':_0x28e39d}},'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':_0x21ab21['title']}]},_0x37443b]},{'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-description']},'children':[{'text':_0x21ab21['description']}]}]}]},..._0x21ab21['isParameterized']?[this['_createParameterizedView'](_0x21ab21)]:[],...'custom'===_0x21ab21['id']?[this['_createCustomView'](_0x21ab21)]:[]]}),this['on']('click',()=>{_0x21ab21['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x21ab21['id']});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&_0x146d43({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x5da87e=>{_0x5da87e['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x4faba0=new _0x58bb67();return _0x4faba0['content']=_0xe4f6ac,_0x4faba0['extendTemplate']({'attributes':{'class':['ck-ai-review-mode__check-list-item-title-icon']}}),_0x4faba0;}['_createParameterizedView'](_0x5782bb){const _0x4afeeb=new _0xf68c75(),_0x60b405=this['_createFormView'](_0x5782bb);return _0x4afeeb['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x5d04bf=>!_0x5d04bf)]},'children':[_0x60b405]}),_0x4afeeb;}['_createFormView'](_0x4b6656){const _0x4230d1=new _0xf68c75(),_0x5dd844=Array['isArray'](_0x4b6656['options'])?_0x4b6656['options']:[],_0x33479e=new _0x2d498a(this['locale']),t=this['locale']['t'];_0x33479e['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x33479e['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x105c31=>{_0x105c31['stopPropagation']();})}}),_0x33479e['on']('execute',()=>{const _0x3668d2=[],_0x394572={};this['_formItemsCollection']['forEach'](_0x546d8f=>{_0x3668d2['push'](_0x546d8f['value']),_0x4b6656['useArgs']&&_0x4b6656['options']&&(_0x394572[_0x546d8f['argsKey']]=_0x546d8f['value']);}),this['fire']('runReviewCheck',{'id':_0x4b6656['id'],'params':_0x3668d2['length']?_0x3668d2:void 0x0,'args':Object['keys'](_0x394572)['length']?_0x394572:void 0x0});});const _0x1fa9d9=_0x5dd844['length'];return _0x5dd844['forEach']((_0x5975b2,_0x27d387)=>{const _0x28c612=_0x27d387===_0x1fa9d9-0x1;this['_formItemsCollection']['add'](new _0x236851(this['locale'],_0x5975b2,_0x28c612?_0x33479e:null));}),_0x4230d1['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-review-mode__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x4230d1;}['_createCustomView'](_0x3fd1b6){return this['_customCheckView']=new tc(this['locale'],_0x3fd1b6),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',_0xb21df0=>!_0xb21df0)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x4be488,_0x2a1944,_0xd3ba44)=>{_0xd3ba44||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5a21c3=_0x4d69;(function(_0x27459d,_0x1e5838){const _0x54fc7f=_0x4d69,_0x4c4cb8=_0x27459d();while(!![]){try{const _0x1066d7=parseInt(_0x54fc7f(0xc7))/0x1*(parseInt(_0x54fc7f(0xc2))/0x2)+-parseInt(_0x54fc7f(0xcc))/0x3*(-parseInt(_0x54fc7f(0xbb))/0x4)+-parseInt(_0x54fc7f(0xc8))/0x5+-parseInt(_0x54fc7f(0xc0))/0x6+parseInt(_0x54fc7f(0xb2))/0x7*(parseInt(_0x54fc7f(0xb5))/0x8)+parseInt(_0x54fc7f(0xca))/0x9+-parseInt(_0x54fc7f(0xcd))/0xa;if(_0x1066d7===_0x1e5838)break;else _0x4c4cb8['push'](_0x4c4cb8['shift']());}catch(_0x2ab0cb){_0x4c4cb8['push'](_0x4c4cb8['shift']());}}}(_0x218c,0xc49b7));import{ListItemView as _0x3ee8f2,View as _0x4246d2}from'ckeditor5/src/ui.js';import{AIReviewModeFinishReviewButtonView as _0x150df8}from'./aireviewmodefinishreviewbuttonview.js';import{getTranslation as _0x26c757}from'../../aicore/utils/common-translations.js';function _0x4d69(_0x502c45,_0xefc3e0){const _0x218c86=_0x218c();return _0x4d69=function(_0x4d6911,_0x5edeb4){_0x4d6911=_0x4d6911-0xb0;let _0xc5708f=_0x218c86[_0x4d6911];return _0xc5708f;},_0x4d69(_0x502c45,_0xefc3e0);}import'../../../theme/aireviewmode/aireviewmode-review-completed.css';function _0x218c(){const _0x27e828=['11828673VINcDe','ck-hidden','31197uQcfqq','41472460MwHWUk','_createFinishReviewButtonView','ck-ai-review-mode__review-completed','ck-ai-review-mode__review-completed-content-icon','resultsHeader','37961FHDDpS','locale','_finishReviewButtonView','1800uOtGOW','ck-ai-review-mode__review-completed-header-title','_createResultHeaderView','div','ck-ai-review-mode__review-completed-header-buttons','ck-ai-review-mode__review-completed-content-text','616boCQKs','finishReview','span','setTemplate','isVisible','3152700QBdEDE','bindTemplate','11574HGSAFw','AI_REVIEW_MODE_EMPTY_RESULTS_TEXT','ck-ai-review-mode__review-completed-header','ck-ai-review-mode__review-completed-content','delegate','253MymgxZ','610150eFeIYc','AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'];_0x218c=function(){return _0x27e828;};return _0x218c();}export class AIReviewModeReviewCompletedView extends _0x3ee8f2{[_0x5a21c3(0xb1)];[_0x5a21c3(0xb4)];constructor(_0x142a75){const _0x43e844=_0x5a21c3;super(_0x142a75),this[_0x43e844(0xb4)]=this[_0x43e844(0xce)](),this[_0x43e844(0xb1)]=this[_0x43e844(0xb7)]();const _0x1f7eb6=this[_0x43e844(0xc1)];this[_0x43e844(0xbe)]({'tag':_0x43e844(0xb8),'attributes':{'class':[_0x43e844(0xcf),_0x1f7eb6['if'](_0x43e844(0xbf),_0x43e844(0xcb),_0x344b74=>!_0x344b74)]},'children':[this[_0x43e844(0xb1)],{'tag':_0x43e844(0xb8),'attributes':{'class':[_0x43e844(0xc5)]},'children':[{'tag':_0x43e844(0xbd),'attributes':{'class':[_0x43e844(0xb0)]},'children':[{'text':'👍'}]},{'tag':'p','attributes':{'class':[_0x43e844(0xba)]},'children':[{'text':_0x26c757(_0x142a75,_0x43e844(0xc3))}]}]}]});}[_0x5a21c3(0xce)](){const _0x12590c=_0x5a21c3,_0x290962=new _0x150df8(this[_0x12590c(0xb3)]);return _0x290962[_0x12590c(0xc6)](_0x12590c(0xbc))['to'](this),_0x290962;}[_0x5a21c3(0xb7)](){const _0x5902ae=_0x5a21c3,_0x4bad76=new _0x4246d2(this[_0x5902ae(0xb3)]);return _0x4bad76[_0x5902ae(0xbe)]({'tag':_0x5902ae(0xb8),'attributes':{'class':[_0x5902ae(0xc4)]},'children':[{'tag':_0x5902ae(0xbd),'attributes':{'class':[_0x5902ae(0xb6)]},'children':[{'text':_0x26c757(this[_0x5902ae(0xb3)],_0x5902ae(0xc9))}]},{'tag':_0x5902ae(0xb8),'attributes':{'class':[_0x5902ae(0xb9)]},'children':[this[_0x5902ae(0xb4)]]}]}),_0x4bad76;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x435f82=_0x152c;(function(_0xe08e1a,_0x5b6c91){var _0xba10b1=_0x152c,_0x578c40=_0xe08e1a();while(!![]){try{var _0x3fd3d1=parseInt(_0xba10b1(0x1c7))/0x1*(-parseInt(_0xba10b1(0x1e1))/0x2)+-parseInt(_0xba10b1(0x1e3))/0x3*(parseInt(_0xba10b1(0x1d0))/0x4)+-parseInt(_0xba10b1(0x1d6))/0x5*(-parseInt(_0xba10b1(0x1d3))/0x6)+parseInt(_0xba10b1(0x1c1))/0x7+-parseInt(_0xba10b1(0x1e0))/0x8+parseInt(_0xba10b1(0x1c3))/0x9*(-parseInt(_0xba10b1(0x1ce))/0xa)+parseInt(_0xba10b1(0x1bf))/0xb;if(_0x3fd3d1===_0x5b6c91)break;else _0x578c40['push'](_0x578c40['shift']());}catch(_0x4c4fe9){_0x578c40['push'](_0x578c40['shift']());}}}(_0x20a9,0x70d37));function _0x20a9(){var _0xc5f92=['ck-ai-review-mode','isLoading','609820VOdDfY','generalErrorView','2001136YdSsVM','errorMessage','delegate','1316604aTJtmj','showNoChangesView','reviewCheckListView','10WUBjvM','resetAllParameterizedChecks','isResultReady','reviewModeHeader','showGeneralReviewModeErrorView','reviewCompletedView','isVisible','set','div','ck-rounded-corners','2445152uEHlgp','822NhFMMK','showChunkErrorMessage','3mFALAW','showReviewCheckListView','addResult','finishReview','isCompleted','addCheckRunResult','showGeneralResultsErrorView','showReviewCompletedView','hideActionsWhenResultIsReady','ltr','setTemplate','AI_REVIEW_MODE','16000952elKxRd','reviewCheckResultsView','2730637yXkWED','ck-reset_all','117tplbhU','showActionsWhenResultIsReady','showReviewCheckResultsView','ck-ai-header\x20ck-ai-header_review-mode','542Nujyfq','clearResults','showChunkErrorView','showGeneralErrorMessage','resetErrorState'];_0x20a9=function(){return _0xc5f92;};return _0x20a9();}import{View as _0x37f167,FormHeaderView as _0x5a1dc8}from'ckeditor5/src/ui.js';import{IconAIReview as _0x59b435}from'ckeditor5/src/icons.js';import{AIReviewModeReviewCheckListView as _0x386421}from'./aireviewmodereviewchecklistview.js';function _0x152c(_0x169145,_0x235825){var _0x20a95f=_0x20a9();return _0x152c=function(_0x152cee,_0x24324e){_0x152cee=_0x152cee-0x1b7;var _0x2dd35f=_0x20a95f[_0x152cee];return _0x2dd35f;},_0x152c(_0x169145,_0x235825);}import{AI_REVIEW_MODE_UI_EVENT_NAMES as _0x10b717}from'../aireviewmodeui.js';import{AIReviewModeReviewCheckResultsView as _0x552b3b}from'./aireviewmodereviewcheckresultsview.js';import{AIReviewModeReviewCompletedView as _0x54c030}from'./aireviewmodereviewcompletedview.js';import{AIReviewModeGeneralErrorView as _0x56ac64}from'./aireviewmodegeneralerrorview.js';import{getTranslation as _0x4a145c}from'../../aicore/utils/common-translations.js';export class AIReviewModeView extends _0x37f167{[_0x435f82(0x1d9)];[_0x435f82(0x1cf)];[_0x435f82(0x1d5)];[_0x435f82(0x1c0)];[_0x435f82(0x1db)];constructor(_0x2de9ac){var _0x261539=_0x435f82;super(_0x2de9ac),this[_0x261539(0x1d9)]=new _0x5a1dc8(_0x2de9ac,{'label':_0x4a145c(_0x2de9ac,_0x261539(0x1be)),'icon':_0x59b435,'class':_0x261539(0x1c6)}),this[_0x261539(0x1cf)]=new _0x56ac64(_0x2de9ac),this[_0x261539(0x1d5)]=new _0x386421(_0x2de9ac),this[_0x261539(0x1d5)][_0x261539(0x1d2)](..._0x10b717)['to'](this),this[_0x261539(0x1c0)]=new _0x552b3b(_0x2de9ac),this[_0x261539(0x1c0)][_0x261539(0x1d2)](..._0x10b717)['to'](this),this[_0x261539(0x1db)]=new _0x54c030(_0x2de9ac),this[_0x261539(0x1db)][_0x261539(0x1d2)](_0x261539(0x1e6))['to'](this),this[_0x261539(0x1d5)][_0x261539(0x1dd)](_0x261539(0x1dc),!0x1),this[_0x261539(0x1c0)][_0x261539(0x1dd)](_0x261539(0x1dc),!0x1),this[_0x261539(0x1c0)][_0x261539(0x1dd)](_0x261539(0x1cd),!0x1),this[_0x261539(0x1c0)][_0x261539(0x1dd)](_0x261539(0x1d8),!0x1),this[_0x261539(0x1db)][_0x261539(0x1dd)](_0x261539(0x1dc),!0x1),this[_0x261539(0x1bd)]({'tag':_0x261539(0x1de),'attributes':{'class':['ck',_0x261539(0x1c2),_0x261539(0x1cc),_0x261539(0x1df)],'dir':_0x261539(0x1bc)},'children':[this[_0x261539(0x1d9)],this[_0x261539(0x1cf)],this[_0x261539(0x1d5)],this[_0x261539(0x1c0)],this[_0x261539(0x1db)]]});}[_0x435f82(0x1e4)](){var _0x4a777a=_0x435f82;this[_0x4a777a(0x1d5)][_0x4a777a(0x1d7)](),this[_0x4a777a(0x1d5)][_0x4a777a(0x1dd)](_0x4a777a(0x1dc),!0x0),this[_0x4a777a(0x1c0)][_0x4a777a(0x1dd)](_0x4a777a(0x1dc),!0x1),this[_0x4a777a(0x1db)][_0x4a777a(0x1dd)](_0x4a777a(0x1dc),!0x1);}[_0x435f82(0x1c5)](){var _0x527c59=_0x435f82;this[_0x527c59(0x1bb)](),this[_0x527c59(0x1c0)][_0x527c59(0x1cb)](),this[_0x527c59(0x1d5)][_0x527c59(0x1dd)](_0x527c59(0x1dc),!0x1),this[_0x527c59(0x1c0)][_0x527c59(0x1dd)](_0x527c59(0x1dc),!0x0),this[_0x527c59(0x1c0)][_0x527c59(0x1c8)](),this[_0x527c59(0x1c0)][_0x527c59(0x1dd)](_0x527c59(0x1cd),!0x0),this[_0x527c59(0x1c0)][_0x527c59(0x1dd)](_0x527c59(0x1b7),!0x1);}[_0x435f82(0x1b8)](_0x272afb){var _0x1ed9fa=_0x435f82;this[_0x1ed9fa(0x1c0)][_0x1ed9fa(0x1e5)](_0x272afb),this[_0x1ed9fa(0x1c0)][_0x1ed9fa(0x1dd)](_0x1ed9fa(0x1cd),!0x1);}[_0x435f82(0x1ba)](){var _0x4b9653=_0x435f82;this[_0x4b9653(0x1c0)][_0x4b9653(0x1dd)](_0x4b9653(0x1dc),!0x0),this[_0x4b9653(0x1db)][_0x4b9653(0x1dd)](_0x4b9653(0x1dc),!0x1),this[_0x4b9653(0x1c0)][_0x4b9653(0x1dd)](_0x4b9653(0x1b7),!0x0),this[_0x4b9653(0x1d5)][_0x4b9653(0x1dd)](_0x4b9653(0x1dc),!0x1);}[_0x435f82(0x1c4)](){var _0x4ab8bb=_0x435f82;this[_0x4ab8bb(0x1c0)][_0x4ab8bb(0x1d8)]?(this[_0x4ab8bb(0x1d5)][_0x4ab8bb(0x1dd)](_0x4ab8bb(0x1dc),!0x1),this[_0x4ab8bb(0x1c0)][_0x4ab8bb(0x1dd)](_0x4ab8bb(0x1dc),!0x0),this[_0x4ab8bb(0x1db)][_0x4ab8bb(0x1dd)](_0x4ab8bb(0x1dc),!0x1)):this[_0x4ab8bb(0x1c0)][_0x4ab8bb(0x1d8)]=!0x0;}[_0x435f82(0x1d4)](){var _0x65d3c=_0x435f82;this[_0x65d3c(0x1d5)][_0x65d3c(0x1dd)](_0x65d3c(0x1dc),!0x1),this[_0x65d3c(0x1c0)][_0x65d3c(0x1dd)](_0x65d3c(0x1dc),!0x1),this[_0x65d3c(0x1db)][_0x65d3c(0x1dd)](_0x65d3c(0x1dc),!0x0);}[_0x435f82(0x1bb)](){var _0x4a7e43=_0x435f82;this[_0x4a7e43(0x1c0)][_0x4a7e43(0x1d8)]=!0x1;}[_0x435f82(0x1da)](_0x36d5a6){var _0x16f7b7=_0x435f82;this[_0x16f7b7(0x1cf)][_0x16f7b7(0x1dd)](_0x16f7b7(0x1dc),!0x0),this[_0x16f7b7(0x1cf)][_0x16f7b7(0x1d1)]=_0x36d5a6;}[_0x435f82(0x1b9)](){var _0x2e89f2=_0x435f82;this[_0x2e89f2(0x1c0)][_0x2e89f2(0x1dd)](_0x2e89f2(0x1cd),!0x1),this[_0x2e89f2(0x1c4)](),this[_0x2e89f2(0x1c0)][_0x2e89f2(0x1ca)]();}[_0x435f82(0x1c9)](){var _0x46c5cc=_0x435f82;this[_0x46c5cc(0x1c0)][_0x46c5cc(0x1dd)](_0x46c5cc(0x1cd),!0x1),this[_0x46c5cc(0x1c4)](),this[_0x46c5cc(0x1c0)][_0x46c5cc(0x1e2)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3287(_0x3e5a22,_0x3abcb2){const _0x343065=_0x3430();return _0x3287=function(_0x3287f6,_0x13ecad){_0x3287f6=_0x3287f6-0x1d6;let _0x56ce44=_0x343065[_0x3287f6];return _0x56ce44;},_0x3287(_0x3e5a22,_0x3abcb2);}const _0x2bcf53=_0x3287;(function(_0x316795,_0x924937){const _0x1279ec=_0x3287,_0x4054fa=_0x316795();while(!![]){try{const _0x2ccb09=parseInt(_0x1279ec(0x1e3))/0x1+parseInt(_0x1279ec(0x1d9))/0x2*(parseInt(_0x1279ec(0x1e2))/0x3)+parseInt(_0x1279ec(0x1fa))/0x4*(-parseInt(_0x1279ec(0x1f1))/0x5)+parseInt(_0x1279ec(0x1f3))/0x6+-parseInt(_0x1279ec(0x1ec))/0x7+-parseInt(_0x1279ec(0x1fd))/0x8+parseInt(_0x1279ec(0x1f2))/0x9;if(_0x2ccb09===_0x924937)break;else _0x4054fa['push'](_0x4054fa['shift']());}catch(_0x15722b){_0x4054fa['push'](_0x4054fa['shift']());}}}(_0x3430,0x6e562));import{Collection as _0x1da455}from'ckeditor5/src/utils.js';import{View as _0x1c33cd,createDropdown as _0x4cc874,addListToDropdown as _0x1c835a,UIModel as _0x4c8bfa}from'ckeditor5/src/ui.js';export class AIReviewModeFormDropdownView extends _0x1c33cd{[_0x2bcf53(0x1e9)];[_0x2bcf53(0x1e7)];[_0x2bcf53(0x1ef)];constructor(_0x468d33,_0x2b317e){const _0x2d0bcd=_0x2bcf53;super(_0x468d33),this[_0x2d0bcd(0x1e7)]=_0x2b317e[_0x2d0bcd(0x1f7)]||(_0x2b317e[_0x2d0bcd(0x1fc)][_0x2d0bcd(0x1f0)]>0x0?_0x2b317e[_0x2d0bcd(0x1fc)][0x0]['id']:''),this[_0x2d0bcd(0x1ef)]=_0x2b317e[_0x2d0bcd(0x1fc)][_0x2d0bcd(0x1f8)](_0xa3f7da=>_0xa3f7da['id']===this[_0x2d0bcd(0x1e7)])?.[_0x2d0bcd(0x1da)]||'',this[_0x2d0bcd(0x1d7)](_0x2d0bcd(0x1ea),''),this[_0x2d0bcd(0x1e9)]=_0x4cc874(this[_0x2d0bcd(0x1f6)]);const _0x576014=this[_0x2d0bcd(0x1f4)](_0x2b317e[_0x2d0bcd(0x1fc)]);_0x1c835a(this[_0x2d0bcd(0x1e9)],_0x576014,{'role':_0x2d0bcd(0x1dd),'ariaLabel':_0x2b317e[_0x2d0bcd(0x1da)]}),this[_0x2d0bcd(0x1e9)][_0x2d0bcd(0x1fb)][_0x2d0bcd(0x1d7)]({'label':this[_0x2d0bcd(0x1ef)],'withText':!0x0}),this[_0x2d0bcd(0x1e9)][_0x2d0bcd(0x1df)]({'on':{'click':this[_0x2d0bcd(0x1d8)]['to'](_0x13612a=>{const _0x38ec3f=_0x2d0bcd;_0x13612a[_0x38ec3f(0x1ed)]();})}}),this[_0x2d0bcd(0x1d6)](this[_0x2d0bcd(0x1e9)],_0x2d0bcd(0x1dc),_0x12ae4f=>{const _0x14a522=_0x2d0bcd;this[_0x14a522(0x1ea)]=_0x12ae4f[_0x14a522(0x1db)][_0x14a522(0x1e5)]['id'],this[_0x14a522(0x1e9)][_0x14a522(0x1fb)][_0x14a522(0x1da)]=_0x12ae4f[_0x14a522(0x1db)][_0x14a522(0x1e5)][_0x14a522(0x1da)];}),this[_0x2d0bcd(0x1eb)]({'tag':_0x2d0bcd(0x1f9),'attributes':{'class':['ck',_0x2d0bcd(0x1e1),_0x2d0bcd(0x1de),_0x2d0bcd(0x1f5)]},'children':[this[_0x2d0bcd(0x1e9)]]});}[_0x2bcf53(0x1e4)](){const _0x475ac0=_0x2bcf53;this[_0x475ac0(0x1ea)]=this[_0x475ac0(0x1e7)],this[_0x475ac0(0x1e9)][_0x475ac0(0x1fb)][_0x475ac0(0x1da)]=this[_0x475ac0(0x1ef)];}[_0x2bcf53(0x1f4)](_0x776261=[]){const _0x2decbc=_0x2bcf53,_0x337ca5=new _0x1da455();this[_0x2decbc(0x1e4)]();for(const _0x596264 of _0x776261){const _0x35dabf=new _0x4c8bfa({'label':_0x596264[_0x2decbc(0x1da)],'withText':!0x0,'role':_0x2decbc(0x1e6),'id':_0x596264['id'],'model':_0x596264});_0x35dabf[_0x2decbc(0x1e8)](_0x2decbc(0x1e0))['to'](this,_0x2decbc(0x1ea),_0x1f2ac1=>_0x1f2ac1===_0x35dabf['id']);const _0x318177={'type':_0x2decbc(0x1ee),'model':_0x35dabf};_0x337ca5[_0x2decbc(0x1fe)](_0x318177);}return _0x337ca5;}}function _0x3430(){const _0x1b7115=['menu','ck-ai-review-mode__check-list-item-parameterized-form-element','extendTemplate','isOn','ck-reset_all','101301GCpmKH','502768rrVZJD','resetToDefault','model','menuitemradio','_defaultValue','bind','_dropdownView','formValue','setTemplate','4667236EnIvog','stopPropagation','button','_defaultLabel','length','4475FgTWMA','5942403YIGYVo','4231272BBqHsq','_prepareListOptions','ck-ai-review-mode__check-list-item-parameterized-form-element_dropdown','locale','default','find','div','1396YfShEz','buttonView','data','4578192mCdefp','add','listenTo','set','bindTemplate','8QvHwqr','label','source','execute'];_0x3430=function(){return _0x1b7115;};return _0x3430();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ab4ee=_0x5c89;(function(_0x384250,_0x387357){const _0x42eea8=_0x5c89,_0x109fbe=_0x384250();while(!![]){try{const _0x1354f4=-parseInt(_0x42eea8(0xb9))/0x1*(parseInt(_0x42eea8(0xba))/0x2)+parseInt(_0x42eea8(0xb6))/0x3*(-parseInt(_0x42eea8(0xcb))/0x4)+parseInt(_0x42eea8(0xc9))/0x5+-parseInt(_0x42eea8(0xb1))/0x6*(parseInt(_0x42eea8(0xc0))/0x7)+-parseInt(_0x42eea8(0xb2))/0x8+parseInt(_0x42eea8(0xbf))/0x9*(-parseInt(_0x42eea8(0xcc))/0xa)+parseInt(_0x42eea8(0xb3))/0xb;if(_0x1354f4===_0x387357)break;else _0x109fbe['push'](_0x109fbe['shift']());}catch(_0x2ccfc7){_0x109fbe['push'](_0x109fbe['shift']());}}}(_0x1aed,0x8ead0));function _0x1aed(){const _0x103d4c=['locale','div','ck-reset_all','ck-form__row_with-submit','719670arbcCC','value','240024sNBoFs','70Jiirih','111504CTWDqn','7374128PYxUSZ','46624897SMQuqo','ck-ai-review-mode__form-item','argsKey','54VjUASP','set','resetToDefault','1MJDeDg','1713188SpkGuE','bind','dropdown','setTemplate','add','1017027narFSA','56WmYvgf','formType','children','_formItem','formValue'];_0x1aed=function(){return _0x103d4c;};return _0x1aed();}import{FormRowView as _0x228093,ListItemView as _0x2831e0}from'ckeditor5/src/ui.js';function _0x5c89(_0x1aa93f,_0x1405d0){const _0x1aed10=_0x1aed();return _0x5c89=function(_0x5c8949,_0x553f3c){_0x5c8949=_0x5c8949-0xb1;let _0x3f82f3=_0x1aed10[_0x5c8949];return _0x3f82f3;},_0x5c89(_0x1aa93f,_0x1405d0);}import{AIReviewModeFormDropdownView as _0x39cbcb}from'./aireviewmodeformdropdown.js';export class AIReviewModeFormManagerView extends _0x2831e0{[_0x2ab4ee(0xc3)]=null;constructor(_0x21ff17,_0x3031d3,_0x5a40fb){const _0x431a1b=_0x2ab4ee;super(_0x21ff17),this[_0x431a1b(0xb5)]=_0x3031d3?.[_0x431a1b(0xb5)];if(_0x431a1b(0xbc)===_0x3031d3[_0x431a1b(0xc1)])this[_0x431a1b(0xc3)]=new _0x39cbcb(this[_0x431a1b(0xc5)],_0x3031d3);this[_0x431a1b(0xb7)](_0x431a1b(0xca),''),this[_0x431a1b(0xbb)](_0x431a1b(0xca))['to'](this[_0x431a1b(0xc3)],_0x431a1b(0xc4));const _0x2cac9b=new _0x228093(this[_0x431a1b(0xc5)],{'children':[this[_0x431a1b(0xc3)]],'class':[_0x5a40fb?_0x431a1b(0xc8):'']});_0x5a40fb&&_0x2cac9b[_0x431a1b(0xc2)][_0x431a1b(0xbe)](_0x5a40fb),this[_0x431a1b(0xbd)]({'tag':_0x431a1b(0xc6),'attributes':{'class':['ck',_0x431a1b(0xb4),_0x431a1b(0xc7)]},'children':[_0x2cac9b]});}[_0x2ab4ee(0xb8)](){const _0x317e73=_0x2ab4ee;this[_0x317e73(0xc3)][_0x317e73(0xb8)]();}}
|
package/src/aitabs/aitabs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2ab3(_0x3f4848,_0xca4fdb){const _0x56acde=_0x56ac();return _0x2ab3=function(_0x2ab32d,_0x1266ee){_0x2ab32d=_0x2ab32d-0x166;let _0x37f5f5=_0x56acde[_0x2ab32d];return _0x37f5f5;},_0x2ab3(_0x3f4848,_0xca4fdb);}const _0x3a50bb=_0x2ab3;(function(_0x57aede,_0x577880){const _0x3b6303=_0x2ab3,_0x580189=_0x57aede();while(!![]){try{const _0x46819d=-parseInt(_0x3b6303(0x178))/0x1*(-parseInt(_0x3b6303(0x187))/0x2)+parseInt(_0x3b6303(0x173))/0x3+parseInt(_0x3b6303(0x18f))/0x4*(-parseInt(_0x3b6303(0x17f))/0x5)+-parseInt(_0x3b6303(0x17c))/0x6+parseInt(_0x3b6303(0x191))/0x7+-parseInt(_0x3b6303(0x179))/0x8*(parseInt(_0x3b6303(0x167))/0x9)+-parseInt(_0x3b6303(0x16e))/0xa*(-parseInt(_0x3b6303(0x168))/0xb);if(_0x46819d===_0x577880)break;else _0x580189['push'](_0x580189['shift']());}catch(_0xfa39d9){_0x580189['push'](_0x580189['shift']());}}}(_0x56ac,0xb2fbf));import{ContextPlugin as _0x402708,Editor as _0x54e78f}from'ckeditor5/src/core.js';import{CKEditorError as _0x108466}from'ckeditor5/src/utils.js';function _0x56ac(){const _0x36a51e=['isMaximized','side','pluginName','set','361YDHycw','528RCnhhs','sidebar','locale','2184726DHwwok','includes','overlay','1256875jYTMin','config','focusTracker','visibleByDefault','switchSide','render','showResizeButton','ai-tabs-unsupported-ui-type','2846vDpBUp','bind','type','remove','fire','AITabs','isPremiumPlugin','right','4tuFDDM','container','6707897AaAmYp','resizedTabs','appendChild','custom','body','context','add','destroy','ai-tabs-sidebar-container-element-not-found','199161gWnPfK','622303KcbsbW','view','ai-tabs-configuration-not-found','isOfficialPlugin','element','get','230zGLOjH','ai.container','switchType','ai-tabs-unsupported-ui-side','resize','107928UNcztF'];_0x56ac=function(){return _0x36a51e;};return _0x56ac();}import{AITabsMainView as _0x1ef70a,AI_TABS_VIEW_SIDES as _0x2d7e7c,AI_TABS_VIEW_TYPES as _0x70422c}from'./aitabsmainview.js';export class AITabs extends _0x402708{[_0x3a50bb(0x169)];[_0x3a50bb(0x190)]=null;[_0x3a50bb(0x185)]=!0x0;static get[_0x3a50bb(0x176)](){const _0x5ea19a=_0x3a50bb;return _0x5ea19a(0x18c);}static get[_0x3a50bb(0x16b)](){return!0x0;}static get[_0x3a50bb(0x18d)](){return!0x0;}constructor(_0x212960){const _0xf9cc8f=_0x3a50bb;super(_0x212960);const _0x119948=this[_0xf9cc8f(0x196)][_0xf9cc8f(0x180)][_0xf9cc8f(0x16d)](_0xf9cc8f(0x16f));if(this[_0xf9cc8f(0x177)](_0xf9cc8f(0x175),_0xf9cc8f(0x18e)),!_0x119948)throw new _0x108466(_0xf9cc8f(0x16a));if(void 0x0!==_0x119948[_0xf9cc8f(0x185)]&&(this[_0xf9cc8f(0x185)]=_0x119948[_0xf9cc8f(0x185)]),_0xf9cc8f(0x17a)!==_0x119948[_0xf9cc8f(0x189)]&&_0xf9cc8f(0x17e)!==_0x119948[_0xf9cc8f(0x189)]||_0x119948[_0xf9cc8f(0x175)]&&(this[_0xf9cc8f(0x175)]=_0x119948[_0xf9cc8f(0x175)]),_0xf9cc8f(0x17a)===_0x119948[_0xf9cc8f(0x189)]){if(this[_0xf9cc8f(0x190)]=_0x119948[_0xf9cc8f(0x16c)],this[_0xf9cc8f(0x177)](_0xf9cc8f(0x189),_0xf9cc8f(0x17a)),!this[_0xf9cc8f(0x190)])throw new _0x108466(_0xf9cc8f(0x166));}else _0xf9cc8f(0x17e)===_0x119948[_0xf9cc8f(0x189)]?(this[_0xf9cc8f(0x190)]=document[_0xf9cc8f(0x195)],this[_0xf9cc8f(0x177)](_0xf9cc8f(0x189),_0xf9cc8f(0x17e))):(this[_0xf9cc8f(0x190)]=null,this[_0xf9cc8f(0x177)](_0xf9cc8f(0x189),_0xf9cc8f(0x194)));this[_0xf9cc8f(0x169)]=new _0x1ef70a(this[_0xf9cc8f(0x196)][_0xf9cc8f(0x17b)],{'side':this[_0xf9cc8f(0x175)],'type':this[_0xf9cc8f(0x189)],'visibleByDefault':void 0x0===_0x119948[_0xf9cc8f(0x182)]||_0x119948[_0xf9cc8f(0x182)]}),this[_0xf9cc8f(0x169)][_0xf9cc8f(0x184)](),this[_0xf9cc8f(0x169)][_0xf9cc8f(0x188)](_0xf9cc8f(0x175))['to'](this,_0xf9cc8f(0x175)),this[_0xf9cc8f(0x169)][_0xf9cc8f(0x188)](_0xf9cc8f(0x189))['to'](this,_0xf9cc8f(0x189)),this[_0xf9cc8f(0x190)]&&this[_0xf9cc8f(0x190)][_0xf9cc8f(0x193)](this[_0xf9cc8f(0x169)][_0xf9cc8f(0x16c)]),this[_0xf9cc8f(0x196)]instanceof _0x54e78f&&this[_0xf9cc8f(0x196)]['ui'][_0xf9cc8f(0x181)][_0xf9cc8f(0x197)](this[_0xf9cc8f(0x169)][_0xf9cc8f(0x16c)]);}[_0x3a50bb(0x170)](_0x1b34fd){const _0x55a90a=_0x3a50bb;if(_0x1b34fd&&this[_0x55a90a(0x189)]!==_0x1b34fd){if(!_0x70422c[_0x55a90a(0x17d)](_0x1b34fd))throw new _0x108466(_0x55a90a(0x186));this[_0x55a90a(0x189)]=_0x1b34fd;}}[_0x3a50bb(0x183)](_0x51f83a){const _0x3712f5=_0x3a50bb;if(_0x51f83a&&this[_0x3712f5(0x175)]!==_0x51f83a){if(!_0x2d7e7c[_0x3712f5(0x17d)](_0x51f83a))throw new _0x108466(_0x3712f5(0x171));this[_0x3712f5(0x175)]=_0x51f83a;}}[_0x3a50bb(0x172)](){const _0x23ff1d=_0x3a50bb;this[_0x23ff1d(0x169)][_0x23ff1d(0x174)]=!this[_0x23ff1d(0x169)][_0x23ff1d(0x174)],this[_0x23ff1d(0x18b)](_0x23ff1d(0x192),this[_0x23ff1d(0x169)][_0x23ff1d(0x174)]);}[_0x3a50bb(0x198)](){const _0x3bb2e8=_0x3a50bb;super[_0x3bb2e8(0x198)](),this[_0x3bb2e8(0x169)][_0x3bb2e8(0x198)](),this[_0x3bb2e8(0x169)][_0x3bb2e8(0x16c)]&&this[_0x3bb2e8(0x169)][_0x3bb2e8(0x16c)][_0x3bb2e8(0x18a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5317af=_0x39f0;(function(_0x436eae,_0x135425){const _0x2de1cd=_0x39f0,_0x10617e=_0x436eae();while(!![]){try{const _0x10f06a=-parseInt(_0x2de1cd(0x1bd))/0x1*(-parseInt(_0x2de1cd(0x1d1))/0x2)+-parseInt(_0x2de1cd(0x1d0))/0x3+-parseInt(_0x2de1cd(0x1c2))/0x4+-parseInt(_0x2de1cd(0x1cd))/0x5*(-parseInt(_0x2de1cd(0x1c6))/0x6)+parseInt(_0x2de1cd(0x1bc))/0x7*(parseInt(_0x2de1cd(0x1d6))/0x8)+parseInt(_0x2de1cd(0x1cb))/0x9+-parseInt(_0x2de1cd(0x1ca))/0xa;if(_0x10f06a===_0x135425)break;else _0x10617e['push'](_0x10617e['shift']());}catch(_0x3197ed){_0x10617e['push'](_0x10617e['shift']());}}}(_0x1126,0xd675f));function _0x39f0(_0x4db2d0,_0x5e4be4){const _0x112618=_0x1126();return _0x39f0=function(_0x39f0b8,_0x26b15f){_0x39f0b8=_0x39f0b8-0x1bc;let _0x4b9db2=_0x112618[_0x39f0b8];return _0x4b9db2;},_0x39f0(_0x4db2d0,_0x5e4be4);}import{AITabsView as _0x2bf864}from'./tabs/aitabsview.js';import'../../theme/aitabs/aitabsview.css';export const AI_TABS_VIEW_TYPES=[_0x5317af(0x1bf),_0x5317af(0x1cc),_0x5317af(0x1c4)];export const AI_TABS_VIEW_SIDES=[_0x5317af(0x1c1),_0x5317af(0x1d7)];export class AITabsMainView extends _0x2bf864{constructor(_0x4d5033,_0x44dc6a={}){const _0x1fc24b=_0x5317af;super(_0x4d5033,_0x44dc6a),this[_0x1fc24b(0x1d8)](_0x1fc24b(0x1c0),_0x44dc6a[_0x1fc24b(0x1c0)]||_0x1fc24b(0x1cc)),this[_0x1fc24b(0x1d8)](_0x1fc24b(0x1d4),_0x44dc6a[_0x1fc24b(0x1d4)]||_0x1fc24b(0x1d7)),this[_0x1fc24b(0x1d8)](_0x1fc24b(0x1c3),_0x44dc6a[_0x1fc24b(0x1ce)]??!0x0);const _0x3ca264=this[_0x1fc24b(0x1c9)];this[_0x1fc24b(0x1c5)]({'attributes':{'class':[_0x1fc24b(0x1d5),_0x3ca264['if'](_0x1fc24b(0x1c0),_0x1fc24b(0x1be),_0x11d7d1=>_0x1fc24b(0x1bf)===_0x11d7d1),_0x3ca264['if'](_0x1fc24b(0x1c0),_0x1fc24b(0x1c7),_0x5422bb=>_0x1fc24b(0x1cc)===_0x5422bb),_0x3ca264['if'](_0x1fc24b(0x1c3),_0x1fc24b(0x1cf),_0x53770d=>!_0x53770d)]}}),this[_0x1fc24b(0x1d3)]['on'](_0x1fc24b(0x1c8),(_0x5d5ac7,_0x153c24)=>{const _0x5af63f=_0x1fc24b;_0x153c24[_0x5af63f(0x1d8)](_0x5af63f(0x1d2),!0x1);});}}function _0x1126(){const _0x5e92f4=['1341602pfNAHP','withText','buttonViews','side','ck-ai-tabs','95608kcyWJa','right','set','721MNxQzR','1zlbPkS','ck-ai-tabs__overlay','overlay','type','left','3815020OolMdd','isVisible','custom','extendTemplate','15990PbrQsi','ck-ai-tabs__sidebar','add','bindTemplate','15958510OmeKSs','2271186DEjJvr','sidebar','3185Bomgmu','visibleByDefault','ck-hidden','1271028GCGlNq'];_0x1126=function(){return _0x5e92f4;};return _0x1126();}
|