@ckeditor/ckeditor5-ai 47.0.0-alpha.0 → 47.0.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/dist/index-editor.css +105 -11
- package/dist/index.css +105 -11
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +1 -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.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +11 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +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.d.ts +1 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.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/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aireviewmode/utils/common-translations.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +112 -11
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x30a8bc=_0x47f0;(function(_0x1be364,_0x3105a3){const _0x1435b6=_0x47f0,_0x12ec47=_0x1be364();while(!![]){try{const _0x454521=-parseInt(_0x1435b6(0x1fc))/0x1+-parseInt(_0x1435b6(0x232))/0x2+parseInt(_0x1435b6(0x23e))/0x3+parseInt(_0x1435b6(0x200))/0x4*(-parseInt(_0x1435b6(0x20d))/0x5)+parseInt(_0x1435b6(0x210))/0x6+-parseInt(_0x1435b6(0x236))/0x7*(-parseInt(_0x1435b6(0x23b))/0x8)+-parseInt(_0x1435b6(0x206))/0x9;if(_0x454521===_0x3105a3)break;else _0x12ec47['push'](_0x12ec47['shift']());}catch(_0x207a8a){_0x12ec47['push'](_0x12ec47['shift']());}}}(_0x1b99,0xc7c5c));import{View as _0x463ba5,ListItemView as _0x581d30,ListView as _0x5339d2,BalloonPanelView as _0x265c60,DropdownMenuPanelPositioningFunctions as _0x42b60e,DropdownMenuButtonView as _0xcec78d,ViewCollection as _0x4f6442,FocusCycler as _0x1f8399}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x2e550e}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0xeb0dfc,KeystrokeHandler as _0x29478a}from'ckeditor5/src/utils.js';import{aiQuickActionsButtonCreator as _0x325a12}from'./aiquickactionsbuttoncreator.js';function _0x47f0(_0x14132d,_0x3ce4fc){const _0x1b99bb=_0x1b99();return _0x47f0=function(_0x47f01d,_0x4aa0e5){_0x47f01d=_0x47f01d-0x1f2;let _0x4608cf=_0x1b99bb[_0x47f01d];return _0x4608cf;},_0x47f0(_0x14132d,_0x3ce4fc);}const gs=_0x30a8bc(0x20e),qs=_0x30a8bc(0x1f6);function _0x1b99(){const _0x188261=['231471GMrMXq','optionsListView','closest','eastSouth','.ck-ai-quick-actions-group-button','add','focusCycler','5UxDgbL','menu','.ck-ai-quick-actions-group-panel','9794844GiZVNB','clear','children','ck-dropdown-menu__nested-menu__panel','ck-ai-quick-actions','addMany','items','element','setTemplate','ArrowLeft','icon','forEach','ck-ai-quick-actions-group-list','label','locale','_createGroupActionsList','rtl','ck-reset_all','render','_createListItems','ck-ai-quick-actions-group-panel','ArrowRight','delete','_focusables','_openNestedPanels','extendTemplate','bindTemplate','relatedTarget','_hideNestedPanel','ck-rounded-corners','_bodyCollection','isVisible','show','set','850762pROAie','content','div','_hideAllNestedPanels','7FieTdz','focusTracker','mouseleave','_isMovingToNestedMenu','addEventListener','6281600aMtNKF','detachFromDom','hide','3542790iXxwNE','pin','_setupGroupMenuBehavior','_createActionGroupButton','destroy','bind','_createActionButton','menuitem','role','actions','contains','get','isOn','821755IPdVaS','focus','key','_showNestedPanel','6029924weDSAR','uiLanguageDirection','ck-ai-quick-actions-group-button','ck-dropdown-menu-list','keystrokes','.ck-ai-quick-actions-group-list'];_0x1b99=function(){return _0x188261;};return _0x1b99();}export class AIQuickActionsDropdownContentView extends _0x463ba5{[_0x30a8bc(0x22e)];[_0x30a8bc(0x207)];[_0x30a8bc(0x237)];[_0x30a8bc(0x204)];[_0x30a8bc(0x227)];[_0x30a8bc(0x20c)];[_0x30a8bc(0x228)]=new Set();constructor(_0x21367c,_0x4f5b4e,_0x4dab2f,_0x135413){const _0x1b7bf9=_0x30a8bc,_0x3f4081=_0x21367c[_0x1b7bf9(0x21e)];super(_0x3f4081),this[_0x1b7bf9(0x22e)]=_0x135413;const _0x28fb71=this[_0x1b7bf9(0x223)](_0x21367c,_0x4f5b4e,_0x4dab2f);this[_0x1b7bf9(0x207)]=new _0x5339d2(_0x3f4081),this[_0x1b7bf9(0x207)][_0x1b7bf9(0x1f7)]=gs,this[_0x1b7bf9(0x207)][_0x1b7bf9(0x216)][_0x1b7bf9(0x215)](_0x28fb71),this[_0x1b7bf9(0x237)]=new _0xeb0dfc(),this[_0x1b7bf9(0x204)]=new _0x29478a(),this[_0x1b7bf9(0x227)]=_0x28fb71,this[_0x1b7bf9(0x20c)]=new _0x1f8399({'focusables':this[_0x1b7bf9(0x227)],'focusTracker':this[_0x1b7bf9(0x237)],'keystrokeHandler':this[_0x1b7bf9(0x204)]}),this[_0x1b7bf9(0x218)]({'tag':_0x1b7bf9(0x234),'attributes':{'class':['ck',_0x1b7bf9(0x221),_0x1b7bf9(0x214),_0x1b7bf9(0x22d)],'dir':_0x3f4081[_0x1b7bf9(0x201)]},'children':[this[_0x1b7bf9(0x207)]]});}[_0x30a8bc(0x223)](_0x44a24f,_0x5f2181,_0x33f132){const _0x4c9af7=_0x30a8bc,_0x1f08cf=new _0x4f6442();return _0x5f2181[_0x4c9af7(0x21b)](_0x51afba=>{const _0x4992ce=_0x4c9af7;_0x4992ce(0x1f8)in _0x51afba?_0x1f08cf[_0x4992ce(0x20b)](this[_0x4992ce(0x1f2)](_0x44a24f,_0x51afba,_0x33f132)):_0x1f08cf[_0x4992ce(0x20b)](this[_0x4992ce(0x1f5)](_0x44a24f,_0x51afba));}),_0x1f08cf;}[_0x30a8bc(0x1f5)](_0x1852e0,_0x30731a){const _0x334f9c=_0x30a8bc,_0x197cdc=new _0x581d30(this[_0x334f9c(0x21e)]),_0xea5201=_0x325a12(_0x1852e0,_0x30731a,!0x0)();return _0x197cdc[_0x334f9c(0x212)][_0x334f9c(0x20b)](_0xea5201),_0x197cdc;}[_0x30a8bc(0x1f2)](_0x41d230,_0x6bd332,_0x896a0d){const _0x523b0e=_0x30a8bc,_0x1e6745=new _0x581d30(this[_0x523b0e(0x21e)]),_0x4582ac=new _0xcec78d(this[_0x523b0e(0x21e)]),_0x2941d4=_0x4582ac[_0x523b0e(0x22a)],_0x1b7aba=_0x523b0e(0x220)===_0x896a0d[_0x523b0e(0x21e)][_0x523b0e(0x201)]?_0x523b0e(0x225):_0x523b0e(0x219),_0x20842b=this[_0x523b0e(0x21f)](_0x41d230,_0x6bd332[_0x523b0e(0x1f8)],_0x896a0d);_0x4582ac[_0x523b0e(0x231)]({'label':_0x6bd332[_0x523b0e(0x21d)],'withText':!0x0,'role':qs,'icon':_0x6bd332[_0x523b0e(0x21a)]??_0x2e550e}),_0x4582ac[_0x523b0e(0x229)]({'on':{'mouseenter':_0x2941d4['to'](()=>{const _0x8b87f3=_0x523b0e;_0x4582ac[_0x8b87f3(0x1fd)]();})}});const _0x28f8d0=new _0x265c60(this[_0x523b0e(0x21e)]);return _0x28f8d0[_0x523b0e(0x229)]({'attributes':{'class':['ck',_0x523b0e(0x221),_0x523b0e(0x224),_0x523b0e(0x213)]},'on':{'keydown':_0x2941d4['to'](_0x3cb6c3=>{const _0x316e1c=_0x523b0e;_0x3cb6c3[_0x316e1c(0x1fe)]==_0x1b7aba&&(_0x4582ac[_0x316e1c(0x1fd)](),this[_0x316e1c(0x22c)](_0x28f8d0));})}}),_0x4582ac[_0x523b0e(0x1f4)](_0x523b0e(0x1fb))['to'](_0x28f8d0,_0x523b0e(0x22f)),this[_0x523b0e(0x22e)][_0x523b0e(0x20b)](_0x28f8d0),_0x28f8d0[_0x523b0e(0x233)][_0x523b0e(0x20b)](_0x20842b),this[_0x523b0e(0x240)](_0x4582ac,_0x28f8d0),_0x1e6745[_0x523b0e(0x212)][_0x523b0e(0x20b)](_0x4582ac),_0x1e6745;}[_0x30a8bc(0x21f)](_0x28dcb2,_0x4ea520,_0x2986a1){const _0xc2d3dd=_0x30a8bc,_0x4ea726=new _0x5339d2(this[_0xc2d3dd(0x21e)]);return _0x4ea726[_0xc2d3dd(0x229)]({'attributes':{'class':['ck',_0xc2d3dd(0x221),_0xc2d3dd(0x21c),_0xc2d3dd(0x203)]}}),_0x4ea520[_0xc2d3dd(0x21b)](_0x2ae6ae=>{const _0x5e3c93=_0xc2d3dd,_0x14d717=new _0x581d30(this[_0x5e3c93(0x21e)]),_0x2ca79f=_0x325a12(_0x28dcb2,_0x2ae6ae,!0x0,!0x1)();_0x14d717[_0x5e3c93(0x212)][_0x5e3c93(0x20b)](_0x2ca79f),_0x2986a1[_0x5e3c93(0x237)][_0x5e3c93(0x20b)](_0x2ca79f),_0x4ea726[_0x5e3c93(0x216)][_0x5e3c93(0x20b)](_0x14d717);}),_0x4ea726;}[_0x30a8bc(0x240)](_0x5d1fce,_0x329029){const _0x2b24ab=_0x30a8bc,_0x518b10=_0x5d1fce[_0x2b24ab(0x22a)],_0x299941=_0x2b24ab(0x220)===_0x5d1fce[_0x2b24ab(0x21e)][_0x2b24ab(0x201)]?_0x2b24ab(0x219):_0x2b24ab(0x225);_0x5d1fce[_0x2b24ab(0x229)]({'attributes':{'class':[_0x2b24ab(0x202)]},'on':{'mouseenter':_0x518b10['to'](()=>{const _0x1deb9e=_0x2b24ab;this[_0x1deb9e(0x1ff)](_0x329029,_0x5d1fce);}),'mouseleave':_0x518b10['to'](_0x489510=>{const _0x34aab9=_0x2b24ab,_0x2851b9=_0x489510[_0x34aab9(0x22b)];this[_0x34aab9(0x239)](_0x2851b9,_0x329029)||this[_0x34aab9(0x22c)](_0x329029);}),'keydown':_0x518b10['to'](_0xabd0af=>{const _0x3ba8db=_0x2b24ab;_0xabd0af[_0x3ba8db(0x1fe)]==_0x299941&&(this[_0x3ba8db(0x1ff)](_0x329029,_0x5d1fce),_0x329029[_0x3ba8db(0x233)][_0x3ba8db(0x1fa)](0x0)[_0x3ba8db(0x1fd)]());})}}),_0x329029['on'](_0x2b24ab(0x222),()=>{const _0x41f0e6=_0x2b24ab;_0x329029[_0x41f0e6(0x217)]?.[_0x41f0e6(0x23a)](_0x41f0e6(0x238),_0x2189d1=>{const _0x5c4630=_0x41f0e6,_0x6a17b1=_0x2189d1[_0x5c4630(0x22b)];_0x5d1fce[_0x5c4630(0x217)]?.[_0x5c4630(0x1f9)](_0x6a17b1)||this[_0x5c4630(0x239)](_0x6a17b1,_0x329029)||this[_0x5c4630(0x22c)](_0x329029);});});}[_0x30a8bc(0x1ff)](_0x3c8598,_0x5bd993){const _0x2ebd91=_0x30a8bc;this[_0x2ebd91(0x228)][_0x2ebd91(0x21b)](_0xf1dcd4=>{const _0x521646=_0x2ebd91;_0xf1dcd4!==_0x3c8598&&_0xf1dcd4[_0x521646(0x22f)]&&_0xf1dcd4[_0x521646(0x23d)]();}),_0x3c8598[_0x2ebd91(0x230)](),_0x3c8598[_0x2ebd91(0x23f)]({'positions':[_0x42b60e[_0x2ebd91(0x209)]],'target':_0x5bd993[_0x2ebd91(0x217)],'fitInViewport':!0x0}),this[_0x2ebd91(0x228)][_0x2ebd91(0x20b)](_0x3c8598);}[_0x30a8bc(0x22c)](_0x4c0b26){const _0x288703=_0x30a8bc;_0x4c0b26[_0x288703(0x23d)](),this[_0x288703(0x228)][_0x288703(0x226)](_0x4c0b26);}[_0x30a8bc(0x235)](){const _0x1966d6=_0x30a8bc;this[_0x1966d6(0x228)][_0x1966d6(0x21b)](_0x1bd81a=>_0x1bd81a[_0x1966d6(0x23d)]()),this[_0x1966d6(0x228)][_0x1966d6(0x211)]();}[_0x30a8bc(0x239)](_0x4aa0f9,_0x1cfaa7){const _0x121b32=_0x30a8bc;if(!_0x4aa0f9)return!0x1;if(_0x1cfaa7[_0x121b32(0x217)]?.[_0x121b32(0x1f9)](_0x4aa0f9))return!0x0;const _0x3a0b6d=_0x4aa0f9;return _0x3a0b6d[_0x121b32(0x208)]&&(null!==_0x3a0b6d[_0x121b32(0x208)](_0x121b32(0x20f))||null!==_0x3a0b6d[_0x121b32(0x208)](_0x121b32(0x205))||null!==_0x3a0b6d[_0x121b32(0x208)](_0x121b32(0x20a)));}[_0x30a8bc(0x1f3)](){const _0x5af81a=_0x30a8bc;this[_0x5af81a(0x235)](),this[_0x5af81a(0x22e)][_0x5af81a(0x23c)](),super[_0x5af81a(0x1f3)]();}[_0x30a8bc(0x1fd)](){const _0x392097=_0x30a8bc;this[_0x392097(0x207)][_0x392097(0x1fd)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2fb436,_0x3b94a9){const _0x242dad=_0x2bb3,_0x3c97f6=_0x2fb436();while(!![]){try{const _0x1862f8=parseInt(_0x242dad(0x1ca))/0x1*(parseInt(_0x242dad(0x1c6))/0x2)+-parseInt(_0x242dad(0x1c9))/0x3*(parseInt(_0x242dad(0x1c0))/0x4)+-parseInt(_0x242dad(0x1bb))/0x5*(-parseInt(_0x242dad(0x1bf))/0x6)+-parseInt(_0x242dad(0x1b9))/0x7+parseInt(_0x242dad(0x1ba))/0x8*(parseInt(_0x242dad(0x1bd))/0x9)+parseInt(_0x242dad(0x1c4))/0xa+-parseInt(_0x242dad(0x1c1))/0xb*(parseInt(_0x242dad(0x1c8))/0xc);if(_0x1862f8===_0x3b94a9)break;else _0x3c97f6['push'](_0x3c97f6['shift']());}catch(_0x508fed){_0x3c97f6['push'](_0x3c97f6['shift']());}}}(_0x2aff,0xf3d89));import{createDropdown as _0x3c1032}from'ckeditor5/src/ui.js';function _0x2bb3(_0x19f4ee,_0x1e674d){const _0x2aff5f=_0x2aff();return _0x2bb3=function(_0x2bb3d3,_0x417e62){_0x2bb3d3=_0x2bb3d3-0x1b6;let _0x20339d=_0x2aff5f[_0x2bb3d3];return _0x20339d;},_0x2bb3(_0x19f4ee,_0x1e674d);}import{IconAIQuickActions as _0x22a4e9}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x479054}from'./aiquickactionsdropdowncontentview.js';function _0x2aff(){const _0x21375a=['901989nIMnJb','ck-ai-quick-actions-dropdown','children','1498880whTXmv','panelView','28izcltn','locale','228RDOYnF','429987wGRCZm','112003bdznLm','buttonView','label','icon','4817400ZDIfdU','8RoHRAf','1297615oUKBYX','set','10361943RgXRki','add','12uTZMKl','4PFqKrb'];_0x2aff=function(){return _0x21375a;};return _0x2aff();}export function aiQuickActionsDropdownCreator(_0x32ec7a,_0x24fee7,_0x3f087d,_0xd37fa6){return()=>{const _0x274268=_0x2bb3,_0x16baa2=_0x32ec7a[_0x274268(0x1c7)],_0x4ddb68=_0x3c1032(_0x16baa2);_0x4ddb68[_0x274268(0x1b6)][_0x274268(0x1bc)]({'icon':_0x3f087d[_0x274268(0x1b8)]??_0x22a4e9,'label':_0x3f087d[_0x274268(0x1b7)],'tooltip':!0x0}),_0x4ddb68[_0x274268(0x1bc)]({'class':_0x274268(0x1c2)});const _0x269767=new _0x479054(_0x32ec7a,_0x24fee7,_0x4ddb68,_0xd37fa6);return _0x4ddb68[_0x274268(0x1c5)][_0x274268(0x1c3)][_0x274268(0x1be)](_0x269767),_0x4ddb68;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x5668a0,_0x326a1a,_0x336e96){const t=_0x5668a0['t'];switch(_0x326a1a){case'AI_QUICK_ACTIONS_HEADING':return t({'id':'AI_QUICK_ACTIONS_HEADING','string':'AI\x20Quick\x20Actions'});case'AI_QUICK_ACTIONS_ASK_AI':return t({'id':'AI_QUICK_ACTIONS_ASK_AI','string':'Ask\x20AI'});case'AI_QUICK_ACTIONS_CHAT_COMMANDS':return t({'id':'AI_QUICK_ACTIONS_CHAT_COMMANDS','string':'Chat\x20commands'});case'AI_QUICK_ACTIONS_IMPROVE_WRITING':return t({'id':'AI_QUICK_ACTIONS_IMPROVE_WRITING','string':'Improve\x20writing'});case'AI_QUICK_ACTIONS_CONTINUE_WRITING':return t({'id':'AI_QUICK_ACTIONS_CONTINUE_WRITING','string':'Continue\x20writing'});case'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING':return t({'id':'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','string':'Fix\x20grammar\x20&\x20spelling'});case'AI_QUICK_ACTIONS_ADJUST_LENGTH':return t({'id':'AI_QUICK_ACTIONS_ADJUST_LENGTH','string':'Adjust\x20length'});case'AI_QUICK_ACTIONS_CHANGE_TONE':return t({'id':'AI_QUICK_ACTIONS_CHANGE_TONE','string':'Change\x20tone'});case'AI_QUICK_ACTIONS_TRANSLATE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE','string':'Translate'});case'AI_QUICK_ACTIONS_EXPLAIN':return t({'id':'AI_QUICK_ACTIONS_EXPLAIN','string':'Explain'});case'AI_QUICK_ACTIONS_SUMMARIZE':return t({'id':'AI_QUICK_ACTIONS_SUMMARIZE','string':'Summarize'});case'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS':return t({'id':'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','string':'Highlight\x20key\x20points'});case'AI_QUICK_ACTIONS_MAKE_SHORTER':return t({'id':'AI_QUICK_ACTIONS_MAKE_SHORTER','string':'Make\x20shorter'});case'AI_QUICK_ACTIONS_MAKE_LONGER':return t({'id':'AI_QUICK_ACTIONS_MAKE_LONGER','string':'Make\x20longer'});case'AI_QUICK_ACTIONS_MORE_CASUAL':return t({'id':'AI_QUICK_ACTIONS_MORE_CASUAL','string':'More\x20casual'});case'AI_QUICK_ACTIONS_MORE_DIRECT':return t({'id':'AI_QUICK_ACTIONS_MORE_DIRECT','string':'More\x20direct'});case'AI_QUICK_ACTIONS_MORE_FRIENDLY':return t({'id':'AI_QUICK_ACTIONS_MORE_FRIENDLY','string':'More\x20friendly'});case'AI_QUICK_ACTIONS_MORE_CONFIDENT':return t({'id':'AI_QUICK_ACTIONS_MORE_CONFIDENT','string':'More\x20confident'});case'AI_QUICK_ACTIONS_MORE_PROFESSIONAL':return t({'id':'AI_QUICK_ACTIONS_MORE_PROFESSIONAL','string':'More\x20professional'});case'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT':return t({'id':'AI_QUICK_ACTIONS_ADJUST_BASED_ON_DOCUMENT','string':'Adjust\x20based\x20on\x20the\x20rest\x20of\x20the\x20document'});case'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','string':'English'});case'AI_QUICK_ACTIONS_TRANSLATE_CHINESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_CHINESE','string':'Chinese\x20(Simplified)'});case'AI_QUICK_ACTIONS_TRANSLATE_FRENCH':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_FRENCH','string':'French'});case'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','string':'Japanese'});case'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','string':'Portuguese'});case'AI_QUICK_ACTIONS_TRANSLATE_KOREAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_KOREAN','string':'Korean'});case'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','string':'Italian'});case'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN':return t({'id':'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','string':'Russian'});case'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND':return t({'id':'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','string':'%0\x20plugin\x20is\x20required\x20but\x20not\x20found.'},_0x336e96);case'AI_QUICK_ACTIONS_OTHER':return t({'id':'AI_QUICK_ACTIONS_OTHER','string':'Other'});default:return _0x326a1a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x657b9e=_0x3432;(function(_0x9ec60e,_0x548d53){var _0xafcac2=_0x3432,_0x296c73=_0x9ec60e();while(!![]){try{var _0x15c90d=-parseInt(_0xafcac2(0x11d))/0x1*(-parseInt(_0xafcac2(0x126))/0x2)+-parseInt(_0xafcac2(0x11a))/0x3*(-parseInt(_0xafcac2(0x11f))/0x4)+parseInt(_0xafcac2(0x129))/0x5*(parseInt(_0xafcac2(0x12b))/0x6)+parseInt(_0xafcac2(0x123))/0x7*(parseInt(_0xafcac2(0x124))/0x8)+parseInt(_0xafcac2(0x127))/0x9*(-parseInt(_0xafcac2(0x119))/0xa)+parseInt(_0xafcac2(0x12a))/0xb*(-parseInt(_0xafcac2(0x11c))/0xc)+parseInt(_0xafcac2(0x122))/0xd*(-parseInt(_0xafcac2(0x121))/0xe);if(_0x15c90d===_0x548d53)break;else _0x296c73['push'](_0x296c73['shift']());}catch(_0x2bc466){_0x296c73['push'](_0x296c73['shift']());}}}(_0x4c24,0x740f8));import{ContextPlugin as _0x4bb0de}from'ckeditor5/src/core.js';import{AIReviewModeController as _0x3757cd}from'./aireviewmodecontroller.js';import{AIReviewModeUI as _0x5de8fb}from'./aireviewmodeui.js';function _0x3432(_0x2b8dce,_0x1fd6dd){var _0x4c24d2=_0x4c24();return _0x3432=function(_0x3432b5,_0x533eaa){_0x3432b5=_0x3432b5-0x119;var _0x4dfe30=_0x4c24d2[_0x3432b5];return _0x4dfe30;},_0x3432(_0x2b8dce,_0x1fd6dd);}function _0x4c24(){var _0x2e0668=['713430ToUYPT','pluginName','5iyYfee','5164918PkOKKL','5614446XUEtrR','50iUxVjO','90411sPmBLo','AIReviewMode','12piseRz','326fUjQeN','isOfficialPlugin','20eLzPgf','isPremiumPlugin','1358LBFhMB','65546czjvkI','4876550XFHUKE','8JAxWwk','requires','290iuyGfI'];_0x4c24=function(){return _0x2e0668;};return _0x4c24();}import{AIReviewModeEditing as _0x12be35}from'./aireviewmodeediting.js';export class AIReviewMode extends _0x4bb0de{static get[_0x657b9e(0x125)](){return[_0x3757cd,_0x5de8fb,_0x12be35];}static get[_0x657b9e(0x128)](){var _0x2c5566=_0x657b9e;return _0x2c5566(0x11b);}static get[_0x657b9e(0x11e)](){return!0x0;}static get[_0x657b9e(0x120)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3e2b(){const _0x4d2dfc=['leaveReviewMode','aireviewmode-source-check-not-found','72776eBIfIM','finishReview','documentData','ck-ai-review-mode-highlights','data','remove','2103CKySVu','loading','contentNew','_currentReviewCheckRun','status','updateChangeState','AIReviewModeController','reviewCheckRunUpdated','2ImAZrh','classList','changes','setAvailableChecks','showActionsWhenResultIsReady','48LGXepl','56cnuCvS','isOfficialPlugin','_aiConnector','_onDiffChange','context','checks','_aiReviewModeUi','_onReviewModeRunLeave','acceptChange','12rcgzDN','_isDiffOn','prompt','rejected','isChangeActive','markChangeAsRejected','abortReviewStream','AIConnector','applyChange','getDocumentData','pluginName','plugins','switchToEdit','runReviewCheck','reviewCheckResultAccepted','reviewCheckResultReady','markChangeAsAccepted','restart','rejectChange','title','error-chunk','_logError','4366531MtadwO','showGeneralErrorView','showReviewCompletedView','_aiReviewModeEditing','resetActiveStateInResults','clearAllMarkers','change','ck-ai-review-mode-diff','3179840qWoQOX','models','scrollToSuggestionInDocument','contentInitial','includes','markAllChangesAsAccepted','440601EBBrFl','scrollToChangeInEditorContent','dismissChange','7120Beswcv','showCheckRunResults','showReviewCheckList','stopListening','leaveReviewModeResultList','addResultChanges','switchToReadOnly','1008pZgbsX','markChangePositionInEditorContent','get','ai-request-aborted','model','acceptAllChanges','toggleDiff','getActiveChanges','6123375aWUjOg','showCheckRunResult','abort','setCheckResultTitle','custom','finished','requires','source','init','args','getContentElement','message','getReviewCheckList','aireviewmode-check-run-failed','error-general','reviewCheckResultAdded','111676mcNLSl','showChunkErrorView','ready','aireviewmode-no-current-check-run','accepted','add','start','fire','getCheckById','isPremiumPlugin','result','setItemAsActive','listenTo','diffContent','getAll','reviewCheckResultRejected','10CjmxOt','_aiReviewCheckList','find','isCustom','AIReviewModeEditing','AIReviewModeUI','length','retryReview'];_0x3e2b=function(){return _0x4d2dfc;};return _0x3e2b();}const _0x1db9a2=_0x55df;(function(_0x528649,_0x3280de){const _0x428de9=_0x55df,_0x26778e=_0x528649();while(!![]){try{const _0x591c3f=-parseInt(_0x428de9(0x192))/0x1*(parseInt(_0x428de9(0x16a))/0x2)+parseInt(_0x428de9(0x18a))/0x3*(parseInt(_0x428de9(0x1c8))/0x4)+-parseInt(_0x428de9(0x1bf))/0x5*(-parseInt(_0x428de9(0x1a1))/0x6)+parseInt(_0x428de9(0x1c5))/0x7*(-parseInt(_0x428de9(0x197))/0x8)+parseInt(_0x428de9(0x1d7))/0x9*(parseInt(_0x428de9(0x17a))/0xa)+parseInt(_0x428de9(0x184))/0xb*(-parseInt(_0x428de9(0x1cf))/0xc)+parseInt(_0x428de9(0x1b7))/0xd*(-parseInt(_0x428de9(0x198))/0xe);if(_0x591c3f===_0x3280de)break;else _0x26778e['push'](_0x26778e['shift']());}catch(_0x5b3b6c){_0x26778e['push'](_0x26778e['shift']());}}}(_0x3e2b,0xc61c9));function _0x55df(_0x48f6d7,_0x4a5cde){const _0x3e2bfb=_0x3e2b();return _0x55df=function(_0x55df7a,_0x2dc887){_0x55df7a=_0x55df7a-0x160;let _0xa56736=_0x3e2bfb[_0x55df7a];return _0xa56736;},_0x55df(_0x48f6d7,_0x4a5cde);}import{ContextPlugin as _0x36dead}from'ckeditor5/src/core.js';import{CKEditorError as _0x4a9659,logError as _0x1b103b}from'ckeditor5/src/utils.js';import{AIConnector as _0x2b5be9}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x56d798}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x32920d}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x18a1e5}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x1dc178}from'./model/aireviewmodels.js';export class AIReviewModeController extends _0x36dead{[_0x1db9a2(0x19a)];[_0x1db9a2(0x19e)];[_0x1db9a2(0x1ba)];[_0x1db9a2(0x17b)];[_0x1db9a2(0x18d)];[_0x1db9a2(0x1a2)]=!0x1;static get[_0x1db9a2(0x160)](){return[_0x2b5be9];}static get[_0x1db9a2(0x1ab)](){const _0x44038d=_0x1db9a2;return _0x44038d(0x190);}static get[_0x1db9a2(0x199)](){return!0x0;}static get[_0x1db9a2(0x173)](){return!0x0;}[_0x1db9a2(0x162)](){const _0x2882a1=_0x1db9a2;this[_0x2882a1(0x19a)]=this[_0x2882a1(0x19c)][_0x2882a1(0x1ac)][_0x2882a1(0x1d1)](_0x2882a1(0x1a8)),this[_0x2882a1(0x19e)]=this[_0x2882a1(0x19c)][_0x2882a1(0x1ac)][_0x2882a1(0x1d1)](_0x2882a1(0x17f)),this[_0x2882a1(0x1ba)]=this[_0x2882a1(0x19c)][_0x2882a1(0x1ac)][_0x2882a1(0x1d1)](_0x2882a1(0x17e)),this[_0x2882a1(0x17b)]=new _0x56d798(),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x166),async()=>{const _0x2ae34e=_0x2882a1,_0x5be1ba=new _0x1dc178({'connector':this[_0x2ae34e(0x19a)]});this[_0x2ae34e(0x17b)][_0x2ae34e(0x19d)][_0x2ae34e(0x17c)](_0x30b48d=>_0x2ae34e(0x1db)===_0x30b48d['id'])[_0x2ae34e(0x1c0)]=await _0x5be1ba[_0x2ae34e(0x178)](),this[_0x2ae34e(0x19e)][_0x2ae34e(0x195)](this[_0x2ae34e(0x17b)][_0x2ae34e(0x19d)]);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1ae),async(_0x3e1a98,_0x5c571e)=>{const _0x104c04=_0x2882a1,_0x12c639=this[_0x104c04(0x17b)][_0x104c04(0x172)](_0x5c571e['id']);if(_0x12c639){this[_0x104c04(0x19b)](this[_0x104c04(0x1a2)]),this[_0x104c04(0x19e)][_0x104c04(0x1da)](_0x12c639[_0x104c04(0x1b4)]),_0x5c571e[_0x104c04(0x17d)]?this[_0x104c04(0x18d)]=new _0x18a1e5(_0x5c571e[_0x104c04(0x163)][_0x104c04(0x1a3)],_0x5c571e[_0x104c04(0x163)][_0x104c04(0x1d3)],this[_0x104c04(0x1ba)][_0x104c04(0x1aa)](),_0x12c639,this[_0x104c04(0x19a)]):this[_0x104c04(0x18d)]=new _0x32920d(this[_0x104c04(0x1ba)][_0x104c04(0x1aa)](),_0x12c639,this[_0x104c04(0x19a)],_0x5c571e[_0x104c04(0x163)]),this[_0x104c04(0x18d)]['on'](_0x104c04(0x191),(_0x261200,_0x1bcb61)=>{const _0x212f80=_0x104c04;_0x212f80(0x188)===_0x1bcb61[_0x212f80(0x18e)]||_0x212f80(0x18b)===_0x1bcb61[_0x212f80(0x18e)]?(this[_0x212f80(0x1ba)][_0x212f80(0x1ce)](),this[_0x212f80(0x19e)][_0x212f80(0x1c9)](_0x1bcb61)):_0x212f80(0x1dc)===_0x1bcb61[_0x212f80(0x18e)]?this[_0x212f80(0x19e)][_0x212f80(0x1b9)]():_0x212f80(0x16c)===_0x1bcb61[_0x212f80(0x18e)]?this[_0x212f80(0x19e)][_0x212f80(0x196)]():_0x212f80(0x168)===_0x1bcb61[_0x212f80(0x18e)]?this[_0x212f80(0x19e)][_0x212f80(0x1b8)]():_0x212f80(0x1b5)===_0x1bcb61[_0x212f80(0x18e)]&&this[_0x212f80(0x19e)][_0x212f80(0x16b)]();}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x169),(_0xdc72c1,_0x3aec98)=>{const _0x217386=_0x104c04;if(!this[_0x217386(0x18d)])throw new _0x4a9659(_0x217386(0x16d),this);const _0x1ad110=this[_0x217386(0x1ba)][_0x217386(0x177)](_0x3aec98[_0x217386(0x174)][_0x217386(0x1c2)],_0x3aec98[_0x217386(0x174)][_0x217386(0x18c)]);_0x3aec98[_0x217386(0x161)][_0x217386(0x1cd)](_0x3aec98[_0x217386(0x174)]['id'],_0x1ad110);}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x1b0),(_0x3dae61,_0x473545)=>{const _0x4b1870=_0x104c04;for(const _0x497a22 of _0x473545[_0x4b1870(0x194)])this[_0x4b1870(0x19e)][_0x4b1870(0x1d8)](_0x497a22);this[_0x4b1870(0x1ba)][_0x4b1870(0x1d0)](_0x473545[_0x4b1870(0x194)],_0x473545[_0x4b1870(0x161)][_0x4b1870(0x186)]);}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x1af),(_0xb54b4d,_0x4931dd)=>{const _0x50a7e8=_0x104c04;this[_0x50a7e8(0x19e)][_0x50a7e8(0x18f)](_0x4931dd[_0x50a7e8(0x1bd)]['id'],_0x50a7e8(0x16e));}),this[_0x104c04(0x18d)]['on'](_0x104c04(0x179),(_0xdbec90,_0x51478a)=>{const _0x445d39=_0x104c04;this[_0x445d39(0x19e)][_0x445d39(0x18f)](_0x51478a[_0x445d39(0x1bd)]['id'],_0x445d39(0x1a4));});try{await this[_0x104c04(0x18d)][_0x104c04(0x170)]();}catch(_0x51aa2b){_0x51aa2b instanceof Error&&_0x51aa2b[_0x104c04(0x165)][_0x104c04(0x1c3)](_0x104c04(0x1d2))||(_0x51aa2b instanceof _0x4a9659?this[_0x104c04(0x1b6)](_0x51aa2b):this[_0x104c04(0x1b6)](new _0x4a9659(_0x104c04(0x167),this,{'error':_0x51aa2b})));}}else this[_0x104c04(0x1b6)](new _0x4a9659(_0x104c04(0x183),this,{'checkId':_0x5c571e['id']}));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x182),()=>{const _0x441340=_0x2882a1;this[_0x441340(0x19f)]();}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1cc),()=>{const _0xf69e97=_0x2882a1;this[_0xf69e97(0x19f)](!0x0);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1a7),async()=>{const _0x224478=_0x2882a1;this[_0x224478(0x19f)](!0x0);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1d4),async()=>{const _0x2e8470=_0x2882a1;if(!this[_0x2e8470(0x18d)])return;const _0x33de51=this[_0x2e8470(0x18d)][_0x2e8470(0x1d6)]();if(_0x33de51[_0x2e8470(0x180)]){for(const _0x5beab2 of _0x33de51)this[_0x2e8470(0x1ba)][_0x2e8470(0x1a9)](_0x5beab2['id']);this[_0x2e8470(0x18d)][_0x2e8470(0x1c4)]();}}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1a0),async(_0x6831a3,_0x570a7b)=>{const _0x24ff6c=_0x2882a1;this[_0x24ff6c(0x18d)]&&this[_0x24ff6c(0x18d)][_0x24ff6c(0x1a5)](_0x570a7b['id'])&&(this[_0x24ff6c(0x1ba)][_0x24ff6c(0x1a9)](_0x570a7b['id']),this[_0x24ff6c(0x18d)][_0x24ff6c(0x1b1)](_0x570a7b['id']));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1c7),async(_0x27a9cf,_0x8d218a)=>{const _0x4cb7b1=_0x2882a1;this[_0x4cb7b1(0x18d)]&&this[_0x4cb7b1(0x18d)][_0x4cb7b1(0x1a5)](_0x8d218a['id'])&&(this[_0x4cb7b1(0x1ba)][_0x4cb7b1(0x1b3)](_0x8d218a['id']),this[_0x4cb7b1(0x18d)][_0x4cb7b1(0x1a6)](_0x8d218a['id']));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1d5),(_0x26d155,_0x2265b5)=>{const _0x1f967e=_0x2882a1;this[_0x1f967e(0x1a2)]=_0x2265b5['on'],this[_0x1f967e(0x19b)](this[_0x1f967e(0x1a2)]);}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x185),()=>{const _0x5bb6e5=_0x2882a1;this[_0x5bb6e5(0x19e)][_0x5bb6e5(0x171)](_0x5bb6e5(0x166));}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x181),async()=>{const _0x3b66b4=_0x2882a1;this[_0x3b66b4(0x18d)]&&this[_0x3b66b4(0x18d)][_0x3b66b4(0x1b2)]();}),this[_0x2882a1(0x176)](this[_0x2882a1(0x19e)],_0x2882a1(0x1c1),async(_0x32f084,_0x122879)=>{const _0x3ae5e6=_0x2882a1,{source:_0x190806}=_0x122879;this[_0x3ae5e6(0x19e)][_0x3ae5e6(0x1bb)](),_0x190806[_0x3ae5e6(0x175)](),this[_0x3ae5e6(0x1ba)][_0x3ae5e6(0x1c6)]({'id':_0x122879['id']});});}[_0x1db9a2(0x19f)](_0x165c17=!0x1){const _0x57eef9=_0x1db9a2;this[_0x57eef9(0x18d)]&&(this[_0x57eef9(0x18d)][_0x57eef9(0x1d9)](),this[_0x57eef9(0x18d)][_0x57eef9(0x1cb)](),this[_0x57eef9(0x18d)]=void 0x0),_0x165c17&&this[_0x57eef9(0x19e)][_0x57eef9(0x1ca)](),this[_0x57eef9(0x1ba)][_0x57eef9(0x1bc)](),this[_0x57eef9(0x1ba)][_0x57eef9(0x1ad)]();const _0x1795c5=this[_0x57eef9(0x1ba)][_0x57eef9(0x164)]();_0x1795c5&&(_0x1795c5[_0x57eef9(0x193)][_0x57eef9(0x189)](_0x57eef9(0x1be)),_0x1795c5[_0x57eef9(0x193)][_0x57eef9(0x189)](_0x57eef9(0x187)));}[_0x1db9a2(0x19b)](_0x5efdf4){const _0x5aa43c=_0x1db9a2,_0x1650ff=this[_0x5aa43c(0x1ba)][_0x5aa43c(0x164)]();_0x1650ff&&(_0x1650ff[_0x5aa43c(0x193)][_0x5aa43c(0x189)](_0x5aa43c(0x1be)),_0x1650ff[_0x5aa43c(0x193)][_0x5aa43c(0x189)](_0x5aa43c(0x187)),_0x1650ff[_0x5aa43c(0x193)][_0x5aa43c(0x16f)](_0x5efdf4?_0x5aa43c(0x1be):_0x5aa43c(0x187)));}[_0x1db9a2(0x1b6)](_0x410f36){const _0x5c88f6=_0x1db9a2;_0x1b103b(_0x410f36[_0x5c88f6(0x165)]),this[_0x5c88f6(0x19e)][_0x5c88f6(0x1b8)]();}}
|
|
23
|
+
const _0x2aa994=_0x5914;(function(_0x33ad0d,_0x3259ef){const _0x5a1d35=_0x5914,_0x19c1b3=_0x33ad0d();while(!![]){try{const _0x2462f8=parseInt(_0x5a1d35(0x120))/0x1+-parseInt(_0x5a1d35(0x176))/0x2+-parseInt(_0x5a1d35(0x163))/0x3+parseInt(_0x5a1d35(0x151))/0x4*(parseInt(_0x5a1d35(0x14e))/0x5)+-parseInt(_0x5a1d35(0x153))/0x6+-parseInt(_0x5a1d35(0x11b))/0x7+parseInt(_0x5a1d35(0x11e))/0x8*(parseInt(_0x5a1d35(0x187))/0x9);if(_0x2462f8===_0x3259ef)break;else _0x19c1b3['push'](_0x19c1b3['shift']());}catch(_0x189408){_0x19c1b3['push'](_0x19c1b3['shift']());}}}(_0x566f,0x2a3f2));import{ContextPlugin as _0x4abc02}from'ckeditor5/src/core.js';import{CKEditorError as _0x1f40b1,logError as _0xc09db4}from'ckeditor5/src/utils.js';import{AIConnector as _0x344a36}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x40c6f9}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x36f148}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x3ca40c}from'./model/aireviewcustomcheckrun.js';function _0x566f(){const _0x4bd5d1=['setAvailableChecks','finished','acceptAllChanges','aireviewmode-check-run-failed','dismissChange','args','model','reviewCheckRunUpdated','isOfficialPlugin','isCustom','status','abortReviewStream','showReviewCompletedView','markChangePositionInEditorContent','listenTo','getDocumentData','rejectChange','get','switchToReadOnly','init','markAllChangesAsAccepted','error-chunk','_aiReviewCheckList','reviewCheckResultReady','getContentElement','aireviewmode-no-current-check-run','ck-ai-review-mode-highlights','start','AIReviewModeController','aireviewmode-source-check-not-found','map','showChunkErrorView','requires','toggleDiff','markChangeAsAccepted','isChangeActive','_currentReviewCheckRun','loading','_onReviewModeRunLeave','restart','checks','aborted','_onDiffChange','pluginName','accepted','75970qQcifa','AIConnector','result','8LOgukh','runReviewCheck','967014uezPPB','showActionsWhenResultIsReady','showCheckRunResult','contentNew','length','_isDiffOn','models','abort','message','_aiReviewModeUi','markChangeAsRejected','_aiConnector','clearAllMarkers','scrollToChangeInEditorContent','prompt','classList','147558IhTHie','resetActiveStateInResults','retryReview','scrollToSuggestionInDocument','rejected','_aiReviewModeEditing','switchToEdit','AIReviewModeEditing','title','getReviewCheckList','showCheckRunResults','find','AIReviewModeUI','showReviewCheckList','includes','error-general','contentInitial','reviewCheckResultAdded','forceReadyState','406178BnTULa','add','diffContent','plugins','isPremiumPlugin','source','context','ready','change','stopListening','setCheckResultTitle','getActiveChanges','getCheckById','setItemAsActive','addResultChanges','custom','remove','888453ruzCaw','reviewCheckResultRejected','reviewCheckResultAccepted','showGeneralErrorView','ai-request-aborted','leaveReviewModeResultList','data','getAll','finishReview','processedResultsCount','leaveReviewMode','ck-ai-review-mode-diff','changes','documentData','updateChangeState','1795710IXGmKf','_logError','applyChange','40XHFmRx','acceptChange','319043Reizsm'];_0x566f=function(){return _0x4bd5d1;};return _0x566f();}import{AIReviewModels as _0x1a1226}from'./model/aireviewmodels.js';function _0x5914(_0x377c66,_0x18ab59){const _0x566ff8=_0x566f();return _0x5914=function(_0x591437,_0xebf552){_0x591437=_0x591437-0x10e;let _0x1293b7=_0x566ff8[_0x591437];return _0x1293b7;},_0x5914(_0x377c66,_0x18ab59);}export class AIReviewModeController extends _0x4abc02{[_0x2aa994(0x15e)];[_0x2aa994(0x15c)];[_0x2aa994(0x168)];[_0x2aa994(0x137)];[_0x2aa994(0x145)];[_0x2aa994(0x158)]=!0x1;static get[_0x2aa994(0x141)](){return[_0x344a36];}static get[_0x2aa994(0x14c)](){const _0x50a428=_0x2aa994;return _0x50a428(0x13d);}static get[_0x2aa994(0x129)](){return!0x0;}static get[_0x2aa994(0x17a)](){return!0x0;}[_0x2aa994(0x134)](){const _0x9f278c=_0x2aa994;this[_0x9f278c(0x15e)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x14f)),this[_0x9f278c(0x15c)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x16f)),this[_0x9f278c(0x168)]=this[_0x9f278c(0x17c)][_0x9f278c(0x179)][_0x9f278c(0x132)](_0x9f278c(0x16a)),this[_0x9f278c(0x137)]=new _0x40c6f9(),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x16c),async()=>{const _0x83b8df=_0x9f278c,_0x5bac4b=new _0x1a1226({'connector':this[_0x83b8df(0x15e)]});this[_0x83b8df(0x137)][_0x83b8df(0x149)][_0x83b8df(0x16e)](_0x5889bc=>_0x83b8df(0x185)===_0x5889bc['id'])[_0x83b8df(0x159)]=await _0x5bac4b[_0x83b8df(0x113)](),this[_0x83b8df(0x15c)][_0x83b8df(0x121)](this[_0x83b8df(0x137)][_0x83b8df(0x149)]);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x152),async(_0x2e19cf,_0x352a5d)=>{const _0x31e523=_0x9f278c,_0x593bc2=this[_0x31e523(0x137)][_0x31e523(0x182)](_0x352a5d['id']);if(_0x593bc2){this[_0x31e523(0x14b)](this[_0x31e523(0x158)]),_0x352a5d[_0x31e523(0x12a)]?(this[_0x31e523(0x15c)][_0x31e523(0x180)](_0x352a5d[_0x31e523(0x126)][_0x31e523(0x161)]),this[_0x31e523(0x145)]=new _0x3ca40c(_0x352a5d[_0x31e523(0x126)][_0x31e523(0x161)],_0x352a5d[_0x31e523(0x126)][_0x31e523(0x127)],this[_0x31e523(0x168)][_0x31e523(0x130)](),_0x593bc2,this[_0x31e523(0x15e)])):(this[_0x31e523(0x15c)][_0x31e523(0x180)](_0x593bc2[_0x31e523(0x16b)]),this[_0x31e523(0x145)]=new _0x36f148(this[_0x31e523(0x168)][_0x31e523(0x130)](),_0x593bc2,this[_0x31e523(0x15e)],_0x352a5d[_0x31e523(0x126)])),this[_0x31e523(0x145)]['on'](_0x31e523(0x128),(_0x8b7488,_0x55cc01)=>{const _0x2b105d=_0x31e523;_0x2b105d(0x112)===_0x55cc01[_0x2b105d(0x12b)]||_0x2b105d(0x146)===_0x55cc01[_0x2b105d(0x12b)]?(this[_0x2b105d(0x168)][_0x2b105d(0x133)](),this[_0x2b105d(0x15c)][_0x2b105d(0x16d)](_0x55cc01)):_0x2b105d(0x122)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x12d)]():_0x2b105d(0x17d)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x154)]():_0x2b105d(0x172)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x10f)]():_0x2b105d(0x136)===_0x55cc01[_0x2b105d(0x12b)]?this[_0x2b105d(0x15c)][_0x2b105d(0x140)]():_0x2b105d(0x14a)===_0x55cc01[_0x2b105d(0x12b)]&&(this[_0x2b105d(0x145)]&&this[_0x2b105d(0x145)][_0x2b105d(0x115)]>0x0?setTimeout(()=>{const _0x225423=_0x2b105d;this[_0x225423(0x145)]?.[_0x225423(0x175)]();},0x0):this[_0x2b105d(0x147)](!0x0));}),this[_0x31e523(0x145)]['on'](_0x31e523(0x174),(_0x2fadc6,_0x3b02fa)=>{const _0x5c9dff=_0x31e523;if(!this[_0x5c9dff(0x145)])throw new _0x1f40b1(_0x5c9dff(0x13a),this);const _0x394c69=this[_0x5c9dff(0x168)][_0x5c9dff(0x178)](_0x3b02fa[_0x5c9dff(0x150)][_0x5c9dff(0x173)],_0x3b02fa[_0x5c9dff(0x150)][_0x5c9dff(0x156)]);_0x3b02fa[_0x5c9dff(0x17b)][_0x5c9dff(0x184)](_0x3b02fa[_0x5c9dff(0x150)]['id'],_0x394c69);}),this[_0x31e523(0x145)]['on'](_0x31e523(0x138),(_0xeb1277,_0x3dd365)=>{const _0x2a8f02=_0x31e523;for(const _0xfcd510 of _0x3dd365[_0x2a8f02(0x118)])this[_0x2a8f02(0x15c)][_0x2a8f02(0x155)](_0xfcd510);this[_0x2a8f02(0x168)][_0x2a8f02(0x12e)](_0x3dd365[_0x2a8f02(0x118)],_0x3dd365[_0x2a8f02(0x17b)][_0x2a8f02(0x119)]);}),this[_0x31e523(0x145)]['on'](_0x31e523(0x10e),(_0x325bb0,_0x401012)=>{const _0x13686f=_0x31e523;this[_0x13686f(0x15c)][_0x13686f(0x11a)](_0x401012[_0x13686f(0x17e)]['id'],_0x13686f(0x14d));}),this[_0x31e523(0x145)]['on'](_0x31e523(0x188),(_0x407336,_0x59f5ae)=>{const _0x579ada=_0x31e523;this[_0x579ada(0x15c)][_0x579ada(0x11a)](_0x59f5ae[_0x579ada(0x17e)]['id'],_0x579ada(0x167));});try{await this[_0x31e523(0x145)][_0x31e523(0x13c)]();}catch(_0x541894){_0x541894 instanceof Error&&_0x541894[_0x31e523(0x15b)][_0x31e523(0x171)](_0x31e523(0x110))||(_0x541894 instanceof _0x1f40b1?this[_0x31e523(0x11c)](_0x541894):this[_0x31e523(0x11c)](new _0x1f40b1(_0x31e523(0x124),this,{'error':_0x541894})));}}else this[_0x31e523(0x11c)](new _0x1f40b1(_0x31e523(0x13e),this,{'checkId':_0x352a5d['id']}));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x116),()=>{const _0x59806c=_0x9f278c;this[_0x59806c(0x147)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x111),()=>{const _0x1fc966=_0x9f278c;this[_0x1fc966(0x147)](!0x0);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x12c),()=>{const _0x2c2210=_0x9f278c;this[_0x2c2210(0x145)]&&this[_0x2c2210(0x145)][_0x2c2210(0x15a)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x114),()=>{const _0x43e7c=_0x9f278c;this[_0x43e7c(0x147)](!0x0);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x123),async()=>{const _0x5f0ba2=_0x9f278c;if(!this[_0x5f0ba2(0x145)])return;const _0x152f17=this[_0x5f0ba2(0x145)][_0x5f0ba2(0x181)]();_0x152f17[_0x5f0ba2(0x157)]&&(this[_0x5f0ba2(0x168)][_0x5f0ba2(0x11d)](_0x152f17[_0x5f0ba2(0x13f)](_0x46d633=>_0x46d633['id'])),this[_0x5f0ba2(0x145)][_0x5f0ba2(0x135)]());}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x11f),async(_0x1438a5,_0x38524a)=>{const _0x444ef4=_0x9f278c;this[_0x444ef4(0x145)]&&this[_0x444ef4(0x145)][_0x444ef4(0x144)](_0x38524a['id'])&&(this[_0x444ef4(0x168)][_0x444ef4(0x11d)]([_0x38524a['id']]),this[_0x444ef4(0x145)][_0x444ef4(0x143)](_0x38524a['id']));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x125),async(_0x112585,_0x44b7e5)=>{const _0xc2f55b=_0x9f278c;this[_0xc2f55b(0x145)]&&this[_0xc2f55b(0x145)][_0xc2f55b(0x144)](_0x44b7e5['id'])&&(this[_0xc2f55b(0x168)][_0xc2f55b(0x131)](_0x44b7e5['id']),this[_0xc2f55b(0x145)][_0xc2f55b(0x15d)](_0x44b7e5['id']));}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x142),(_0x8198e0,_0x1a878c)=>{const _0x25adb9=_0x9f278c;this[_0x25adb9(0x158)]=_0x1a878c['on'],this[_0x25adb9(0x14b)](this[_0x25adb9(0x158)]);}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x165),async()=>{const _0x378496=_0x9f278c;this[_0x378496(0x145)]&&this[_0x378496(0x145)][_0x378496(0x148)]();}),this[_0x9f278c(0x12f)](this[_0x9f278c(0x15c)],_0x9f278c(0x166),async(_0x46f1d4,_0x103703)=>{const _0x531a2f=_0x9f278c,{source:_0x52e533}=_0x103703;this[_0x531a2f(0x15c)][_0x531a2f(0x164)](),_0x52e533[_0x531a2f(0x183)](),this[_0x531a2f(0x168)][_0x531a2f(0x160)]({'id':_0x103703['id']});});}[_0x2aa994(0x147)](_0x209334=!0x1){const _0x811d4c=_0x2aa994;this[_0x811d4c(0x145)]&&(this[_0x811d4c(0x145)][_0x811d4c(0x15a)](),this[_0x811d4c(0x145)][_0x811d4c(0x17f)](),this[_0x811d4c(0x145)]=void 0x0),_0x209334&&this[_0x811d4c(0x15c)][_0x811d4c(0x170)](),this[_0x811d4c(0x168)][_0x811d4c(0x15f)](),this[_0x811d4c(0x168)][_0x811d4c(0x169)]();const _0x528643=this[_0x811d4c(0x168)][_0x811d4c(0x139)]();_0x528643&&(_0x528643[_0x811d4c(0x162)][_0x811d4c(0x186)](_0x811d4c(0x117)),_0x528643[_0x811d4c(0x162)][_0x811d4c(0x186)](_0x811d4c(0x13b)));}[_0x2aa994(0x14b)](_0xe30553){const _0x23d127=_0x2aa994,_0xb5fac7=this[_0x23d127(0x168)][_0x23d127(0x139)]();_0xb5fac7&&(_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x186)](_0x23d127(0x117)),_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x186)](_0x23d127(0x13b)),_0xb5fac7[_0x23d127(0x162)][_0x23d127(0x177)](_0xe30553?_0x23d127(0x117):_0x23d127(0x13b)));}[_0x2aa994(0x11c)](_0x17e24b){const _0x128897=_0x2aa994;_0xc09db4(_0x17e24b[_0x128897(0x15b)]),this[_0x128897(0x15c)][_0x128897(0x10f)]();}}
|
|
@@ -81,7 +81,7 @@ export declare class AIReviewModeEditing extends ContextPlugin {
|
|
|
81
81
|
clearAllMarkers(): void;
|
|
82
82
|
switchToReadOnly(): void;
|
|
83
83
|
switchToEdit(): void;
|
|
84
|
-
applyChange(
|
|
84
|
+
applyChange(changeIds: Array<string>): void;
|
|
85
85
|
rejectChange(changeId: string): void;
|
|
86
86
|
getContentElement(): HTMLElement | null;
|
|
87
87
|
/**
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3372(){const _0x324b27=['htmlProcessor','getShiftedBy','remove-context','DocumentCompare','No\x20element\x20found\x20for\x20ID:\x20','_findAdjacentContextDistance','innerHTML','getRange','data','[data-id=\x22','start','oldRange','log','offset','index','dataDowncast','getDocumentData','hasContentAfter','ai-review-mode','nodes','rejectChange','addMarker','enableReadOnlyMode','_getMarkersDataForGroup','documentFragment','isTouching','_getTopElement','AIEditing','jumpTo','_getOperationEnd','htmlWriter','createPositionAt','clear','insert','model:$text','ck-ai_review-mode-marker_context-','editingDowncast','context','33642895LBlbtr','elements','baseVersion','applyOperation','afterInit','_getChangeContext','929982CjOfQe','forward','getPath','newRange','marker','toData','deleteContent','getHtml','markerName','clone','_groupAdjacentOperations','_createGetContentUsingDataIdFn','getDiff','map','add','ck-ai_review-mode-marker_add','parse','text','isAtStart','keys','getChildren','push','_createGetContentFn','stringify','from','7856fUYpLB','createDocumentFragment','operationsA','ck-ai_review-mode-marker_context-start','markerToHighlight','type','end','suggestion:deletion:id:authorId:','operationsIsolated','startsWith','isPremiumPlugin','getRoots','hasClass','getChild','isInline','addOperation','9OYGKmn','change','delete','domConverter','createSelection','getOperations','howMany','document','_markers','set','backward','path','AIReviewModeEditing','downcast','pluginName','ck-ai_review-mode-marker_hide','span','79FFadVO','_removeChildren','_changePosition','parent','createPositionAfter','5esMeAG','reviewmode-','remove-only','applyChange','requires','markers','length','position','removeMarker','$documentFragment','_changePositionOwnerDocument','_appendChild','switchToEdit','exec','getAttribute','markChangePositionInEditorContent','_shiftOperation','3866991SHFJCC','plugins','append','toView','ck-ai_review-mode-marker_underline','switchToReadOnly','warn','createRawElement','ellipsisBefore','scrollToChangeInEditorContent','diffContent','every','schema','ck-ai_review-mode-marker_context-end','isAtEnd','version','_translateOperationToEditorContent','remove-text','history','createUIElement','affectsData','createText','isOfficialPlugin','element','querySelector','_nextDataId','hasContentBefore','concat','filter','values','ck-ai_review-mode-marker_strikethrough','11701310KrBaAC','model','_changeRangeOwnerDocument','clearAllMarkers','groupId','disableReadOnlyMode','1610VtYykp','for','name','insertContent','_changeOperationOwnerDocument','processor','7343zZvSEb','ellipsisAfter','attributeToAttribute','_insertMarkers','markerToElement','suggestion-context','$textProxy','_setAttribute','$markedRemove','Scroll\x20to\x20change\x20in\x20editor\x20content','viewToDom','offsetSize','createRange','caption','_getOperationStart','_changeRange','getContentElement','isOpening','getRoot','get','outerHTML','_createGetContextFn','_clone','4168396DoTPmn','childCount','isDocumentOperation','suggestion:insertion:id:authorId:','batch','toDomElement','conversion'];_0x3372=function(){return _0x324b27;};return _0x3372();}const _0x232c92=_0x8933;(function(_0x18a616,_0x503ac8){const _0x1b6040=_0x8933,_0x2ffd27=_0x18a616();while(!![]){try{const _0x372c25=-parseInt(_0x1b6040(0x16c))/0x1*(parseInt(_0x1b6040(0x1a7))/0x2)+-parseInt(_0x1b6040(0x182))/0x3+parseInt(_0x1b6040(0xff))/0x4*(parseInt(_0x1b6040(0x171))/0x5)+parseInt(_0x1b6040(0x132))/0x6+parseInt(_0x1b6040(0x1ad))/0x7*(-parseInt(_0x1b6040(0x14b))/0x8)+parseInt(_0x1b6040(0x15b))/0x9*(-parseInt(_0x1b6040(0x1a1))/0xa)+parseInt(_0x1b6040(0x12c))/0xb;if(_0x372c25===_0x503ac8)break;else _0x2ffd27['push'](_0x2ffd27['shift']());}catch(_0x52c92f){_0x2ffd27['push'](_0x2ffd27['shift']());}}}(_0x3372,0xab8ec));import{InsertOperation as _0x475387,MarkerOperation as _0x418905,ModelDocumentFragment as _0x27d8bf,ModelPosition as _0x3f2e59,ModelRange as _0x10c1a7,ModelTreeWalker as _0x4863ef,transformOperationSets as _0x5ef0ac}from'ckeditor5/src/engine.js';import{uid as _0x121c7}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x243d23}from'ckeditor5/src/core.js';import{DocumentCompare as _0x58911f,DATA_ID_MODEL_ATTRIBUTE as _0x11be53,DATA_ID_VIEW_ATTRIBUTE as _0x1bbf96}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x8933(_0xe7fc2a,_0x48dfa6){const _0x337263=_0x3372();return _0x8933=function(_0x8933c7,_0x162ac0){_0x8933c7=_0x8933c7-0xf1;let _0x1a9705=_0x337263[_0x8933c7];return _0x1a9705;},_0x8933(_0xe7fc2a,_0x48dfa6);}import{getEditorFromContext as _0x1e6b73}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x14d1e3}from'../aicore/aiediting.js';const Zt=_0x232c92(0x172);export class AIReviewModeEditing extends _0x243d23{static get[_0x232c92(0x169)](){const _0x45f995=_0x232c92;return _0x45f995(0x167);}static get[_0x232c92(0x175)](){return[_0x58911f,_0x14d1e3];}static get[_0x232c92(0x198)](){return!0x0;}static get[_0x232c92(0x155)](){return!0x0;}[_0x232c92(0x163)]=new Map();[_0x232c92(0x130)](){const _0x1c3bab=_0x232c92,_0x4e65a9=_0x1e6b73(this[_0x1c3bab(0x12b)]);_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x1b1)]({'model':Zt+_0x1c3bab(0x127),'view':(_0x2f65e7,{writer:_0x2488a9})=>{const _0x5d50e5=_0x1c3bab,_0x1c2a79=this[_0x5d50e5(0x163)][_0x5d50e5(0xfb)](_0x2f65e7[_0x5d50e5(0x13a)]);return _0x2488a9[_0x5d50e5(0x195)](_0x5d50e5(0x16b),{'class':_0x5d50e5(0x141)},function(_0x3abe69){const _0x38b9de=_0x5d50e5,_0x27bf62=this[_0x38b9de(0x104)](_0x3abe69);return _0x27bf62[_0x38b9de(0x10c)]=_0x1c2a79?.[_0x38b9de(0x143)]||'',_0x27bf62;});}}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x115))[_0x1c3bab(0x1b1)]({'model':Zt+_0x1c3bab(0x1b2),'view':(_0x36ee9a,{writer:_0x4b84d2})=>_0x4b84d2[_0x1c3bab(0x189)](_0x1c3bab(0x16b),{'class':_0x1c3bab(0x129)+(_0x36ee9a[_0x1c3bab(0xf9)]?_0x1c3bab(0x110):_0x1c3bab(0x151))})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x14f)]({'model':Zt+_0x1c3bab(0x173),'view':()=>({'classes':_0x1c3bab(0x1a0)})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x14f)]({'model':Zt+_0x1c3bab(0x108),'view':()=>({'classes':_0x1c3bab(0x186)})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x12a))[_0x1c3bab(0x14f)]({'model':Zt+_0x1c3bab(0x193),'view':()=>({'classes':_0x1c3bab(0x16a)})}),_0x4e65a9[_0x1c3bab(0x105)][_0x1c3bab(0x1a8)](_0x1c3bab(0x168))[_0x1c3bab(0x1af)]({'model':_0x11be53,'view':_0x1bbf96});}[_0x232c92(0x116)](){const _0x36ed7f=_0x232c92,_0x2529e1=this[_0x36ed7f(0x12b)][_0x36ed7f(0x183)][_0x36ed7f(0xfb)](_0x36ed7f(0x121)),_0x152258=_0x1e6b73(this[_0x36ed7f(0x12b)]),_0x2326f0=_0x152258[_0x36ed7f(0x1a2)],_0x2bc44d=new _0x27d8bf();for(const _0x153124 of _0x2326f0[_0x36ed7f(0x162)][_0x36ed7f(0xfa)]()[_0x36ed7f(0x146)]()){const _0x573d76=_0x153124[_0x36ed7f(0xfe)](!0x0);_0x2bc44d[_0x36ed7f(0x17c)](_0x573d76);}for(const _0x24dbc1 of _0x2326f0[_0x36ed7f(0x176)])_0x2bc44d[_0x36ed7f(0x176)][_0x36ed7f(0x164)](_0x24dbc1[_0x36ed7f(0x1a9)],this[_0x36ed7f(0x1a3)](_0x24dbc1[_0x36ed7f(0x10d)]()[_0x36ed7f(0x13b)](),_0x2bc44d));const _0x15b969=new _0x4863ef({'ignoreElementEnd':!0x0,'startPosition':_0x2326f0[_0x36ed7f(0x125)](_0x2bc44d,0x0)}),_0x2deae3=new Set(),_0x197354=new Map();for(const {item:_0x13039c}of _0x15b969){if(!_0x13039c['is'](_0x36ed7f(0x1b3)))continue;const _0x2229f5=_0x13039c[_0x36ed7f(0x16f)];if((!_0x2229f5||!_0x2229f5['is'](_0x36ed7f(0x199),_0x36ed7f(0xf5)))&&(_0x2229f5&&_0x2229f5['is'](_0x36ed7f(0x199)))){let _0x4aaa3e=_0x2229f5[_0x36ed7f(0x17f)](_0x11be53);_0x4aaa3e||(_0x4aaa3e=_0x2529e1[_0x36ed7f(0x19b)](_0x2deae3),_0x2229f5[_0x36ed7f(0x1b4)](_0x11be53,_0x4aaa3e)),_0x2deae3[_0x36ed7f(0x140)](_0x4aaa3e);const _0x4b2179=this[_0x36ed7f(0x120)](_0x2229f5);_0x197354[_0x36ed7f(0x164)](_0x4aaa3e,{'path':_0x2229f5[_0x36ed7f(0x134)](),'getContent':this[_0x36ed7f(0x13d)](_0x4b2179[_0x36ed7f(0xfe)](!0x0),_0x4aaa3e,_0x152258[_0x36ed7f(0x10e)])}),_0x15b969[_0x36ed7f(0x122)](_0x2326f0[_0x36ed7f(0x170)](_0x2229f5));}}return{'content':_0x152258[_0x36ed7f(0x10e)][_0x36ed7f(0x1ac)][_0x36ed7f(0x137)](_0x152258[_0x36ed7f(0x10e)][_0x36ed7f(0x185)](_0x2bc44d)),'version':_0x152258[_0x36ed7f(0x1a2)][_0x36ed7f(0x162)][_0x36ed7f(0x191)],'elements':_0x197354};}[_0x232c92(0x18c)](_0x509bce,_0x1aa9d4){const _0x114100=_0x232c92,_0x384140=_0x1e6b73(this[_0x114100(0x12b)]),_0x3f2254=_0x384140[_0x114100(0x10e)][_0x114100(0x142)](_0x509bce,_0x114100(0x17a)),_0x424006=_0x384140[_0x114100(0x1a2)][_0x114100(0x125)](_0x3f2254,0x0),_0x42014a=this[_0x114100(0x12b)][_0x114100(0x183)][_0x114100(0xfb)](_0x114100(0x109))[_0x114100(0x13e)](_0x509bce,_0x1aa9d4,{'anchor':_0x424006,'markDeletions':!0x0})[_0x114100(0x160)]()[_0x114100(0x19e)](_0x1a837f=>_0x114100(0x127)===_0x1a837f[_0x114100(0x150)]||_0x114100(0x136)===_0x1a837f[_0x114100(0x150)]&&_0x1a837f[_0x114100(0x1a9)][_0x114100(0x154)](_0x114100(0x1b5))),_0x48c971=this[_0x114100(0x13c)](_0x42014a),_0xeb5dce=[];let _0x13ec46=0x0;return _0x384140[_0x114100(0x1a2)][_0x114100(0x15c)](_0x598eef=>{const _0x2433aa=_0x114100;for(let _0x3f606c=0x0;_0x3f606c<_0x48c971[_0x2433aa(0x177)];_0x3f606c++){const _0x2e2376=_0x48c971[_0x3f606c],_0x592fb8=_0x598eef[_0x2433aa(0x14c)]();for(const _0x297abd of _0x3f2254[_0x2433aa(0x146)]())_0x598eef[_0x2433aa(0x184)](_0x297abd[_0x2433aa(0xfe)](!0x0),_0x592fb8);for(const _0x37776e of _0x2e2376[_0x2433aa(0x153)])if(_0x2433aa(0x127)===_0x37776e[_0x2433aa(0x150)]){const _0x25bc44=_0x37776e;_0x25bc44[_0x2433aa(0x12e)]=null,_0x25bc44[_0x2433aa(0x101)]=!0x1,this[_0x2433aa(0x1ab)](_0x25bc44,_0x592fb8),_0x598eef[_0x2433aa(0x103)][_0x2433aa(0x15a)](_0x37776e),_0x384140[_0x2433aa(0x1a2)][_0x2433aa(0x12f)](_0x37776e);const _0x4aa32f=_0x2433aa(0x102)+_0x13ec46++,_0x37a375=_0x384140[_0x2433aa(0x1a2)][_0x2433aa(0xf4)](_0x25bc44[_0x2433aa(0x178)],_0x25bc44[_0x2433aa(0x178)][_0x2433aa(0x107)](_0x25bc44[_0x2433aa(0x161)]));_0x592fb8[_0x2433aa(0x176)][_0x2433aa(0x164)](_0x4aa32f,_0x37a375);}else{if(_0x2433aa(0x136)===_0x37776e[_0x2433aa(0x150)]&&_0x37776e[_0x2433aa(0x1a9)][_0x2433aa(0x154)](_0x2433aa(0x1b5))){const _0x632234=_0x37776e,_0x15d853=_0x2433aa(0x152)+_0x13ec46++;this[_0x2433aa(0x1ab)](_0x632234,_0x592fb8),_0x592fb8[_0x2433aa(0x176)][_0x2433aa(0x164)](_0x15d853,_0x632234[_0x2433aa(0x135)]);}}const _0x1078fe=this[_0x2433aa(0x131)](this[_0x2433aa(0x17b)](this[_0x2433aa(0xf6)](_0x2e2376[_0x2433aa(0x153)][0x0]),_0x592fb8),this[_0x2433aa(0x17b)](this[_0x2433aa(0x123)](_0x2e2376[_0x2433aa(0x153)][_0x2e2376[_0x2433aa(0x153)][_0x2433aa(0x177)]-0x1]),_0x592fb8));_0x592fb8[_0x2433aa(0x176)][_0x2433aa(0x164)](Zt+_0x2433aa(0x1b2),new _0x10c1a7(_0x1078fe[_0x2433aa(0x110)],_0x1078fe[_0x2433aa(0x151)])),_0xeb5dce[_0x2433aa(0x147)]({..._0x2e2376,'context':this[_0x2433aa(0xfd)](_0x592fb8,_0x384140[_0x2433aa(0x10e)],{'ellipsisBefore':_0x1078fe[_0x2433aa(0x19c)],'ellipsisAfter':_0x1078fe[_0x2433aa(0x117)]}),'content':this[_0x2433aa(0x148)](_0x592fb8,_0x384140[_0x2433aa(0x10e)])});}}),_0xeb5dce;}[_0x232c92(0x180)](_0x538e52,_0x653c80){const _0x25d4bb=_0x232c92,_0x10eeef=_0x538e52[0x0][_0x25d4bb(0x16f)]['id'],_0x2743b3=_0x653c80[_0x25d4bb(0x12d)][_0x25d4bb(0xfb)](_0x10eeef);if(!_0x2743b3)return void console[_0x25d4bb(0x188)](_0x25d4bb(0x10a)+_0x10eeef);const _0x209a02=_0x2743b3[_0x25d4bb(0x166)],_0x28fc0d=_0x1e6b73(this[_0x25d4bb(0x12b)]),_0x3a4d79=_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x162)][_0x25d4bb(0x194)][_0x25d4bb(0x160)](_0x653c80[_0x25d4bb(0x191)]),_0x5dd300=[];for(const _0x3faf1c of _0x538e52){const _0x53ef08=_0x3faf1c[_0x25d4bb(0x153)][_0x25d4bb(0x13f)](_0x1f66f3=>this[_0x25d4bb(0x192)](_0x1f66f3,_0x209a02,_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x162)][_0x25d4bb(0x156)]()[0x0]));if(!_0x53ef08||!_0x53ef08[_0x25d4bb(0x177)])continue;const _0x494d0b=_0x53ef08[_0x25d4bb(0x18d)](_0x458424=>_0x25d4bb(0x136)===_0x458424[_0x25d4bb(0x150)]&&_0x458424[_0x25d4bb(0x1a9)][_0x25d4bb(0x154)](_0x25d4bb(0x1b5))),_0xd20e77={'document':_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x162)],'useRelations':!0x1,'padWithNoOps':!0x1},_0xd98b8a=_0x5ef0ac(_0x53ef08,_0x3a4d79,_0xd20e77)[_0x25d4bb(0x14d)];for(const _0xfe912c of _0xd98b8a)if(_0x25d4bb(0x127)===_0xfe912c[_0x25d4bb(0x150)]){const _0x21f5b4=_0xfe912c,_0x1fdef0=_0x21f5b4[_0x25d4bb(0x119)];let _0x3d8cec='';for(const _0x2dfdbc of _0x1fdef0)_0x2dfdbc&&_0x2dfdbc['is'](_0x25d4bb(0x128))&&(_0x3d8cec+=_0x2dfdbc[_0x25d4bb(0x10e)]);_0x5dd300[_0x25d4bb(0x147)]({'start':_0x21f5b4[_0x25d4bb(0x178)],'end':_0x21f5b4[_0x25d4bb(0x178)],'type':_0x25d4bb(0x127),'groupId':_0x3faf1c['id'],'text':_0x3d8cec});}else{if(_0x25d4bb(0x136)===_0xfe912c[_0x25d4bb(0x150)]&&_0xfe912c[_0x25d4bb(0x1a9)][_0x25d4bb(0x154)](_0x25d4bb(0x1b5))){const _0x1c5db2=_0xfe912c;let _0x392468=_0x25d4bb(0x193);if(_0x494d0b){const _0x4f58f5=this[_0x25d4bb(0x10b)](_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x110)],_0x25d4bb(0x165),_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x18e)]),_0x3b90fd=this[_0x25d4bb(0x10b)](_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x151)],_0x25d4bb(0x133),_0x28fc0d[_0x25d4bb(0x1a2)][_0x25d4bb(0x18e)]);if(_0x4f58f5||_0x3b90fd){const _0x4cb111=_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x110)][_0x25d4bb(0x107)](-_0x4f58f5),_0x49696d=_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x151)][_0x25d4bb(0x107)](_0x3b90fd);_0x5dd300[_0x25d4bb(0x147)]({'start':_0x4cb111,'end':_0x49696d,'groupId':_0x3faf1c['id'],'type':_0x25d4bb(0x108)});}else _0x392468=_0x25d4bb(0x173);}_0x5dd300[_0x25d4bb(0x147)]({'start':_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x110)],'end':_0x1c5db2[_0x25d4bb(0x135)][_0x25d4bb(0x151)],'groupId':_0x3faf1c['id'],'type':_0x392468});}}}this[_0x25d4bb(0x1b0)](_0x5dd300);}[_0x232c92(0x1a4)](){const _0x14651f=_0x232c92;_0x1e6b73(this[_0x14651f(0x12b)])[_0x14651f(0x1a2)][_0x14651f(0x15c)](_0x4bfc56=>{const _0x43aeaf=_0x14651f;for(const _0x4a45fe of this[_0x43aeaf(0x163)][_0x43aeaf(0x145)]())_0x4bfc56[_0x43aeaf(0x179)](_0x4a45fe);}),this[_0x14651f(0x163)][_0x14651f(0x126)]();}[_0x232c92(0x187)](){const _0x310326=_0x232c92;_0x1e6b73(this[_0x310326(0x12b)])[_0x310326(0x11c)](_0x310326(0x118));}[_0x232c92(0x17d)](){const _0x1653b3=_0x232c92;_0x1e6b73(this[_0x1653b3(0x12b)])[_0x1653b3(0x1a6)](_0x1653b3(0x118));}[_0x232c92(0x174)](_0x38d3e8){const _0x10b11c=_0x232c92,_0xd46555=_0x1e6b73(this[_0x10b11c(0x12b)]),_0x56bc64=_0xd46555[_0x10b11c(0x1a2)],_0x12a914=this[_0x10b11c(0x11d)](_0x38d3e8);_0x56bc64[_0x10b11c(0x15c)](_0x7ba3a=>{const _0x428d46=_0x10b11c;for(const _0x11be36 of _0x12a914){const _0x45740a=_0xd46555[_0x428d46(0x1a2)][_0x428d46(0x176)][_0x428d46(0xfb)](_0x11be36['id']);_0x45740a&&(_0x428d46(0x127)===_0x11be36[_0x428d46(0x150)]?_0x56bc64[_0x428d46(0x1aa)](_0x7ba3a[_0x428d46(0x197)](_0x11be36[_0x428d46(0x143)]||''),_0x45740a[_0x428d46(0x10d)]()[_0x428d46(0x110)]):_0x428d46(0x193)!==_0x11be36[_0x428d46(0x150)]&&_0x428d46(0x173)!==_0x11be36[_0x428d46(0x150)]||_0x56bc64[_0x428d46(0x138)](_0x56bc64[_0x428d46(0x15f)](_0x45740a[_0x428d46(0x10d)]())),_0x7ba3a[_0x428d46(0x179)](_0x11be36['id']),this[_0x428d46(0x163)][_0x428d46(0x15d)](_0x11be36['id']));}});}[_0x232c92(0x11a)](_0x23c71d){const _0x5965bf=_0x232c92,_0x436dcb=_0x1e6b73(this[_0x5965bf(0x12b)]),_0x327edd=this[_0x5965bf(0x11d)](_0x23c71d);_0x436dcb[_0x5965bf(0x1a2)][_0x5965bf(0x15c)](_0x532f4e=>{const _0x497170=_0x5965bf;for(const _0x597c8f of _0x327edd)_0x532f4e[_0x497170(0x179)](_0x597c8f['id']),this[_0x497170(0x163)][_0x497170(0x15d)](_0x597c8f['id']);});}[_0x232c92(0xf8)](){const _0x62346d=_0x232c92,_0x11a21c=_0x1e6b73(this[_0x62346d(0x12b)]);return _0x11a21c&&_0x11a21c['ui']&&_0x11a21c['ui'][_0x62346d(0x199)]?_0x11a21c['ui'][_0x62346d(0x199)]:null;}[_0x232c92(0x192)](_0x276815,_0x2cec18,_0x202cd6){const _0x33a039=_0x232c92;if(_0x33a039(0x127)===_0x276815[_0x33a039(0x150)]){const _0x205014=_0x276815;return new _0x475387(this[_0x33a039(0x16e)](_0x205014[_0x33a039(0x178)],_0x2cec18[_0x33a039(0x19d)](_0x205014[_0x33a039(0x178)][_0x33a039(0x113)]),_0x202cd6),_0x205014[_0x33a039(0x119)],_0x205014[_0x33a039(0x12e)]);}if(_0x33a039(0x136)===_0x276815[_0x33a039(0x150)]&&_0x276815[_0x33a039(0x1a9)][_0x33a039(0x154)](_0x33a039(0x1b5))){const _0x3a2874=_0x276815;return new _0x418905(_0x3a2874[_0x33a039(0x1a9)],_0x3a2874[_0x33a039(0x111)],this[_0x33a039(0xf7)](_0x3a2874[_0x33a039(0x135)],_0x2cec18[_0x33a039(0x19d)](_0x3a2874[_0x33a039(0x135)][_0x33a039(0x110)][_0x33a039(0x113)]),_0x2cec18[_0x33a039(0x19d)](_0x3a2874[_0x33a039(0x135)][_0x33a039(0x151)][_0x33a039(0x113)]),_0x202cd6),_0x3a2874[_0x33a039(0x163)],_0x3a2874[_0x33a039(0x196)],_0x3a2874[_0x33a039(0x12e)]);}return _0x276815;}[_0x232c92(0x13c)](_0x3bdeab){const _0x532a6f=_0x232c92;if(!_0x3bdeab[_0x532a6f(0x177)])return[];const _0x2f5fea=[];let _0x2aafa8=0x0,_0x17aea4=0x0,_0x55e502=[];for(let _0x3b322b=0x0;_0x3b322b<=_0x3bdeab[_0x532a6f(0x177)];_0x3b322b++){const _0x8c8614=_0x3bdeab[_0x3b322b],_0x401d5a=_0x3bdeab[_0x3b322b-0x1];!_0x8c8614||_0x401d5a&&!this[_0x532a6f(0x123)](_0x401d5a)[_0x532a6f(0x11f)](this[_0x532a6f(0xf6)](_0x8c8614))?(_0x2f5fea[_0x532a6f(0x147)]({'operations':_0x55e502,'operationsIsolated':_0x55e502[_0x532a6f(0x13f)](_0x1d8aed=>this[_0x532a6f(0x181)](_0x1d8aed[_0x532a6f(0x13b)](),-_0x17aea4)),'groupOffset':_0x2aafa8}),_0x55e502=_0x8c8614?[_0x8c8614]:[],_0x17aea4+=_0x2aafa8,_0x2aafa8=0x0):_0x55e502[_0x532a6f(0x147)](_0x8c8614),_0x8c8614&&_0x532a6f(0x127)===_0x8c8614[_0x532a6f(0x150)]&&(_0x2aafa8+=_0x8c8614[_0x532a6f(0x161)]);}return _0x2f5fea;}[_0x232c92(0x18b)](_0x1d2493){const _0x294d29=_0x232c92;console[_0x294d29(0x112)](_0x294d29(0xf1),_0x1d2493['id']);}[_0x232c92(0x10b)](_0x2e6c77,_0x4f5c80,_0x44cf90,_0x265284=0x1){const _0x1cef68=_0x232c92,_0x18c5ca=new _0x4863ef({'startPosition':_0x2e6c77,'direction':_0x4f5c80});let _0x3accfc=0x0;for(let _0x2f05ae=0x0;_0x2f05ae<_0x265284;_0x2f05ae++){let _0x547f69=0x0,_0x1a1774=!0x1,_0x4d1b76=_0x1cef68(0x133)===_0x4f5c80?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x534111}of _0x18c5ca)if(_0x534111['is'](_0x1cef68(0x1b3))){const _0x5c5a2c=_0x4d1b76[_0x1cef68(0x17e)](_0x534111[_0x1cef68(0x10e)]);if(_0x5c5a2c&&_0x5c5a2c[_0x1cef68(0x177)]){if(_0x547f69+=_0x1cef68(0x133)===_0x4f5c80?_0x5c5a2c[_0x1cef68(0x114)]+_0x5c5a2c[0x0][_0x1cef68(0x177)]:_0x534111[_0x1cef68(0x10e)][_0x1cef68(0x177)]-_0x5c5a2c[_0x1cef68(0x114)],_0x5c5a2c[0x0][_0x1cef68(0x177)]!==_0x534111[_0x1cef68(0x10e)][_0x1cef68(0x177)])break;_0x1a1774=!0x0,_0x4d1b76=_0x1cef68(0x133)===_0x4f5c80?/^\w+/:/\w+$/;}else{if(_0x1a1774)break;_0x547f69+=_0x534111[_0x1cef68(0xf3)];}}else{if(_0x534111['is'](_0x1cef68(0x199))){_0x44cf90[_0x1cef68(0x159)](_0x534111)&&!_0x1a1774&&(_0x547f69+=0x1);break;}}_0x3accfc+=_0x547f69,_0x18c5ca[_0x1cef68(0x122)](_0x2e6c77[_0x1cef68(0x107)](_0x1cef68(0x133)===_0x4f5c80?_0x3accfc:-_0x3accfc));}return _0x3accfc;}[_0x232c92(0x131)](_0x1d0325,_0x5187f6){const _0xac2303=_0x232c92,_0x223db8=_0x1e6b73(this[_0xac2303(0x12b)])[_0xac2303(0x1a2)][_0xac2303(0x18e)],_0x418906=this[_0xac2303(0x10b)](_0x1d0325,_0xac2303(0x165),_0x223db8,0x6),_0x228e38=this[_0xac2303(0x10b)](_0x5187f6,_0xac2303(0x133),_0x223db8,0x6),_0x396e5b=_0x1d0325[_0xac2303(0x107)](-_0x418906),_0x133f2d=_0x5187f6[_0xac2303(0x107)](_0x228e38);return{'start':_0x396e5b,'end':_0x133f2d,'hasContentBefore':!_0x396e5b[_0xac2303(0x144)],'hasContentAfter':!_0x133f2d[_0xac2303(0x190)]};}[_0x232c92(0x1b0)](_0xfa93fd){const _0xf3cbb9=_0x232c92;_0x1e6b73(this[_0xf3cbb9(0x12b)])[_0xf3cbb9(0x1a2)][_0xf3cbb9(0x15c)](_0x55a73b=>{const _0x5ec637=_0xf3cbb9;for(const _0x4e61be of _0xfa93fd){const _0x82dbfe=''+Zt+_0x4e61be[_0x5ec637(0x150)]+':'+_0x4e61be[_0x5ec637(0x1a5)]+'_'+_0x121c7();this[_0x5ec637(0x163)][_0x5ec637(0x164)](_0x82dbfe,{'id':_0x82dbfe,'groupId':_0x4e61be[_0x5ec637(0x1a5)],'type':_0x4e61be[_0x5ec637(0x150)],'text':_0x4e61be[_0x5ec637(0x143)]}),_0x55a73b[_0x5ec637(0x11b)](_0x82dbfe,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x55a73b[_0x5ec637(0xf4)](_0x4e61be[_0x5ec637(0x110)],_0x4e61be[_0x5ec637(0x151)])});}});}[_0x232c92(0xfd)](_0x21879b,_0x454eb6,_0x3e0228){let _0x12ac6d='';return()=>{const _0x506b52=_0x8933;if(!_0x12ac6d){const _0x455314=_0x454eb6[_0x506b52(0x185)](_0x21879b,{'showSuggestionHighlights':!0x0}),_0x14d8be=_0x455314[_0x506b52(0x158)](0x0);if(!_0x14d8be)return'';let _0xf7a9b9=!0x1;const _0x577e5e=[];for(const _0x24f4be of _0x14d8be[_0x506b52(0x146)]())_0x24f4be['is'](_0x506b52(0x199),_0x506b52(0x16b))&&_0x24f4be[_0x506b52(0x157)](_0x506b52(0x18f))&&(_0xf7a9b9=!0x1),_0xf7a9b9&&_0x577e5e[_0x506b52(0x147)](_0x24f4be),_0x24f4be['is'](_0x506b52(0x199),_0x506b52(0x16b))&&_0x24f4be[_0x506b52(0x157)](_0x506b52(0x14e))&&(_0xf7a9b9=!0x0);_0x14d8be[_0x506b52(0x16d)](0x0,_0x14d8be[_0x506b52(0x100)]),_0x3e0228?.[_0x506b52(0x18a)]&&_0x14d8be[_0x506b52(0x17c)]('…'),_0x14d8be[_0x506b52(0x17c)](_0x577e5e),_0x3e0228?.[_0x506b52(0x1ae)]&&_0x14d8be[_0x506b52(0x17c)]('…');const _0xed05b7=_0x454eb6[_0x506b52(0x106)][_0x506b52(0x15e)][_0x506b52(0xf2)](_0x455314),_0x3f3ce7=_0x454eb6[_0x506b52(0x106)][_0x506b52(0x124)][_0x506b52(0x139)](_0xed05b7);_0x12ac6d=_0x3f3ce7;}return _0x12ac6d;};}[_0x232c92(0x148)](_0x4aa6cf,_0x40a2a1){const _0x16e312=_0x232c92;let _0x17e470='';return()=>(_0x17e470||(_0x17e470=_0x40a2a1[_0x16e312(0x149)](_0x4aa6cf,{'showSuggestionHighlights':!0x0})),_0x17e470);}[_0x232c92(0x13d)](_0x58c13c,_0x541d1c,_0x391868){let _0x16f7a7='';return()=>{const _0x3a6761=_0x8933;if(!_0x16f7a7){const _0x15038e=_0x391868[_0x3a6761(0x185)](new _0x27d8bf(_0x58c13c)),_0x4b6d32=_0x391868[_0x3a6761(0x106)][_0x3a6761(0x15e)][_0x3a6761(0xf2)](_0x15038e)[_0x3a6761(0x19a)](_0x3a6761(0x10f)+_0x541d1c+'\x22]');_0x16f7a7=_0x4b6d32?.[_0x3a6761(0xfc)]||'';}return _0x16f7a7;};}[_0x232c92(0x11d)](_0x5d7835){const _0x5f228a=_0x232c92;return Array[_0x5f228a(0x14a)](this[_0x5f228a(0x163)][_0x5f228a(0x19f)]())[_0x5f228a(0x19e)](_0x4ba916=>_0x4ba916[_0x5f228a(0x1a5)]===_0x5d7835);}[_0x232c92(0xf6)](_0x4314b3){const _0x5de9ba=_0x232c92;return _0x5de9ba(0x127)===_0x4314b3[_0x5de9ba(0x150)]?_0x4314b3[_0x5de9ba(0x178)]:_0x4314b3[_0x5de9ba(0x135)][_0x5de9ba(0x110)];}[_0x232c92(0x123)](_0x274383,_0x2f14f9=!0x1){const _0x3ad764=_0x232c92;return _0x3ad764(0x127)===_0x274383[_0x3ad764(0x150)]?_0x2f14f9?_0x274383[_0x3ad764(0x178)]:_0x274383[_0x3ad764(0x178)][_0x3ad764(0x107)](_0x274383[_0x3ad764(0x161)]):_0x274383[_0x3ad764(0x135)][_0x3ad764(0x151)];}[_0x232c92(0x181)](_0x51d5ef,_0x57e233){const _0x2db952=_0x232c92;return _0x2db952(0x127)===_0x51d5ef[_0x2db952(0x150)]?_0x51d5ef[_0x2db952(0x178)]=_0x51d5ef[_0x2db952(0x178)][_0x2db952(0x107)](_0x57e233):_0x2db952(0x136)===_0x51d5ef[_0x2db952(0x150)]&&_0x51d5ef[_0x2db952(0x135)]&&(_0x51d5ef[_0x2db952(0x135)]=new _0x10c1a7(_0x51d5ef[_0x2db952(0x135)][_0x2db952(0x110)][_0x2db952(0x107)](_0x57e233),_0x51d5ef[_0x2db952(0x135)][_0x2db952(0x151)][_0x2db952(0x107)](_0x57e233))),_0x51d5ef;}[_0x232c92(0x1ab)](_0x3645c8,_0x553562){const _0x2587cc=_0x232c92;_0x2587cc(0x127)===_0x3645c8[_0x2587cc(0x150)]?_0x3645c8[_0x2587cc(0x178)]=this[_0x2587cc(0x17b)](_0x3645c8[_0x2587cc(0x178)],_0x553562):_0x2587cc(0x136)===_0x3645c8[_0x2587cc(0x150)]&&_0x3645c8[_0x2587cc(0x135)]&&(_0x3645c8[_0x2587cc(0x135)]=this[_0x2587cc(0x1a3)](_0x3645c8[_0x2587cc(0x135)],_0x553562));}[_0x232c92(0x17b)](_0x1e5d54,_0x243fa1){const _0x4b8737=_0x232c92;return new _0x3f2e59(_0x243fa1,_0x1e5d54[_0x4b8737(0x166)]);}[_0x232c92(0x1a3)](_0x307a1f,_0x5675de){const _0x2e4aec=_0x232c92;return new _0x10c1a7(this[_0x2e4aec(0x17b)](_0x307a1f[_0x2e4aec(0x110)],_0x5675de),this[_0x2e4aec(0x17b)](_0x307a1f[_0x2e4aec(0x151)],_0x5675de));}[_0x232c92(0x16e)](_0x1c872f,_0x35b0e7,_0x118f63){return new _0x3f2e59(_0x118f63,[..._0x35b0e7]);}[_0x232c92(0xf7)](_0x602fbf,_0x409699,_0x399af1,_0x35ffe6){const _0x3343f6=_0x232c92;return new _0x10c1a7(this[_0x3343f6(0x16e)](_0x602fbf[_0x3343f6(0x110)],_0x409699,_0x35ffe6),this[_0x3343f6(0x16e)](_0x602fbf[_0x3343f6(0x151)],_0x399af1,_0x35ffe6));}[_0x232c92(0x120)](_0x6f3c5e){const _0x512ea4=_0x232c92;let _0x315820=_0x6f3c5e;for(;_0x315820[_0x512ea4(0x16f)]&&!_0x315820[_0x512ea4(0x16f)]['is'](_0x512ea4(0x11e));)_0x315820=_0x315820[_0x512ea4(0x16f)];return _0x315820;}}
|
|
23
|
+
function _0x4cc5(){const _0x69089e=['328347SmageU','element','applyChange','processor','markChangePositionInEditorContent','startsWith','ck-ai_review-mode-marker_context-start','operationsIsolated','outerHTML','_insertMarkers','map','caption','values','change','remove-only','getPath','_groupAdjacentOperations','847fIAzDD','concat','isOfficialPlugin','getRoots','nodes','toData','Scroll\x20to\x20change\x20in\x20editor\x20content','ck-ai_review-mode-marker_strikethrough','hasContentAfter','data','switchToReadOnly','remove-context','addOperation','_shiftOperation','isOpening','end','exec','name','markerToElement','createUIElement','filter','isTouching','4137054tQPYPF','markers','DocumentCompare','offset','toView','suggestion:insertion:id:authorId:','delete','ck-ai_review-mode-marker_underline','stringify','_setAttribute','deleteContent','No\x20element\x20found\x20for\x20ID:\x20','htmlWriter','_createGetContextFn','baseVersion','_appendChild','offsetSize','isPremiumPlugin','[data-id=\x22','373591bTsoXQ','getAttribute','diffContent','push','_changeRangeOwnerDocument','documentFragment','applyOperation','warn','get','model','innerHTML','domConverter','_removeChildren','suggestion-context','type','rejectChange','context','parse','editingDowncast','getHtml','index','reviewmode-','getShiftedBy','jumpTo','isAtEnd','version','createPositionAfter','_getMarkersDataForGroup','length','querySelector','affectsData','88xykHqt','_createGetContentFn','_changePositionOwnerDocument','isAtStart','flat','_getOperationStart','batch','412uYoxuW','marker','backward','ck-ai_review-mode-marker_context-end','clear','model:$text','createRawElement','getOperations','ck-ai_review-mode-marker_hide','removeMarker','isInline','schema','_getTopElement','_nextDataId','getDocumentData','getContentElement','_markers','dataDowncast','ai-review-mode','$textProxy','$markedRemove','insertContent','enableReadOnlyMode','set','newRange','ck-ai_review-mode-marker_context-','start','hasClass','createDocumentFragment','pluginName','span','position','history','_changeOperationOwnerDocument','elements','_changeRange','conversion','downcast','getChildren','htmlProcessor','document','addMarker','disableReadOnlyMode','for','every','insert','hasContentBefore','getChild','isDocumentOperation','_clone','remove-text','forward','clone','4066908KfYEte','getDiff','AIEditing','log','32961CxOsKh','7TAQhry','oldRange','requires','_getChangeContext','clearAllMarkers','getRoot','from','2pWpxCT','4486105rzqMWc','viewToDom','ck-ai_review-mode-marker_add','suggestion:deletion:id:authorId:','_getOperationEnd','createRange','_translateOperationToEditorContent','createSelection','append','afterInit','markerName','childCount','createText','16130YkAzKH','_createGetContentUsingDataIdFn','parent','ellipsisAfter','createPositionAt','_changePosition','groupId','ellipsisBefore','howMany','text','plugins','_findAdjacentContextDistance','add','toDomElement','$documentFragment','keys','AIReviewModeEditing','attributeToAttribute','getRange','scrollToChangeInEditorContent','markerToHighlight','switchToEdit','path','operationsA'];_0x4cc5=function(){return _0x69089e;};return _0x4cc5();}const _0x1ebd13=_0x2553;(function(_0x3f15e7,_0x697561){const _0x249ca0=_0x2553,_0x4a08f8=_0x3f15e7();while(!![]){try{const _0xb13f5e=parseInt(_0x249ca0(0x203))/0x1*(-parseInt(_0x249ca0(0x1a3))/0x2)+-parseInt(_0x249ca0(0x19b))/0x3*(-parseInt(_0x249ca0(0x162))/0x4)+-parseInt(_0x249ca0(0x1a4))/0x5+parseInt(_0x249ca0(0x1f0))/0x6*(parseInt(_0x249ca0(0x19c))/0x7)+parseInt(_0x249ca0(0x15b))/0x8*(-parseInt(_0x249ca0(0x1c9))/0x9)+-parseInt(_0x249ca0(0x1b1))/0xa*(-parseInt(_0x249ca0(0x1da))/0xb)+parseInt(_0x249ca0(0x197))/0xc;if(_0xb13f5e===_0x697561)break;else _0x4a08f8['push'](_0x4a08f8['shift']());}catch(_0x1b5e21){_0x4a08f8['push'](_0x4a08f8['shift']());}}}(_0x4cc5,0x9573b));import{InsertOperation as _0x5ad732,MarkerOperation as _0x1ec959,ModelDocumentFragment as _0x33550f,ModelPosition as _0x9c055e,ModelRange as _0x2e17f0,ModelTreeWalker as _0x433dc0,transformOperationSets as _0x4779a4}from'ckeditor5/src/engine.js';import{uid as _0x5a1824}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x4549a3}from'ckeditor5/src/core.js';function _0x2553(_0x5b2c45,_0x209b7b){const _0x4cc5bd=_0x4cc5();return _0x2553=function(_0x2553b3,_0x12680a){_0x2553b3=_0x2553b3-0x149;let _0x46026d=_0x4cc5bd[_0x2553b3];return _0x46026d;},_0x2553(_0x5b2c45,_0x209b7b);}import{DocumentCompare as _0x6663a0,DATA_ID_MODEL_ATTRIBUTE as _0x487153,DATA_ID_VIEW_ATTRIBUTE as _0x2ebc94}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x2630e4}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x28ac9c}from'../aicore/aiediting.js';const Xt=_0x1ebd13(0x151);export class AIReviewModeEditing extends _0x4549a3{static get[_0x1ebd13(0x17f)](){const _0x59808a=_0x1ebd13;return _0x59808a(0x1c1);}static get[_0x1ebd13(0x19e)](){return[_0x6663a0,_0x28ac9c];}static get[_0x1ebd13(0x1dc)](){return!0x0;}static get[_0x1ebd13(0x201)](){return!0x0;}[_0x1ebd13(0x172)]=new Map();[_0x1ebd13(0x1ad)](){const _0x234b91=_0x1ebd13,_0x3b68=_0x2630e4(this[_0x234b91(0x14c)]);_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1ec)]({'model':Xt+_0x234b91(0x18f),'view':(_0x4cce96,{writer:_0x6483aa})=>{const _0x3b7ae8=_0x234b91,_0x25538c=this[_0x3b7ae8(0x172)][_0x3b7ae8(0x20b)](_0x4cce96[_0x3b7ae8(0x1ae)]);return _0x6483aa[_0x3b7ae8(0x1ed)](_0x3b7ae8(0x180),{'class':_0x3b7ae8(0x1a6)},function(_0x4b72a5){const _0x10b709=_0x3b7ae8,_0x33c224=this[_0x10b709(0x1be)](_0x4b72a5);return _0x33c224[_0x10b709(0x20d)]=_0x25538c?.[_0x10b709(0x1ba)]||'',_0x33c224;});}}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x173))[_0x234b91(0x1ec)]({'model':Xt+_0x234b91(0x149),'view':(_0x4adc72,{writer:_0x2e4b04})=>_0x2e4b04[_0x234b91(0x168)](_0x234b91(0x180),{'class':_0x234b91(0x17b)+(_0x4adc72[_0x234b91(0x1e8)]?_0x234b91(0x17c):_0x234b91(0x1e9))})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1c5)]({'model':Xt+_0x234b91(0x1d7),'view':()=>({'classes':_0x234b91(0x1e1)})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1c5)]({'model':Xt+_0x234b91(0x1e5),'view':()=>({'classes':_0x234b91(0x1f7)})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x14e))[_0x234b91(0x1c5)]({'model':Xt+_0x234b91(0x194),'view':()=>({'classes':_0x234b91(0x16a)})}),_0x3b68[_0x234b91(0x186)][_0x234b91(0x18d)](_0x234b91(0x187))[_0x234b91(0x1c2)]({'model':_0x487153,'view':_0x2ebc94});}[_0x1ebd13(0x170)](){const _0xee34=_0x1ebd13,_0x5ae7ae=this[_0xee34(0x14c)][_0xee34(0x1bb)][_0xee34(0x20b)](_0xee34(0x199)),_0x24e0e5=_0x2630e4(this[_0xee34(0x14c)]),_0x3e07a4=_0x24e0e5[_0xee34(0x20c)],_0x10febe=new _0x33550f();for(const _0x256def of _0x3e07a4[_0xee34(0x18a)][_0xee34(0x1a1)]()[_0xee34(0x188)]()){const _0xdf9d44=_0x256def[_0xee34(0x193)](!0x0);_0x10febe[_0xee34(0x1ff)](_0xdf9d44);}for(const _0x238407 of _0x3e07a4[_0xee34(0x1f1)])_0x10febe[_0xee34(0x1f1)][_0xee34(0x179)](_0x238407[_0xee34(0x1eb)],this[_0xee34(0x207)](_0x238407[_0xee34(0x1c3)]()[_0xee34(0x196)](),_0x10febe));const _0x3ff01b=new _0x433dc0({'ignoreElementEnd':!0x0,'startPosition':_0x3e07a4[_0xee34(0x1b5)](_0x10febe,0x0)}),_0x211e72=new Set(),_0x21f18d=new Map();for(const {item:_0x193829}of _0x3ff01b){if(!_0x193829['is'](_0xee34(0x175)))continue;const _0x46128f=_0x193829[_0xee34(0x1b3)];if((!_0x46128f||!_0x46128f['is'](_0xee34(0x1ca),_0xee34(0x1d4)))&&(_0x46128f&&_0x46128f['is'](_0xee34(0x1ca)))){let _0x1b003d=_0x46128f[_0xee34(0x204)](_0x487153);_0x1b003d||(_0x1b003d=_0x5ae7ae[_0xee34(0x16f)](_0x211e72),_0x46128f[_0xee34(0x1f9)](_0x487153,_0x1b003d)),_0x211e72[_0xee34(0x1bd)](_0x1b003d);const _0x4271e7=this[_0xee34(0x16e)](_0x46128f);_0x21f18d[_0xee34(0x179)](_0x1b003d,{'path':_0x46128f[_0xee34(0x1d8)](),'getContent':this[_0xee34(0x1b2)](_0x4271e7[_0xee34(0x193)](!0x0),_0x1b003d,_0x24e0e5[_0xee34(0x1e3)])}),_0x3ff01b[_0xee34(0x153)](_0x3e07a4[_0xee34(0x156)](_0x46128f));}}return{'content':_0x24e0e5[_0xee34(0x1e3)][_0xee34(0x1cc)][_0xee34(0x1df)](_0x24e0e5[_0xee34(0x1e3)][_0xee34(0x1f4)](_0x10febe)),'version':_0x24e0e5[_0xee34(0x20c)][_0xee34(0x18a)][_0xee34(0x155)],'elements':_0x21f18d};}[_0x1ebd13(0x205)](_0x55ca5d,_0x5029b8){const _0x3b10cc=_0x1ebd13,_0x46d468=_0x2630e4(this[_0x3b10cc(0x14c)]),_0x100e7d=_0x46d468[_0x3b10cc(0x1e3)][_0x3b10cc(0x14d)](_0x55ca5d,_0x3b10cc(0x1bf)),_0x20e6c8=_0x46d468[_0x3b10cc(0x20c)][_0x3b10cc(0x1b5)](_0x100e7d,0x0),_0x57810a=this[_0x3b10cc(0x14c)][_0x3b10cc(0x1bb)][_0x3b10cc(0x20b)](_0x3b10cc(0x1f2))[_0x3b10cc(0x198)](_0x55ca5d,_0x5029b8,{'anchor':_0x20e6c8,'markDeletions':!0x0})[_0x3b10cc(0x169)]()[_0x3b10cc(0x1ee)](_0x223f8b=>_0x3b10cc(0x18f)===_0x223f8b[_0x3b10cc(0x14a)]||_0x3b10cc(0x163)===_0x223f8b[_0x3b10cc(0x14a)]&&_0x223f8b[_0x3b10cc(0x1eb)][_0x3b10cc(0x1ce)](_0x3b10cc(0x176))),_0x1085d5=this[_0x3b10cc(0x1d9)](_0x57810a),_0x365ae7=[];let _0x170e28=0x0;return _0x46d468[_0x3b10cc(0x20c)][_0x3b10cc(0x1d6)](_0x8d6608=>{const _0x18ff6d=_0x3b10cc;for(let _0x2e0da1=0x0;_0x2e0da1<_0x1085d5[_0x18ff6d(0x158)];_0x2e0da1++){const _0x223c9b=_0x1085d5[_0x2e0da1],_0x393e04=_0x8d6608[_0x18ff6d(0x17e)]();for(const _0x36da08 of _0x100e7d[_0x18ff6d(0x188)]())_0x8d6608[_0x18ff6d(0x1ac)](_0x36da08[_0x18ff6d(0x193)](!0x0),_0x393e04);for(const _0x2eec64 of _0x223c9b[_0x18ff6d(0x1d0)])if(_0x18ff6d(0x18f)===_0x2eec64[_0x18ff6d(0x14a)]){const _0x2f3744=_0x2eec64;_0x2f3744[_0x18ff6d(0x1fe)]=null,_0x2f3744[_0x18ff6d(0x192)]=!0x1,this[_0x18ff6d(0x183)](_0x2f3744,_0x393e04),_0x8d6608[_0x18ff6d(0x161)][_0x18ff6d(0x1e6)](_0x2eec64),_0x46d468[_0x18ff6d(0x20c)][_0x18ff6d(0x209)](_0x2eec64);const _0x2f6e2f=_0x18ff6d(0x1f5)+_0x170e28++,_0x4fc221=_0x46d468[_0x18ff6d(0x20c)][_0x18ff6d(0x1a9)](_0x2f3744[_0x18ff6d(0x181)],_0x2f3744[_0x18ff6d(0x181)][_0x18ff6d(0x152)](_0x2f3744[_0x18ff6d(0x1b9)]));_0x393e04[_0x18ff6d(0x1f1)][_0x18ff6d(0x179)](_0x2f6e2f,_0x4fc221);}else{if(_0x18ff6d(0x163)===_0x2eec64[_0x18ff6d(0x14a)]&&_0x2eec64[_0x18ff6d(0x1eb)][_0x18ff6d(0x1ce)](_0x18ff6d(0x176))){const _0x497b8e=_0x2eec64,_0x3ecb80=_0x18ff6d(0x1a7)+_0x170e28++;this[_0x18ff6d(0x183)](_0x497b8e,_0x393e04),_0x393e04[_0x18ff6d(0x1f1)][_0x18ff6d(0x179)](_0x3ecb80,_0x497b8e[_0x18ff6d(0x17a)]);}}const _0x360b49=this[_0x18ff6d(0x19f)](this[_0x18ff6d(0x15d)](this[_0x18ff6d(0x160)](_0x223c9b[_0x18ff6d(0x1d0)][0x0]),_0x393e04),this[_0x18ff6d(0x15d)](this[_0x18ff6d(0x1a8)](_0x223c9b[_0x18ff6d(0x1d0)][_0x223c9b[_0x18ff6d(0x1d0)][_0x18ff6d(0x158)]-0x1]),_0x393e04));_0x393e04[_0x18ff6d(0x1f1)][_0x18ff6d(0x179)](Xt+_0x18ff6d(0x149),new _0x2e17f0(_0x360b49[_0x18ff6d(0x17c)],_0x360b49[_0x18ff6d(0x1e9)])),_0x365ae7[_0x18ff6d(0x206)]({..._0x223c9b,'context':this[_0x18ff6d(0x1fd)](_0x393e04,_0x46d468[_0x18ff6d(0x1e3)],{'ellipsisBefore':_0x360b49[_0x18ff6d(0x190)],'ellipsisAfter':_0x360b49[_0x18ff6d(0x1e2)]}),'content':this[_0x18ff6d(0x15c)](_0x393e04,_0x46d468[_0x18ff6d(0x1e3)])});}}),_0x365ae7;}[_0x1ebd13(0x1cd)](_0xc4f16b,_0x423f6e){const _0x28c59c=_0x1ebd13,_0x2df371=_0xc4f16b[0x0][_0x28c59c(0x1b3)]['id'],_0xfa36d3=_0x423f6e[_0x28c59c(0x184)][_0x28c59c(0x20b)](_0x2df371);if(!_0xfa36d3)return void console[_0x28c59c(0x20a)](_0x28c59c(0x1fb)+_0x2df371);const _0x17d9d6=_0xfa36d3[_0x28c59c(0x1c7)],_0x5e57dc=_0x2630e4(this[_0x28c59c(0x14c)]),_0x51a4bd=_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x18a)][_0x28c59c(0x182)][_0x28c59c(0x169)](_0x423f6e[_0x28c59c(0x155)]),_0x44fa67=[];for(const _0xd0710b of _0xc4f16b){const _0x40ea17=_0xd0710b[_0x28c59c(0x1d0)][_0x28c59c(0x1d3)](_0x18d1ad=>this[_0x28c59c(0x1aa)](_0x18d1ad,_0x17d9d6,_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x18a)][_0x28c59c(0x1dd)]()[0x0]));if(!_0x40ea17||!_0x40ea17[_0x28c59c(0x158)])continue;const _0x18e578=_0x40ea17[_0x28c59c(0x18e)](_0x183d13=>_0x28c59c(0x163)===_0x183d13[_0x28c59c(0x14a)]&&_0x183d13[_0x28c59c(0x1eb)][_0x28c59c(0x1ce)](_0x28c59c(0x176))),_0x175c56={'document':_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x18a)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x25b2c8=_0x4779a4(_0x40ea17,_0x51a4bd,_0x175c56)[_0x28c59c(0x1c8)];for(const _0x7d8fbf of _0x25b2c8)if(_0x28c59c(0x18f)===_0x7d8fbf[_0x28c59c(0x14a)]){const _0x2780d5=_0x7d8fbf,_0x1f5d20=_0x2780d5[_0x28c59c(0x1de)];let _0x1fae3d='';for(const _0x42c3e4 of _0x1f5d20)_0x42c3e4&&_0x42c3e4['is'](_0x28c59c(0x167))&&(_0x1fae3d+=_0x42c3e4[_0x28c59c(0x1e3)]);_0x44fa67[_0x28c59c(0x206)]({'start':_0x2780d5[_0x28c59c(0x181)],'end':_0x2780d5[_0x28c59c(0x181)],'type':_0x28c59c(0x18f),'groupId':_0xd0710b['id'],'text':_0x1fae3d});}else{if(_0x28c59c(0x163)===_0x7d8fbf[_0x28c59c(0x14a)]&&_0x7d8fbf[_0x28c59c(0x1eb)][_0x28c59c(0x1ce)](_0x28c59c(0x176))){const _0x5f4b36=_0x7d8fbf;let _0x567878=_0x28c59c(0x194);if(_0x18e578){const _0x2b1272=this[_0x28c59c(0x1bc)](_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x17c)],_0x28c59c(0x164),_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x16d)]),_0x1fe526=this[_0x28c59c(0x1bc)](_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x1e9)],_0x28c59c(0x195),_0x5e57dc[_0x28c59c(0x20c)][_0x28c59c(0x16d)]);if(_0x2b1272||_0x1fe526){const _0x14dea2=_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x17c)][_0x28c59c(0x152)](-_0x2b1272),_0x4f59d4=_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x1e9)][_0x28c59c(0x152)](_0x1fe526);_0x44fa67[_0x28c59c(0x206)]({'start':_0x14dea2,'end':_0x4f59d4,'groupId':_0xd0710b['id'],'type':_0x28c59c(0x1e5)});}else _0x567878=_0x28c59c(0x1d7);}_0x44fa67[_0x28c59c(0x206)]({'start':_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x17c)],'end':_0x5f4b36[_0x28c59c(0x17a)][_0x28c59c(0x1e9)],'groupId':_0xd0710b['id'],'type':_0x567878});}}}this[_0x28c59c(0x1d2)](_0x44fa67);}[_0x1ebd13(0x1a0)](){const _0x24fee5=_0x1ebd13;_0x2630e4(this[_0x24fee5(0x14c)])[_0x24fee5(0x20c)][_0x24fee5(0x1d6)](_0x4e509e=>{const _0x13e97b=_0x24fee5;for(const _0x55e2ff of this[_0x13e97b(0x172)][_0x13e97b(0x1c0)]())_0x4e509e[_0x13e97b(0x16b)](_0x55e2ff);}),this[_0x24fee5(0x172)][_0x24fee5(0x166)]();}[_0x1ebd13(0x1e4)](){const _0x5c2b46=_0x1ebd13;_0x2630e4(this[_0x5c2b46(0x14c)])[_0x5c2b46(0x178)](_0x5c2b46(0x174));}[_0x1ebd13(0x1c6)](){const _0x5f4a26=_0x1ebd13;_0x2630e4(this[_0x5f4a26(0x14c)])[_0x5f4a26(0x18c)](_0x5f4a26(0x174));}[_0x1ebd13(0x1cb)](_0x21a52a){const _0x1e85ed=_0x1ebd13,_0xd3c113=_0x2630e4(this[_0x1e85ed(0x14c)]),_0x39bb9f=_0xd3c113[_0x1e85ed(0x20c)],_0x231efe=_0x21a52a[_0x1e85ed(0x1d3)](_0x2f025f=>this[_0x1e85ed(0x157)](_0x2f025f))[_0x1e85ed(0x15f)]();_0x39bb9f[_0x1e85ed(0x1d6)](_0x59c36c=>{const _0x3a0de9=_0x1e85ed;for(const _0xfff5db of _0x231efe){const _0x4d8103=_0xd3c113[_0x3a0de9(0x20c)][_0x3a0de9(0x1f1)][_0x3a0de9(0x20b)](_0xfff5db['id']);_0x4d8103&&(_0x3a0de9(0x18f)===_0xfff5db[_0x3a0de9(0x14a)]?_0x39bb9f[_0x3a0de9(0x177)](_0x59c36c[_0x3a0de9(0x1b0)](_0xfff5db[_0x3a0de9(0x1ba)]||''),_0x4d8103[_0x3a0de9(0x1c3)]()[_0x3a0de9(0x17c)]):_0x3a0de9(0x194)!==_0xfff5db[_0x3a0de9(0x14a)]&&_0x3a0de9(0x1d7)!==_0xfff5db[_0x3a0de9(0x14a)]||_0x39bb9f[_0x3a0de9(0x1fa)](_0x39bb9f[_0x3a0de9(0x1ab)](_0x4d8103[_0x3a0de9(0x1c3)]())),_0x59c36c[_0x3a0de9(0x16b)](_0xfff5db['id']),this[_0x3a0de9(0x172)][_0x3a0de9(0x1f6)](_0xfff5db['id']));}});}[_0x1ebd13(0x14b)](_0x29fd5b){const _0x1369f0=_0x1ebd13,_0x305b0c=_0x2630e4(this[_0x1369f0(0x14c)]),_0x2311e2=this[_0x1369f0(0x157)](_0x29fd5b);_0x305b0c[_0x1369f0(0x20c)][_0x1369f0(0x1d6)](_0x9e2732=>{const _0x115690=_0x1369f0;for(const _0x3260be of _0x2311e2)_0x9e2732[_0x115690(0x16b)](_0x3260be['id']),this[_0x115690(0x172)][_0x115690(0x1f6)](_0x3260be['id']);});}[_0x1ebd13(0x171)](){const _0x3924df=_0x1ebd13,_0x29a640=_0x2630e4(this[_0x3924df(0x14c)]);return _0x29a640&&_0x29a640['ui']&&_0x29a640['ui'][_0x3924df(0x1ca)]?_0x29a640['ui'][_0x3924df(0x1ca)]:null;}[_0x1ebd13(0x1aa)](_0x318a8b,_0x128d0b,_0x13c22e){const _0xf0754f=_0x1ebd13;if(_0xf0754f(0x18f)===_0x318a8b[_0xf0754f(0x14a)]){const _0x93a4c0=_0x318a8b;return new _0x5ad732(this[_0xf0754f(0x1b6)](_0x93a4c0[_0xf0754f(0x181)],_0x128d0b[_0xf0754f(0x1db)](_0x93a4c0[_0xf0754f(0x181)][_0xf0754f(0x1f3)]),_0x13c22e),_0x93a4c0[_0xf0754f(0x1de)],_0x93a4c0[_0xf0754f(0x1fe)]);}if(_0xf0754f(0x163)===_0x318a8b[_0xf0754f(0x14a)]&&_0x318a8b[_0xf0754f(0x1eb)][_0xf0754f(0x1ce)](_0xf0754f(0x176))){const _0x5e8546=_0x318a8b;return new _0x1ec959(_0x5e8546[_0xf0754f(0x1eb)],_0x5e8546[_0xf0754f(0x19d)],this[_0xf0754f(0x185)](_0x5e8546[_0xf0754f(0x17a)],_0x128d0b[_0xf0754f(0x1db)](_0x5e8546[_0xf0754f(0x17a)][_0xf0754f(0x17c)][_0xf0754f(0x1f3)]),_0x128d0b[_0xf0754f(0x1db)](_0x5e8546[_0xf0754f(0x17a)][_0xf0754f(0x1e9)][_0xf0754f(0x1f3)]),_0x13c22e),_0x5e8546[_0xf0754f(0x172)],_0x5e8546[_0xf0754f(0x15a)],_0x5e8546[_0xf0754f(0x1fe)]);}return _0x318a8b;}[_0x1ebd13(0x1d9)](_0x56874e){const _0x5a54b7=_0x1ebd13;if(!_0x56874e[_0x5a54b7(0x158)])return[];const _0x1aeb64=[];let _0x4806c2=0x0,_0x5cdcde=0x0,_0x56ea0f=[];for(let _0x173b45=0x0;_0x173b45<=_0x56874e[_0x5a54b7(0x158)];_0x173b45++){const _0x2ac573=_0x56874e[_0x173b45],_0x2a266c=_0x56874e[_0x173b45-0x1];!_0x2ac573||_0x2a266c&&!this[_0x5a54b7(0x1a8)](_0x2a266c)[_0x5a54b7(0x1ef)](this[_0x5a54b7(0x160)](_0x2ac573))?(_0x1aeb64[_0x5a54b7(0x206)]({'operations':_0x56ea0f,'operationsIsolated':_0x56ea0f[_0x5a54b7(0x1d3)](_0xe14b79=>this[_0x5a54b7(0x1e7)](_0xe14b79[_0x5a54b7(0x196)](),-_0x5cdcde)),'groupOffset':_0x4806c2}),_0x56ea0f=_0x2ac573?[_0x2ac573]:[],_0x5cdcde+=_0x4806c2,_0x4806c2=0x0):_0x56ea0f[_0x5a54b7(0x206)](_0x2ac573),_0x2ac573&&_0x5a54b7(0x18f)===_0x2ac573[_0x5a54b7(0x14a)]&&(_0x4806c2+=_0x2ac573[_0x5a54b7(0x1b9)]);}return _0x1aeb64;}[_0x1ebd13(0x1c4)](_0x70eb56){const _0x4724fc=_0x1ebd13;console[_0x4724fc(0x19a)](_0x4724fc(0x1e0),_0x70eb56['id']);}[_0x1ebd13(0x1bc)](_0x5989b4,_0x4b0157,_0x49bbc7,_0x52d9de=0x1){const _0x5ab860=_0x1ebd13,_0x155203=new _0x433dc0({'startPosition':_0x5989b4,'direction':_0x4b0157});let _0x1e8249=0x0;for(let _0x2a0713=0x0;_0x2a0713<_0x52d9de;_0x2a0713++){let _0x4b124c=0x0,_0x3efdac=!0x1,_0x2c7858=_0x5ab860(0x195)===_0x4b0157?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x3cae08}of _0x155203)if(_0x3cae08['is'](_0x5ab860(0x175))){const _0x2847c8=_0x2c7858[_0x5ab860(0x1ea)](_0x3cae08[_0x5ab860(0x1e3)]);if(_0x2847c8&&_0x2847c8[_0x5ab860(0x158)]){if(_0x4b124c+=_0x5ab860(0x195)===_0x4b0157?_0x2847c8[_0x5ab860(0x150)]+_0x2847c8[0x0][_0x5ab860(0x158)]:_0x3cae08[_0x5ab860(0x1e3)][_0x5ab860(0x158)]-_0x2847c8[_0x5ab860(0x150)],_0x2847c8[0x0][_0x5ab860(0x158)]!==_0x3cae08[_0x5ab860(0x1e3)][_0x5ab860(0x158)])break;_0x3efdac=!0x0,_0x2c7858=_0x5ab860(0x195)===_0x4b0157?/^\w+/:/\w+$/;}else{if(_0x3efdac)break;_0x4b124c+=_0x3cae08[_0x5ab860(0x200)];}}else{if(_0x3cae08['is'](_0x5ab860(0x1ca))){_0x49bbc7[_0x5ab860(0x16c)](_0x3cae08)&&!_0x3efdac&&(_0x4b124c+=0x1);break;}}_0x1e8249+=_0x4b124c,_0x155203[_0x5ab860(0x153)](_0x5989b4[_0x5ab860(0x152)](_0x5ab860(0x195)===_0x4b0157?_0x1e8249:-_0x1e8249));}return _0x1e8249;}[_0x1ebd13(0x19f)](_0x4a27da,_0x5b2e3a){const _0x1572f3=_0x1ebd13,_0x182a40=_0x2630e4(this[_0x1572f3(0x14c)])[_0x1572f3(0x20c)][_0x1572f3(0x16d)],_0x2e94e2=this[_0x1572f3(0x1bc)](_0x4a27da,_0x1572f3(0x164),_0x182a40,0x6),_0x477186=this[_0x1572f3(0x1bc)](_0x5b2e3a,_0x1572f3(0x195),_0x182a40,0x6),_0x4d72a8=_0x4a27da[_0x1572f3(0x152)](-_0x2e94e2),_0x5c2827=_0x5b2e3a[_0x1572f3(0x152)](_0x477186);return{'start':_0x4d72a8,'end':_0x5c2827,'hasContentBefore':!_0x4d72a8[_0x1572f3(0x15e)],'hasContentAfter':!_0x5c2827[_0x1572f3(0x154)]};}[_0x1ebd13(0x1d2)](_0x4a4455){const _0x22d5b9=_0x1ebd13;_0x2630e4(this[_0x22d5b9(0x14c)])[_0x22d5b9(0x20c)][_0x22d5b9(0x1d6)](_0x23429c=>{const _0x36525d=_0x22d5b9;for(const _0x41ec96 of _0x4a4455){const _0xd0fa6b=''+Xt+_0x41ec96[_0x36525d(0x14a)]+':'+_0x41ec96[_0x36525d(0x1b7)]+'_'+_0x5a1824();this[_0x36525d(0x172)][_0x36525d(0x179)](_0xd0fa6b,{'id':_0xd0fa6b,'groupId':_0x41ec96[_0x36525d(0x1b7)],'type':_0x41ec96[_0x36525d(0x14a)],'text':_0x41ec96[_0x36525d(0x1ba)]}),_0x23429c[_0x36525d(0x18b)](_0xd0fa6b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x23429c[_0x36525d(0x1a9)](_0x41ec96[_0x36525d(0x17c)],_0x41ec96[_0x36525d(0x1e9)])});}});}[_0x1ebd13(0x1fd)](_0x2093c5,_0x47b778,_0x28f5a1){let _0x2bafe0='';return()=>{const _0x38fd63=_0x2553;if(!_0x2bafe0){const _0x45b5e9=_0x47b778[_0x38fd63(0x1f4)](_0x2093c5,{'showSuggestionHighlights':!0x0}),_0x50f233=_0x45b5e9[_0x38fd63(0x191)](0x0);if(!_0x50f233)return'';let _0x14ed07=!0x1;const _0x574c48=[];for(const _0x4c8f57 of _0x50f233[_0x38fd63(0x188)]())_0x4c8f57['is'](_0x38fd63(0x1ca),_0x38fd63(0x180))&&_0x4c8f57[_0x38fd63(0x17d)](_0x38fd63(0x165))&&(_0x14ed07=!0x1),_0x14ed07&&_0x574c48[_0x38fd63(0x206)](_0x4c8f57),_0x4c8f57['is'](_0x38fd63(0x1ca),_0x38fd63(0x180))&&_0x4c8f57[_0x38fd63(0x17d)](_0x38fd63(0x1cf))&&(_0x14ed07=!0x0);_0x50f233[_0x38fd63(0x20f)](0x0,_0x50f233[_0x38fd63(0x1af)]),_0x28f5a1?.[_0x38fd63(0x1b8)]&&_0x50f233[_0x38fd63(0x1ff)]('…'),_0x50f233[_0x38fd63(0x1ff)](_0x574c48),_0x28f5a1?.[_0x38fd63(0x1b4)]&&_0x50f233[_0x38fd63(0x1ff)]('…');const _0x226a1a=_0x47b778[_0x38fd63(0x189)][_0x38fd63(0x20e)][_0x38fd63(0x1a5)](_0x45b5e9),_0x301525=_0x47b778[_0x38fd63(0x189)][_0x38fd63(0x1fc)][_0x38fd63(0x14f)](_0x226a1a);_0x2bafe0=_0x301525;}return _0x2bafe0;};}[_0x1ebd13(0x15c)](_0x436179,_0x1a5563){const _0x5381c4=_0x1ebd13;let _0x2486cb='';return()=>(_0x2486cb||(_0x2486cb=_0x1a5563[_0x5381c4(0x1f8)](_0x436179,{'showSuggestionHighlights':!0x0})),_0x2486cb);}[_0x1ebd13(0x1b2)](_0x15ae5f,_0x167dca,_0x7c1ab9){let _0x9b5a46='';return()=>{const _0x5bb8ea=_0x2553;if(!_0x9b5a46){const _0x2d5026=_0x7c1ab9[_0x5bb8ea(0x1f4)](new _0x33550f(_0x15ae5f)),_0x2b5b1c=_0x7c1ab9[_0x5bb8ea(0x189)][_0x5bb8ea(0x20e)][_0x5bb8ea(0x1a5)](_0x2d5026)[_0x5bb8ea(0x159)](_0x5bb8ea(0x202)+_0x167dca+'\x22]');_0x9b5a46=_0x2b5b1c?.[_0x5bb8ea(0x1d1)]||'';}return _0x9b5a46;};}[_0x1ebd13(0x157)](_0x2f34cb){const _0x12b9da=_0x1ebd13;return Array[_0x12b9da(0x1a2)](this[_0x12b9da(0x172)][_0x12b9da(0x1d5)]())[_0x12b9da(0x1ee)](_0x964586=>_0x964586[_0x12b9da(0x1b7)]===_0x2f34cb);}[_0x1ebd13(0x160)](_0x37df4c){const _0x34a605=_0x1ebd13;return _0x34a605(0x18f)===_0x37df4c[_0x34a605(0x14a)]?_0x37df4c[_0x34a605(0x181)]:_0x37df4c[_0x34a605(0x17a)][_0x34a605(0x17c)];}[_0x1ebd13(0x1a8)](_0x47d924,_0x2570a5=!0x1){const _0x421507=_0x1ebd13;return _0x421507(0x18f)===_0x47d924[_0x421507(0x14a)]?_0x2570a5?_0x47d924[_0x421507(0x181)]:_0x47d924[_0x421507(0x181)][_0x421507(0x152)](_0x47d924[_0x421507(0x1b9)]):_0x47d924[_0x421507(0x17a)][_0x421507(0x1e9)];}[_0x1ebd13(0x1e7)](_0x5e655b,_0x2f1e4d){const _0x4d46ad=_0x1ebd13;return _0x4d46ad(0x18f)===_0x5e655b[_0x4d46ad(0x14a)]?_0x5e655b[_0x4d46ad(0x181)]=_0x5e655b[_0x4d46ad(0x181)][_0x4d46ad(0x152)](_0x2f1e4d):_0x4d46ad(0x163)===_0x5e655b[_0x4d46ad(0x14a)]&&_0x5e655b[_0x4d46ad(0x17a)]&&(_0x5e655b[_0x4d46ad(0x17a)]=new _0x2e17f0(_0x5e655b[_0x4d46ad(0x17a)][_0x4d46ad(0x17c)][_0x4d46ad(0x152)](_0x2f1e4d),_0x5e655b[_0x4d46ad(0x17a)][_0x4d46ad(0x1e9)][_0x4d46ad(0x152)](_0x2f1e4d))),_0x5e655b;}[_0x1ebd13(0x183)](_0xd61c41,_0x3284a4){const _0x98532=_0x1ebd13;_0x98532(0x18f)===_0xd61c41[_0x98532(0x14a)]?_0xd61c41[_0x98532(0x181)]=this[_0x98532(0x15d)](_0xd61c41[_0x98532(0x181)],_0x3284a4):_0x98532(0x163)===_0xd61c41[_0x98532(0x14a)]&&_0xd61c41[_0x98532(0x17a)]&&(_0xd61c41[_0x98532(0x17a)]=this[_0x98532(0x207)](_0xd61c41[_0x98532(0x17a)],_0x3284a4));}[_0x1ebd13(0x15d)](_0x4c8166,_0x861488){const _0xc203ca=_0x1ebd13;return new _0x9c055e(_0x861488,_0x4c8166[_0xc203ca(0x1c7)]);}[_0x1ebd13(0x207)](_0x5a178e,_0x2d38e9){const _0x5492c2=_0x1ebd13;return new _0x2e17f0(this[_0x5492c2(0x15d)](_0x5a178e[_0x5492c2(0x17c)],_0x2d38e9),this[_0x5492c2(0x15d)](_0x5a178e[_0x5492c2(0x1e9)],_0x2d38e9));}[_0x1ebd13(0x1b6)](_0x15c6b4,_0x4b67d9,_0x56f201){return new _0x9c055e(_0x56f201,[..._0x4b67d9]);}[_0x1ebd13(0x185)](_0x5c1049,_0x1d4a62,_0xce7073,_0x582a4e){const _0x1c9754=_0x1ebd13;return new _0x2e17f0(this[_0x1c9754(0x1b6)](_0x5c1049[_0x1c9754(0x17c)],_0x1d4a62,_0x582a4e),this[_0x1c9754(0x1b6)](_0x5c1049[_0x1c9754(0x1e9)],_0xce7073,_0x582a4e));}[_0x1ebd13(0x16e)](_0x186f25){const _0x6c69be=_0x1ebd13;let _0x361361=_0x186f25;for(;_0x361361[_0x6c69be(0x1b3)]&&!_0x361361[_0x6c69be(0x1b3)]['is'](_0x6c69be(0x208));)_0x361361=_0x361361[_0x6c69be(0x1b3)];return _0x361361;}}
|
|
@@ -11,7 +11,7 @@ import { AITabs } from '../aitabs/aitabs.js';
|
|
|
11
11
|
import { type AIReviewCheck } from './model/aireviewcheck.js';
|
|
12
12
|
import { type AIReviewCheckRunUpdatedEvent } from './model/aireviewcheckrun.js';
|
|
13
13
|
import '../../theme/aireviewmode/aireviewmode.css';
|
|
14
|
-
export declare const AI_REVIEW_MODE_UI_EVENT_NAMES: readonly ["getReviewCheckList", "runReviewCheck", "
|
|
14
|
+
export declare const AI_REVIEW_MODE_UI_EVENT_NAMES: readonly ["getReviewCheckList", "runReviewCheck", "abortReviewStream", "toggleDiff", "acceptAllChanges", "leaveReviewModeResultList", "scrollToSuggestionInDocument", "acceptChange", "dismissChange", "learnMore", "finishReview", "retryReview"];
|
|
15
15
|
export declare class AIReviewModeUI extends ContextPlugin {
|
|
16
16
|
/**
|
|
17
17
|
* @inheritDoc
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9571d=_0x30cf;(function(_0x229e81,_0x38ee90){const _0x7f5f98=_0x30cf,_0x2b356e=_0x229e81();while(!![]){try{const _0x3095e1=parseInt(_0x7f5f98(0x88))/0x1*(parseInt(_0x7f5f98(0xac))/0x2)+-parseInt(_0x7f5f98(0x98))/0x3*(-parseInt(_0x7f5f98(0x73))/0x4)+parseInt(_0x7f5f98(0x8b))/0x5*(-parseInt(_0x7f5f98(0x9a))/0x6)+parseInt(_0x7f5f98(0x9e))/0x7*(-parseInt(_0x7f5f98(0x8d))/0x8)+parseInt(_0x7f5f98(0x9c))/0x9*(-parseInt(_0x7f5f98(0x93))/0xa)+parseInt(_0x7f5f98(0x87))/0xb+-parseInt(_0x7f5f98(0x6f))/0xc*(-parseInt(_0x7f5f98(0x7c))/0xd);if(_0x3095e1===_0x38ee90)break;else _0x2b356e['push'](_0x2b356e['shift']());}catch(_0x24eef9){_0x2b356e['push'](_0x2b356e['shift']());}}}(_0x3d4e,0xd287e));import{ContextPlugin as _0x2564bf}from'ckeditor5/src/core.js';import{IconAIReview as _0x97a7ec}from'ckeditor5/src/icons.js';function _0x30cf(_0x31cb11,_0x30b420){const _0x3d4e93=_0x3d4e();return _0x30cf=function(_0x30cf12,_0xe78c7e){_0x30cf12=_0x30cf12-0x6d;let _0x52a69d=_0x3d4e93[_0x30cf12];return _0x52a69d;},_0x30cf(_0x31cb11,_0x30b420);}function _0x3d4e(){const _0x5727a4=['reviewCheckResultsView','showReviewCheckList','pluginName','abortReviewStream','acceptAllChanges','AIReviewModeUI','activateTab','learnMore','error-chunk','17861580bjkftD','1GOkMvi','reviewMode','showCheckRunResults','124625ehtMyW','getReviewCheckList','8WCTfZN','setAvailableChecks','setTitle','delegate','showReviewCheckListView','AITabs','10EcnTax','finishReview','isOfficialPlugin','leaveReviewModeResultList','showChunkErrorView','63mrgfEK','acceptChange','408SdeKrD','leaveReviewMode','7226829mdZmIb','_reviewModeView','9384781pCWLKg','rejected','runReviewCheck','addCheckRunResult','getResults','dismissChange','reviewCheckListView','setItemAsInactive','setChecks','view','addTab','forEach','context','hasChecks','2876270DPLGNH','requires','resetActiveStateInResults','showReviewCheckResultsView','updateChangeState','toggleDiff','accepted','showActionsWhenResultIsReady','plugins','hideActionsWhenResultIsReady','showReviewCompletedView','status','fire','24KWBSRP','showCheckRunResult','init','setCheckResultTitle','51676ECyoYY','locale','showGeneralErrorView','scrollToSuggestionInDocument','error-general','get','AI_REVIEW_MODE','hideResult','isPremiumPlugin','8889946Fobgvb','retryReview'];_0x3d4e=function(){return _0x5727a4;};return _0x3d4e();}import{AITabs as _0x23b417}from'../aitabs/aitabs.js';import{AIReviewModeView as _0x277dd2}from'./ui/aireviewmodeview.js';import{getTranslation as _0x5998ec}from'./utils/common-translations.js';import'../../theme/aireviewmode/aireviewmode.css';export const AI_REVIEW_MODE_UI_EVENT_NAMES=[_0x9571d(0x8c),_0x9571d(0xa0),_0x9571d(0x81),_0x9571d(0xb1),_0x9571d(0x82),_0x9571d(0x96),_0x9571d(0x76),_0x9571d(0x99),_0x9571d(0xa3),_0x9571d(0x85),_0x9571d(0x94),_0x9571d(0x7d)];export class AIReviewModeUI extends _0x2564bf{[_0x9571d(0x9d)];static get[_0x9571d(0xad)](){return[_0x23b417];}static get[_0x9571d(0x80)](){const _0x936859=_0x9571d;return _0x936859(0x83);}static get[_0x9571d(0x95)](){return!0x0;}static get[_0x9571d(0x7b)](){return!0x0;}constructor(_0x29749b){const _0x2f9022=_0x9571d;super(_0x29749b),this[_0x2f9022(0x9d)]=new _0x277dd2(this[_0x2f9022(0xaa)][_0x2f9022(0x74)]),this[_0x2f9022(0x9d)][_0x2f9022(0x90)](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this);}[_0x9571d(0x71)](){const _0x4bb325=_0x9571d,_0x5a41d2=this[_0x4bb325(0xaa)][_0x4bb325(0xb4)][_0x4bb325(0x78)](_0x4bb325(0x92));_0x5a41d2[_0x4bb325(0xa7)]['on'](_0x4bb325(0x84),(_0x265618,_0x250443)=>{const _0x21c6cc=_0x4bb325;_0x21c6cc(0x89)===_0x250443?this[_0x21c6cc(0x6e)](_0x21c6cc(0x8c)):this[_0x21c6cc(0x6e)](_0x21c6cc(0x9b));}),_0x5a41d2[_0x4bb325(0xa7)][_0x4bb325(0xa8)]({'id':_0x4bb325(0x89),'buttonLabel':_0x5998ec(this[_0x4bb325(0xaa)][_0x4bb325(0x74)],_0x4bb325(0x79)),'buttonIcon':_0x97a7ec,'order':0x0,'content':this[_0x4bb325(0x9d)]});}[_0x9571d(0x8e)](_0x2dea41){const _0x2a4143=_0x9571d;this[_0x2a4143(0x9d)][_0x2a4143(0xa4)][_0x2a4143(0xab)]()||this[_0x2a4143(0x9d)][_0x2a4143(0xa4)][_0x2a4143(0xa6)](_0x2dea41),this[_0x2a4143(0x9d)][_0x2a4143(0x91)]();}[_0x9571d(0x7f)](){const _0x1d53e6=_0x9571d;this[_0x1d53e6(0x6e)](_0x1d53e6(0x8c));}[_0x9571d(0x8a)](_0x192d20){const _0x26bd1d=_0x9571d;_0x192d20&&(_0x26bd1d(0x77)!==_0x192d20[_0x26bd1d(0x6d)]?_0x26bd1d(0x86)!==_0x192d20[_0x26bd1d(0x6d)]?this[_0x26bd1d(0x9d)][_0x26bd1d(0xaf)]():this[_0x26bd1d(0x97)]():this[_0x26bd1d(0x75)]());}[_0x9571d(0x70)](_0xba9fa6){const _0x773ecc=_0x9571d;this[_0x773ecc(0x9d)][_0x773ecc(0xa1)](_0xba9fa6);}[_0x9571d(0x75)](){const _0x8ec122=_0x9571d;this[_0x8ec122(0x9d)][_0x8ec122(0x75)]();}[_0x9571d(0x97)](){const _0x153a0c=_0x9571d;this[_0x153a0c(0x9d)][_0x153a0c(0x97)]();}[_0x9571d(0x72)](_0x6cd903){const _0x2a3486=_0x9571d;this[_0x2a3486(0x9d)][_0x2a3486(0x7e)][_0x2a3486(0x8f)](_0x6cd903);}[_0x9571d(0xae)](){const _0x17caae=_0x9571d;this[_0x17caae(0x9d)][_0x17caae(0x7e)][_0x17caae(0xa2)]()[_0x17caae(0xa9)](_0x942b20=>_0x942b20[_0x17caae(0xa5)]());}[_0x9571d(0xb0)](_0x39ba02,_0x4940e8){const _0x1133a1=_0x9571d;_0x1133a1(0xb2)!==_0x4940e8&&_0x1133a1(0x9f)!==_0x4940e8||this[_0x1133a1(0x9d)][_0x1133a1(0x7e)][_0x1133a1(0x7a)](_0x39ba02);}[_0x9571d(0xb6)](){const _0x17be89=_0x9571d;this[_0x17be89(0x9d)][_0x17be89(0xb6)]();}[_0x9571d(0xb3)](){const _0x218ab3=_0x9571d;this[_0x218ab3(0x9d)][_0x218ab3(0xb3)]();}[_0x9571d(0xb5)](){const _0x5dd8d8=_0x9571d;this[_0x5dd8d8(0x9d)][_0x5dd8d8(0xb5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xa087(_0x41dbe5,_0x3ef7c6){var _0xe5589a=_0xe558();return _0xa087=function(_0xa0875f,_0x38838c){_0xa0875f=_0xa0875f-0xd7;var _0x512f6e=_0xe5589a[_0xa0875f];return _0x512f6e;},_0xa087(_0x41dbe5,_0x3ef7c6);}var _0x553e07=_0xa087;(function(_0x3831ba,_0x2ecc9d){var _0xfaf71=_0xa087,_0x2b675b=_0x3831ba();while(!![]){try{var _0x3bd585=parseInt(_0xfaf71(0xe1))/0x1+-parseInt(_0xfaf71(0xdd))/0x2+-parseInt(_0xfaf71(0xda))/0x3+parseInt(_0xfaf71(0xdb))/0x4*(-parseInt(_0xfaf71(0xdc))/0x5)+parseInt(_0xfaf71(0xe0))/0x6+-parseInt(_0xfaf71(0xde))/0x7+parseInt(_0xfaf71(0xe3))/0x8;if(_0x3bd585===_0x2ecc9d)break;else _0x2b675b['push'](_0x2b675b['shift']());}catch(_0x4d859a){_0x2b675b['push'](_0x2b675b['shift']());}}}(_0xe558,0xb3d8b));export class AIReviewCheck{['id'];[_0x553e07(0xd9)];[_0x553e07(0xe2)];[_0x553e07(0xdf)];[_0x553e07(0xd7)];[_0x553e07(0xd8)];constructor({id:_0x5a257e,title:_0x1369bb,description:_0x13f075,isParameterized:_0x57b117,useArgs:_0x30142f,options:_0x4a7441}){var _0x3b1cec=_0x553e07;this['id']=_0x5a257e,this[_0x3b1cec(0xd9)]=_0x1369bb,this[_0x3b1cec(0xe2)]=_0x13f075,this[_0x3b1cec(0xdf)]=_0x57b117,this[_0x3b1cec(0xd7)]=_0x30142f,this[_0x3b1cec(0xd8)]=_0x4a7441;}}function _0xe558(){var _0x201471=['1452087PYIhKZ','description','7748352BiHCDC','useArgs','options','title','3490458qIkADo','30596joTblc','845mhgcGl','97290aULZPW','1789410yIUvRV','isParameterized','6458772eZbUkV'];_0xe558=function(){return _0x201471;};return _0xe558();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2ff41a=_0x3cdf;(function(_0x25854a,_0x1967ec){var _0x23f2a0=_0x3cdf,_0xc8d0bd=_0x25854a();while(!![]){try{var _0x3763e8=parseInt(_0x23f2a0(0x161))/0x1*(parseInt(_0x23f2a0(0x162))/0x2)+-parseInt(_0x23f2a0(0x157))/0x3*(-parseInt(_0x23f2a0(0x15a))/0x4)+parseInt(_0x23f2a0(0x164))/0x5+parseInt(_0x23f2a0(0x15f))/0x6*(-parseInt(_0x23f2a0(0x159))/0x7)+parseInt(_0x23f2a0(0x160))/0x8+-parseInt(_0x23f2a0(0x15e))/0x9*(parseInt(_0x23f2a0(0x15b))/0xa)+parseInt(_0x23f2a0(0x15c))/0xb*(-parseInt(_0x23f2a0(0x158))/0xc);if(_0x3763e8===_0x1967ec)break;else _0xc8d0bd['push'](_0xc8d0bd['shift']());}catch(_0x3bcc6b){_0xc8d0bd['push'](_0xc8d0bd['shift']());}}}(_0x1878,0xeadf8));import{AIReviewCheck as _0x4bdb79}from'./aireviewcheck.js';function _0x1878(){var _0x132b8f=['15987422wVdsKT','models','333zzFjeK','12WsYmLm','8438408FhCLjM','1711697SLGuPK','2ROKewu','_models','7092005YpUTrB','1570830nQzriR','24BGeLcU','3696742oyUfXn','8DTWUhj','82990ojdSDl'];_0x1878=function(){return _0x132b8f;};return _0x1878();}function _0x3cdf(_0x440b7b,_0x2e155f){var _0x18786a=_0x1878();return _0x3cdf=function(_0x3cdf14,_0x19dede){_0x3cdf14=_0x3cdf14-0x157;var _0x5068b8=_0x18786a[_0x3cdf14];return _0x5068b8;},_0x3cdf(_0x440b7b,_0x2e155f);}export class AIReviewCheckCustom extends _0x4bdb79{[_0x2ff41a(0x163)]=[];get[_0x2ff41a(0x15d)](){var _0x33256a=_0x2ff41a;return this[_0x33256a(0x163)];}set[_0x2ff41a(0x15d)](_0xf5dcb8){var _0x1d178f=_0x2ff41a;this[_0x1d178f(0x163)]=_0xf5dcb8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d218d=_0x4673;(function(_0x1f5870,_0x47fba8){const _0x1ad669=_0x4673,_0x27b370=_0x1f5870();while(!![]){try{const _0x239838=parseInt(_0x1ad669(0x14a))/0x1*(-parseInt(_0x1ad669(0x133))/0x2)+parseInt(_0x1ad669(0x167))/0x3*(-parseInt(_0x1ad669(0x153))/0x4)+-parseInt(_0x1ad669(0x15d))/0x5*(parseInt(_0x1ad669(0x14f))/0x6)+parseInt(_0x1ad669(0x147))/0x7+parseInt(_0x1ad669(0x15c))/0x8+parseInt(_0x1ad669(0x14e))/0x9+-parseInt(_0x1ad669(0x135))/0xa*(-parseInt(_0x1ad669(0x16c))/0xb);if(_0x239838===_0x47fba8)break;else _0x27b370['push'](_0x27b370['shift']());}catch(_0x2efc06){_0x27b370['push'](_0x27b370['shift']());}}}(_0x190e,0x9e626));function _0x4673(_0x578899,_0x5b0bc3){const _0x190e3a=_0x190e();return _0x4673=function(_0x467396,_0x1981f1){_0x467396=_0x467396-0x11a;let _0x250433=_0x190e3a[_0x467396];return _0x250433;},_0x4673(_0x578899,_0x5b0bc3);}import{ObservableMixin as _0x5aff3c}from'ckeditor5/src/utils.js';import{AIReviewCheck as _0x52d6ec}from'./aireviewcheck.js';function _0x190e(){const _0x228f79=['english','Ensure\x20the\x20text\x20is\x20factually\x20accurate\x20and\x20free\x20of\x20errors.','Japanese','Direct','data','Russian','Shorter','join','German','reduce','checks','Clarity','japanese','dropdown','clarity','russian','isParameterized','_getExpandedReviewChecks','Spanish','Translate\x20the\x20text\x20into\x20another\x20language.','custom','2IrOhqw','spanish','3490nhDtxg','getCheckById','make-tone','shorter','Casual','Choose\x20tone\x20and\x20style\x20to\x20change\x20content\x20as\x20you\x20need.','direct','friendly','make','Type\x20a\x20custom\x20command\x20to\x20review\x20the\x20content\x20exactly\x20as\x20you\x20need.','map','Adjust\x20tone\x20and\x20style','Select\x20language','Korean','French','correctness','german','Portuguese','1916789XaVPqv','readability','Custom\x20command','941508vgocAt','Longer','language','longer','5950314yfMLBn','2526BJIVhk','translate','Translate','label','4eKLdOD','Improve\x20the\x20clarity\x20and\x20readability\x20of\x20the\x20text.','Enhance\x20the\x20overall\x20readability\x20of\x20the\x20text.','Italian','chinese','french','Adjust\x20length','confident',':\x20\x0a','8237240QQLCqa','7855tirJbN','Refine\x20text\x20length\x20to\x20match\x20your\x20needs.','English','Readability','length','Chinese\x20(Simplified)','Friendly','flatMap','_checks','find','284379ZCRrSL','options','korean','useArgs','Confident','12034gqoYDj','title','_getAvailableReviewChecks','casual','Correctness','Professional','portuguese','italian','professional','getExpandedChecks'];_0x190e=function(){return _0x228f79;};return _0x190e();}import{AIReviewCheckCustom as _0x5de422}from'./aireviewcheckcustom.js';const ta=[{'id':_0x2d218d(0x132),'title':_0x2d218d(0x149),'description':_0x2d218d(0x13e),'isParameterized':!0x0},{'id':_0x2d218d(0x144),'title':_0x2d218d(0x170),'description':_0x2d218d(0x11f),'isParameterized':!0x1},{'id':_0x2d218d(0x12c),'title':_0x2d218d(0x129),'description':_0x2d218d(0x154),'isParameterized':!0x1},{'id':_0x2d218d(0x148),'title':_0x2d218d(0x160),'description':_0x2d218d(0x155),'isParameterized':!0x1},{'id':_0x2d218d(0x13d),'title':_0x2d218d(0x159),'description':_0x2d218d(0x15e),'isParameterized':!0x0,'options':[{'formType':_0x2d218d(0x12b),'label':_0x2d218d(0x159),'default':_0x2d218d(0x14d),'data':[{'label':_0x2d218d(0x14b),'id':_0x2d218d(0x14d)},{'label':_0x2d218d(0x124),'id':_0x2d218d(0x138)}]}]},{'id':_0x2d218d(0x137),'title':_0x2d218d(0x140),'description':_0x2d218d(0x13a),'isParameterized':!0x0,'options':[{'formType':_0x2d218d(0x12b),'label':_0x2d218d(0x140),'default':_0x2d218d(0x16f),'data':[{'label':_0x2d218d(0x139),'id':_0x2d218d(0x16f)},{'label':_0x2d218d(0x121),'id':_0x2d218d(0x13b)},{'label':_0x2d218d(0x163),'id':_0x2d218d(0x13c)},{'label':_0x2d218d(0x16b),'id':_0x2d218d(0x15a)},{'label':_0x2d218d(0x171),'id':_0x2d218d(0x11c)}]}]},{'id':_0x2d218d(0x150),'title':_0x2d218d(0x151),'description':_0x2d218d(0x131),'isParameterized':!0x0,'useArgs':!0x0,'options':[{'formType':_0x2d218d(0x12b),'label':_0x2d218d(0x141),'default':_0x2d218d(0x134),'argsKey':_0x2d218d(0x14c),'data':[{'label':_0x2d218d(0x15f),'id':_0x2d218d(0x11e)},{'label':_0x2d218d(0x130),'id':_0x2d218d(0x134)},{'label':_0x2d218d(0x143),'id':_0x2d218d(0x158)},{'label':_0x2d218d(0x126),'id':_0x2d218d(0x145)},{'label':_0x2d218d(0x162),'id':_0x2d218d(0x157)},{'label':_0x2d218d(0x120),'id':_0x2d218d(0x12a)},{'label':_0x2d218d(0x123),'id':_0x2d218d(0x12d)},{'label':_0x2d218d(0x146),'id':_0x2d218d(0x11a)},{'label':_0x2d218d(0x142),'id':_0x2d218d(0x169)},{'label':_0x2d218d(0x156),'id':_0x2d218d(0x11b)}]}]}];export class AIReviewCheckList extends _0x5aff3c(){[_0x2d218d(0x165)];constructor(){const _0x2f73ab=_0x2d218d;super(),this[_0x2f73ab(0x165)]=this[_0x2f73ab(0x16e)]();}get[_0x2d218d(0x128)](){const _0x543bd5=_0x2d218d;return this[_0x543bd5(0x165)];}get[_0x2d218d(0x11d)](){const _0x1318b9=_0x2d218d;return this[_0x1318b9(0x12f)]();}[_0x2d218d(0x136)](_0x284849){const _0x276089=_0x2d218d;return this[_0x276089(0x11d)][_0x276089(0x166)](_0x310280=>_0x310280['id']===_0x284849);}[_0x2d218d(0x16e)](){const _0x4be089=_0x2d218d;return ta[_0x4be089(0x13f)](_0x19a4d4=>_0x4be089(0x132)===_0x19a4d4['id']?new _0x5de422(_0x19a4d4):new _0x52d6ec(_0x19a4d4));}[_0x2d218d(0x12f)](){const _0x48e4b2=_0x2d218d;return ta[_0x48e4b2(0x164)](_0x32daf6=>{const _0x92858b=_0x48e4b2;if(_0x32daf6?.[_0x92858b(0x16a)])return[_0x32daf6];if(_0x32daf6[_0x92858b(0x12e)]&&_0x32daf6[_0x92858b(0x168)]?.[_0x92858b(0x161)]){const _0x3bf3d1=_0x32daf6[_0x92858b(0x168)][_0x92858b(0x13f)](_0x3cbc74=>_0x3cbc74[_0x92858b(0x122)]||[]);return _0x3bf3d1[_0x92858b(0x127)]((_0x379caf,_0x4afe06)=>_0x379caf[_0x92858b(0x164)](_0x44a97f=>_0x4afe06[_0x92858b(0x13f)](_0x5f5696=>[..._0x44a97f,_0x5f5696])),[[]])[_0x92858b(0x13f)](_0x31ed6a=>{const _0x1b4b39=_0x92858b,_0x167de7=_0x31ed6a[_0x1b4b39(0x13f)](_0x5dd8b1=>_0x5dd8b1['id'])[_0x1b4b39(0x125)]('-'),_0x1c16a8=_0x31ed6a[_0x1b4b39(0x13f)](_0x4ddf8e=>_0x4ddf8e[_0x1b4b39(0x152)])[_0x1b4b39(0x125)](',\x20');return{..._0x32daf6,'id':_0x32daf6['id']+'-'+_0x167de7,'title':_0x32daf6[_0x1b4b39(0x16d)]+_0x1b4b39(0x15b)+_0x1c16a8,'selectedOptions':_0x31ed6a};});}return[_0x32daf6];});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5cd5(){var _0x1d2f71=['contentInitial','1273070LxJIFJ','contentNew','documentVersion','1923365dNWVnB','4eNTOWN','6071283yvRBmE','8362145AjGclQ','8nBiVEQ','6FKyAYb','1475978ywKGCM','34522xutNVN','32KCPRpp','1268181RFpfBI'];_0x5cd5=function(){return _0x1d2f71;};return _0x5cd5();}var _0x17ef39=_0x133a;(function(_0x5866b4,_0x580bb6){var _0x1fad55=_0x133a,_0x3bea71=_0x5866b4();while(!![]){try{var _0x25c04d=-parseInt(_0x1fad55(0xa3))/0x1*(-parseInt(_0x1fad55(0xa4))/0x2)+parseInt(_0x1fad55(0xa5))/0x3*(parseInt(_0x1fad55(0x9d))/0x4)+-parseInt(_0x1fad55(0xaa))/0x5*(parseInt(_0x1fad55(0xa1))/0x6)+-parseInt(_0x1fad55(0xa2))/0x7+-parseInt(_0x1fad55(0xa0))/0x8*(parseInt(_0x1fad55(0x9e))/0x9)+-parseInt(_0x1fad55(0xa7))/0xa+parseInt(_0x1fad55(0x9f))/0xb;if(_0x25c04d===_0x580bb6)break;else _0x3bea71['push'](_0x3bea71['shift']());}catch(_0xc5669){_0x3bea71['push'](_0x3bea71['shift']());}}}(_0x5cd5,0x527bd));function _0x133a(_0x9c06f1,_0x543c91){var _0x5cd5e0=_0x5cd5();return _0x133a=function(_0x133a89,_0x31938a){_0x133a89=_0x133a89-0x9d;var _0x5ec498=_0x5cd5e0[_0x133a89];return _0x5ec498;},_0x133a(_0x9c06f1,_0x543c91);}import{EmitterMixin as _0x1a6f83}from'ckeditor5/src/utils.js';export class AIReviewCheckResult extends _0x1a6f83(){['id'];[_0x17ef39(0xa8)];[_0x17ef39(0xa6)];[_0x17ef39(0xa9)];constructor({id:_0x4f9620,contentNew:_0x3d135b,contentInitial:_0x280f71,documentVersion:_0x3f4054}){var _0x222b07=_0x17ef39;super(),this['id']=_0x4f9620,this[_0x222b07(0xa8)]=_0x3d135b,this[_0x222b07(0xa6)]=_0x280f71,this[_0x222b07(0xa9)]=_0x3f4054;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13fef3=_0xf98b;function _0xf98b(_0x11424f,_0x3bdcc6){var _0x1786cb=_0x1786();return _0xf98b=function(_0xf98b81,_0x2ecdef){_0xf98b81=_0xf98b81-0x83;var _0xacca4b=_0x1786cb[_0xf98b81];return _0xacca4b;},_0xf98b(_0x11424f,_0x3bdcc6);}(function(_0x2e497a,_0x495e5a){var _0x2b86d4=_0xf98b,_0x24b26c=_0x2e497a();while(!![]){try{var _0x2bd527=-parseInt(_0x2b86d4(0x8c))/0x1+parseInt(_0x2b86d4(0x8f))/0x2+-parseInt(_0x2b86d4(0x8e))/0x3*(parseInt(_0x2b86d4(0x91))/0x4)+parseInt(_0x2b86d4(0x90))/0x5+parseInt(_0x2b86d4(0x8a))/0x6+parseInt(_0x2b86d4(0x89))/0x7+-parseInt(_0x2b86d4(0x88))/0x8*(parseInt(_0x2b86d4(0x95))/0x9);if(_0x2bd527===_0x495e5a)break;else _0x24b26c['push'](_0x24b26c['shift']());}catch(_0x4544f2){_0x24b26c['push'](_0x24b26c['shift']());}}}(_0x1786,0xad64b));import{ObservableMixin as _0x382806}from'ckeditor5/src/utils.js';function _0x1786(){var _0x297805=['status','3xPwbrY','377126dmOidX','1354940QGvOyY','2021224DrovSg','contentDiffed','parent','context','2721645WIlLbx','set','operationsIsolated','_data','active','operations','16dZJbFL','6421478wYNWoW','3843822nudrwY','_editorOperations','197207weWvRZ'];_0x1786=function(){return _0x297805;};return _0x1786();}export class AIReviewCheckResultChange extends _0x382806(){['id'];[_0x13fef3(0x93)];[_0x13fef3(0x85)];[_0x13fef3(0x8b)]=[];constructor(_0x155876,_0x8d0ab5,_0x2ac72f){var _0x3d20d8=_0x13fef3;super(),this['id']=_0x155876,this[_0x3d20d8(0x93)]=_0x2ac72f,this[_0x3d20d8(0x85)]=_0x8d0ab5,this[_0x3d20d8(0x83)](_0x3d20d8(0x8d),_0x3d20d8(0x86));}get[_0x13fef3(0x92)](){var _0xde069=_0x13fef3;return this[_0xde069(0x85)][_0xde069(0x94)]();}get[_0x13fef3(0x87)](){var _0x1673ac=_0x13fef3;return this[_0x1673ac(0x85)][_0x1673ac(0x87)];}get[_0x13fef3(0x84)](){var _0x350b04=_0x13fef3;return this[_0x350b04(0x85)][_0x350b04(0x84)];}}
|
|
@@ -51,6 +51,7 @@ export declare abstract class AIReviewCheckRun extends /* #__PURE__ */ AIReviewC
|
|
|
51
51
|
markAllChangesAsAccepted(): void;
|
|
52
52
|
markChangeAsAccepted(changeId: string): void;
|
|
53
53
|
markChangeAsRejected(changeId: string): void;
|
|
54
|
+
forceReadyState(): void;
|
|
54
55
|
}
|
|
55
56
|
export type AIReviewCheckRunUpdatedEvent = {
|
|
56
57
|
name: 'reviewCheckRunUpdated';
|